matrix-docker-ansible-deploy/docs/configuring-playbook-synaps...

1.3 KiB

Setting up synapse_auto_compressor

The playbook can install and configure synapse_auto_compressor for you.

It's a cli tool that automatically compresses state_groups database table in background.

See the project's documentation to learn what it does and why it might be useful to you.

Adjusting the playbook configuration

Add the following configuration to your inventory/host_vars/matrix.DOMAIN/vars.yml file:

matrix_synapse_auto_compressor_enabled: true

Installing

After configuring the playbook, run the installation command again:

ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,start

Usage

After installation, synapse_auto_compressor will run automatically every day by the defined schedule

Manually start the tool

For testing your setup it can be helpful to not wait until 00:00. If you want to run the tool immediately, log onto the server and run systemctl start matrix-synapse-auto-compressor. This will not return until the run is done, so possibly a long time. Consider using tmux if your SSH connection is unstable.