You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Runbooks.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,37 @@
2
2
3
3
Below you will find runbooks for common tasks and operations to manage our infra.
4
4
5
+
## OONI Data Pipeline
6
+
7
+
### Deploying updates
8
+
9
+
There are two main ways to update the OONI Data pipeline codebase.
10
+
11
+
1. Faster iterative approach
12
+
2. More stable ansible based
13
+
14
+
#### Faster iterative appraoch
15
+
16
+
This is mostly useful for while you are developing and need a quick turnaround.
17
+
18
+
1. Login to `clickhouse1.prod.ooni.io`
19
+
2. Update the codebase via git using `cd /opt/airflow/oonidata/oonipipeline && sudo -u airflow git pull`
20
+
3. Upgrade the pip oonipipeline installation using `sudo -u miniconda /opt/miniconda/bin/pip install --upgrade /opt/airflow/oonidata/oonipipeline/`
21
+
4. You can check the version by running `sudo -u airflow CONFIG_FILE=/etc/ooni/pipeline/oonipipeline-config.toml /opt/miniconda/bin/python -m oonipipeline.main --version`
22
+
23
+
#### Ansible based
24
+
25
+
TODO
26
+
27
+
#### Deploying updates
28
+
29
+
Backfilling event detector tables
30
+
31
+
You can run a backfill task using the `event-detector` command, like so:
0 commit comments