mirror of
https://git.envs.net/envs/matrix-conf.git
synced 2025-05-29 21:31:14 -04:00
add some note to synapse-compress-state
This commit is contained in:
parent
1837ee02c3
commit
df1d28aba7
1 changed files with 9 additions and 3 deletions
|
@ -3,10 +3,16 @@
|
||||||
# THIS SCRIPT IS REPLACED BY "synapse_auto_compressor" see:
|
# THIS SCRIPT IS REPLACED BY "synapse_auto_compressor" see:
|
||||||
# https://github.com/matrix-org/rust-synapse-compress-state for details.
|
# https://github.com/matrix-org/rust-synapse-compress-state for details.
|
||||||
#
|
#
|
||||||
# run it via:
|
# Before you execude the script better remove all rooms without local members.
|
||||||
# synapse_auto_compressor -p "user=postgres dbname=matrix host=/var/run/postgresql" -c 500 -n 100
|
# see script "matrix-remove-empty-rooms.sh".
|
||||||
#
|
#
|
||||||
# after all you rooms are processed you can run a:
|
# now you can run synapse-compress-state via:
|
||||||
|
# synapse_auto_compressor -p "user=postgres dbname=matrix host=/var/run/postgresql" -c 500 -n 100
|
||||||
|
# on a HS with ~50.000 rooms you need to run the script round about 500 times:
|
||||||
|
# for run in {1..500}; do sudo -u postgres synapse_auto_compressor -p "user=postgres dbname=matrix host=/var/run/postgresql" -c 500 -n 100; done
|
||||||
|
# you can see the already "initialized" rooms in the DB table "state_compressor_progress".
|
||||||
|
#
|
||||||
|
# after all rooms are processed you can run a:
|
||||||
# REINDEX (VERBOSE) DATABASE CONCURRENTLY DATABASENAME
|
# REINDEX (VERBOSE) DATABASE CONCURRENTLY DATABASENAME
|
||||||
# to free your discspace.
|
# to free your discspace.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue