presence: Disable live presence updates in larger realms.

As discussed in the comment, this is a critical scalability
optimization for organizations with thousands of users.

With substantial comment updates by tabbott.
This commit is contained in:
Mateusz Mandera
2021-05-05 13:15:13 +02:00
committed by Tim Abbott
parent 638ffb36a4
commit cc96f02947
3 changed files with 62 additions and 12 deletions

View File

@@ -411,6 +411,10 @@ STAGING_ERROR_NOTIFICATIONS = False
# default_settings, since it likely isn't usefully user-configurable.
OFFLINE_THRESHOLD_SECS = 5 * 60
# Specifies the number of active users in the realm
# above which sending of presence update events will be disabled.
USER_LIMIT_FOR_SENDING_PRESENCE_UPDATE_EVENTS = 100
# How many days deleted messages data should be kept before being
# permanently deleted.
ARCHIVED_DATA_VACUUMING_DELAY_DAYS = 7