Files
matrix/systemd/synapse-state-compressor.service
T

18 lines
723 B
Desktop File
Raw Normal View History

[Unit]
Description=Compress Synapse state groups (synapse_auto_compressor)
Documentation=https://github.com/matrix-org/rust-synapse-compress-state
After=postgresql.service
[Service]
Type=oneshot
User=postgres
# 100 chunks of 500 state groups per night. Progress is stored in the
# state_compressor_* tables, so each run continues where the last one stopped.
# Every state group is rewritten in its own transaction, after the compressed
# state is checked against the original; a chunk that would not shrink is skipped.
ExecStart=/usr/local/bin/synapse_auto_compressor -p postgresql:///synapse?host=/var/run/postgresql&user=postgres -c 500 -n 100
Environment=RUST_LOG=info
Nice=10
IOSchedulingClass=idle
TimeoutStartSec=2h