set a higher query size limit when querying all rooms
By default, the synapse admin API limits the rooms query to 100 results. This was causing the purges to apply to ~5% of rooms on our server. Now we set a higher limit for the room query.
This commit is contained in:
parent
5609ccf6a6
commit
97bb9b2c5f
@ -7,6 +7,7 @@ host='localhost'
|
|||||||
port='8008'
|
port='8008'
|
||||||
synapse_log='/var/log/matrix-synapse/homeserver.log'
|
synapse_log='/var/log/matrix-synapse/homeserver.log'
|
||||||
homeserver_config='/etc/matrix-synapse/homeserver.yaml'
|
homeserver_config='/etc/matrix-synapse/homeserver.yaml'
|
||||||
|
rooms_query_limit=6666
|
||||||
|
|
||||||
debug=0
|
debug=0
|
||||||
|
|
||||||
@ -46,7 +47,7 @@ get_synapse_version () {
|
|||||||
|
|
||||||
get_all_rooms () {
|
get_all_rooms () {
|
||||||
curl --silent -H "Authorization: Bearer $token" \
|
curl --silent -H "Authorization: Bearer $token" \
|
||||||
"${host}:${port}/_synapse/admin/v1/rooms" \
|
"${host}:${port}/_synapse/admin/v1/rooms?limit=${rooms_query_limit}" \
|
||||||
| jq '.rooms[].room_id' \
|
| jq '.rooms[].room_id' \
|
||||||
| sed 's/"//g'
|
| sed 's/"//g'
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user