From 76862f4f2ab40c7566874e93efd6838fb4a4efea Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Mon, 8 Jul 2019 11:09:23 +0300 Subject: [PATCH] Suggest running start tag after janitor and Postgres vacuum We do restart Synapse explicitly, but some other services (bridges, matrix-corporal, ..) may not restart sometimes. It's best to restart all services explicitly. --- docs/maintenance-postgres.md | 2 +- docs/maintenance-synapse.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/maintenance-postgres.md b/docs/maintenance-postgres.md index 959da6586..c0f8b3255 100644 --- a/docs/maintenance-postgres.md +++ b/docs/maintenance-postgres.md @@ -27,7 +27,7 @@ To perform a `FULL` Postgres [VACUUM](https://www.postgresql.org/docs/current/sq Example: ```bash -ansible-playbook -i inventory/hosts setup.yml --tags=run-postgres-vacuum +ansible-playbook -i inventory/hosts setup.yml --tags=run-postgres-vacuum,start ``` **Note**: this will automatically stop Synapse temporarily and restart it later. You'll also need plenty of available disk space in your Postgres data directory (usually `/matrix/postgres/data`). diff --git a/docs/maintenance-synapse.md b/docs/maintenance-synapse.md index 877b68cc0..d64b3b9fe 100644 --- a/docs/maintenance-synapse.md +++ b/docs/maintenance-synapse.md @@ -21,7 +21,7 @@ There are external tools (like [synapse-janitor](https://github.com/xwiki-labs/s To ask the playbook to run synapse-janitor, execute: ```bash -ansible-playbook -i inventory/hosts setup.yml --tags=run-postgres-synapse-janitor +ansible-playbook -i inventory/hosts setup.yml --tags=run-postgres-synapse-janitor,start ``` **Note**: this will automatically stop Synapse temporarily and restart it later. @@ -35,7 +35,7 @@ However, disk space only ever gets released after a [`FULL` Postgres `VACUUM`](. It's easiest if you ask the playbook to run both synapse-janitor and a `VACUUM FULL` in one call: ```bash -ansible-playbook -i inventory/hosts setup.yml --tags=run-postgres-synapse-janitor,run-postgres-vacuum +ansible-playbook -i inventory/hosts setup.yml --tags=run-postgres-synapse-janitor,run-postgres-vacuum,start ``` **Note**: this will automatically stop Synapse temporarily and restart it later. You'll also need plenty of available disk space in your Postgres data directory (usually `/matrix/postgres/data`).