Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
115cb62a
Commit
115cb62a
authored
5 years ago
by
Iain R. Learmonth
Browse files
Options
Downloads
Patches
Plain Diff
onionoo: more deployment instructions
parent
81074486
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
metrics/ops/onionoo-ops.mdwn
+54
-0
54 additions, 0 deletions
metrics/ops/onionoo-ops.mdwn
with
54 additions
and
0 deletions
metrics/ops/onionoo-ops.mdwn
+
54
−
0
View file @
115cb62a
...
...
@@ -87,12 +87,66 @@ Deployment and maintainence scripts are part of
# DEPLOYMENT
## Initial deployment
The initial deployment procedure is split into 3 parts:
* System setup
* Importing history
* Installing and starting the service
### Development/testing in AWS
For development or testing in AWS, a CloudFormation template is available
named
*[onionoo-dev.yml](https://gitweb.torproject.org/metrics-cloud.git/plain/cloudformation/onionoo-dev.yml)*.
The header for this template includes the command required to deploy the stack.
It will deploy in your local user's namespace (the output of whoami) and must
be provided with the name of your SSH key pair.
From the CloudFormation portal, select your stack and view the outputs. You
will find here the public IP address for the EC2 instance that has been created.
Add this instance to *ansible/dev* in your local copy of metrics-cloud.git
under "[onionoo-backends]".
You can now setup the machine with Ansible by running:
```
ansible-playbook -i dev oninooo-backends-aws.yml
```
### Fresh machine from TSA
Begin by copying the *state* and *out* directories from another Onionoo backend
to */srv/onionoo.torproject.org/onionoo/{state,out}*.
Add the host name of the new instance to *ansible/production* in your local
copy of metrics-cloud.git under "[onionoo-backends]" and commit the change.
You can now setup the machine with Ansible by running:
```
ansible-playbook -i production onionoo-backends.yml
```
## Upgrade
# DIAGNOSTICS
Logs for the hourly updater can be found in
*/srv/onionoo.torproject.org/logs/*, and for the web server in
*/srv/onionoo.torproject.org/web-logs/*.
# MONITORING
# DISASTER RECOVERY
## Single backend failure
## Total loss
## Total loss including all backups
# SERVICE LEVEL AGREEMENT
# SEE ALSO
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment