mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Enable complexity checking in complexity checking docs example (#11998)
This commit is contained in:
parent
594a07ede4
commit
b4461e7d8a
1
changelog.d/11998.doc
Normal file
1
changelog.d/11998.doc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix complexity checking config example in [Resource Constrained Devices](https://matrix-org.github.io/synapse/v1.54/other/running_synapse_on_single_board_computers.html) docs page.
|
@ -31,28 +31,29 @@ Anything that requires modifying the device list [#7721](https://github.com/matr
|
|||||||
Put the below in a new file at /etc/matrix-synapse/conf.d/sbc.yaml to override the defaults in homeserver.yaml.
|
Put the below in a new file at /etc/matrix-synapse/conf.d/sbc.yaml to override the defaults in homeserver.yaml.
|
||||||
|
|
||||||
```
|
```
|
||||||
# Set to false to disable presence tracking on this homeserver.
|
# Disable presence tracking, which is currently fairly resource intensive
|
||||||
|
# More info: https://github.com/matrix-org/synapse/issues/9478
|
||||||
use_presence: false
|
use_presence: false
|
||||||
|
|
||||||
# When this is enabled, the room "complexity" will be checked before a user
|
# Set a small complexity limit, preventing users from joining large rooms
|
||||||
# joins a new remote room. If it is above the complexity limit, the server will
|
# which may be resource-intensive to remain a part of.
|
||||||
# disallow joining, or will instantly leave.
|
#
|
||||||
|
# Note that this will not prevent users from joining smaller rooms that
|
||||||
|
# eventually become complex.
|
||||||
limit_remote_rooms:
|
limit_remote_rooms:
|
||||||
# Uncomment to enable room complexity checking.
|
enabled: true
|
||||||
#enabled: true
|
|
||||||
complexity: 3.0
|
complexity: 3.0
|
||||||
|
|
||||||
# Database configuration
|
# Database configuration
|
||||||
database:
|
database:
|
||||||
|
# Use postgres for the best performance
|
||||||
name: psycopg2
|
name: psycopg2
|
||||||
args:
|
args:
|
||||||
user: matrix-synapse
|
user: matrix-synapse
|
||||||
# Generate a long, secure one with a password manager
|
# Generate a long, secure password using a password manager
|
||||||
password: hunter2
|
password: hunter2
|
||||||
database: matrix-synapse
|
database: matrix-synapse
|
||||||
host: localhost
|
host: localhost
|
||||||
cp_min: 5
|
|
||||||
cp_max: 10
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Currently the complexity is measured by [current_state_events / 500](https://github.com/matrix-org/synapse/blob/v1.20.1/synapse/storage/databases/main/events_worker.py#L986). You can find join times and your most complex rooms like this:
|
Currently the complexity is measured by [current_state_events / 500](https://github.com/matrix-org/synapse/blob/v1.20.1/synapse/storage/databases/main/events_worker.py#L986). You can find join times and your most complex rooms like this:
|
||||||
|
Loading…
Reference in New Issue
Block a user