summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorSven Mäder <rda0@users.noreply.github.com>2025-01-24 20:58:01 +0100
committerGitHub <noreply@github.com>2025-01-24 19:58:01 +0000
commit9c5d08fff8d66a7cc0e2ecfeeb783f933a778c2f (patch)
tree4ed921cdf835dfdc0002840baa1e796209ef9b00 /docs
parentContrib: Docker: updates PostgreSQL version in `docker-compose.yml` (#18089) (diff)
downloadsynapse-9c5d08fff8d66a7cc0e2ecfeeb783f933a778c2f.tar.xz
Ratelimit presence updates (#18000)
Diffstat (limited to 'docs')
-rw-r--r--docs/usage/configuration/config_documentation.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/usage/configuration/config_documentation.md b/docs/usage/configuration/config_documentation.md

index 64392366ca..a1e671ab8e 100644 --- a/docs/usage/configuration/config_documentation.md +++ b/docs/usage/configuration/config_documentation.md
@@ -1868,6 +1868,27 @@ rc_federation: concurrent: 5 ``` --- +### `rc_presence` + +This option sets ratelimiting for presence. + +The `rc_presence.per_user` option sets rate limits on how often a specific +users' presence updates are evaluated. Ratelimited presence updates sent via sync are +ignored, and no error is returned to the client. +This option also sets the rate limit for the +[`PUT /_matrix/client/v3/presence/{userId}/status`](https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3presenceuseridstatus) +endpoint. + +`per_user` defaults to `per_second: 0.1`, `burst_count: 1`. + +Example configuration: +```yaml +rc_presence: + per_user: + per_second: 0.05 + burst_count: 0.5 +``` +--- ### `federation_rr_transactions_per_room_per_second` Sets outgoing federation transaction frequency for sending read-receipts,