Browse Source

add missing ratelimiting options required for load testing

pull/642/head
Max Klenk 5 years ago
parent
commit
4fdfc0a34f
No known key found for this signature in database GPG Key ID: 26EFB2972F02F380
2 changed files with 14 additions and 1 deletions
  1. +12
    -0
      roles/matrix-synapse/defaults/main.yml
  2. +2
    -1
      roles/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 12
- 0
roles/matrix-synapse/defaults/main.yml View File

@@ -111,6 +111,18 @@ matrix_synapse_rc_login:
per_second: 0.17 per_second: 0.17
burst_count: 3 burst_count: 3


matrix_synapse_rc_admin_redaction:
per_second: 1
burst_count: 50

matrix_synapse_rc_joins:
local:
per_second: 0.1
burst_count: 3
remote:
per_second: 0.01
burst_count: 3

matrix_synapse_rc_federation: matrix_synapse_rc_federation:
window_size: 1000 window_size: 1000
sleep_limit: 10 sleep_limit: 10


+ 2
- 1
roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 View File

@@ -772,6 +772,7 @@ rc_login: {{ matrix_synapse_rc_login|to_json }}
#rc_admin_redaction: #rc_admin_redaction:
# per_second: 1 # per_second: 1
# burst_count: 50 # burst_count: 50
rc_admin_redaction: {{ matrix_synapse_rc_admin_redaction|to_json }}
# #
#rc_joins: #rc_joins:
# local: # local:
@@ -780,7 +781,7 @@ rc_login: {{ matrix_synapse_rc_login|to_json }}
# remote: # remote:
# per_second: 0.01 # per_second: 0.01
# burst_count: 3 # burst_count: 3
rc_joins: {{ matrix_synapse_rc_joins|to_json }}


# Ratelimiting settings for incoming federation # Ratelimiting settings for incoming federation
# #


Loading…
Cancel
Save