MatrixSynapse/synapse/storage
Brendan Abolivier 52839886d6
Allow configuring a range for the account validity startup job
When enabling the account validity feature, Synapse will look at startup for registered account without an expiration date, and will set one equals to 'now + validity_period' for them. On large servers, it can mean that a large number of users will have the same expiration date, which means that they will all be sent a renewal email at the same time, which isn't ideal.
In order to mitigate this, this PR allows server admins to define a 'max_delta' so that the expiration date is a random value in the [now + validity_period ; now + validity_period + max_delta] range. This allows renewal emails to be progressively sent over a configured period instead of being sent all in one big batch.
2019-05-28 16:52:45 +01:00
..
engines
schema Fix schema update for account validity 2019-05-28 10:11:38 +01:00
util
__init__.py
_base.py Allow configuring a range for the account validity startup job 2019-05-28 16:52:45 +01:00
account_data.py
appservice.py Expose DataStore._get_events as get_events_as_list 2019-05-14 13:37:44 +01:00
background_updates.py
client_ips.py
deviceinbox.py Limit the number of EDUs in transactions to 100 as expected by receiver (#5138) 2019-05-09 11:01:41 +01:00
devices.py
directory.py
e2e_room_keys.py
end_to_end_keys.py
event_federation.py Expose DataStore._get_events as get_events_as_list 2019-05-14 13:37:44 +01:00
event_push_actions.py
events.py
events_worker.py Update docstring with correct type 2019-05-15 09:52:15 +01:00
filtering.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
group_server.py
keys.py
media_repository.py
monthly_active_users.py
openid.py
prepare_database.py
presence.py
profile.py
push_rule.py
pusher.py
receipts.py
registration.py Add startup background job for account validity 2019-05-17 19:37:31 +01:00
rejections.py
room.py
roommember.py
search.py Expose DataStore._get_events as get_events_as_list 2019-05-14 13:37:44 +01:00
signatures.py
state.py
state_deltas.py Fix infinite loop in presence handler 2019-04-26 11:14:49 +01:00
stream.py Expose DataStore._get_events as get_events_as_list 2019-05-14 13:37:44 +01:00
tags.py
transactions.py
user_directory.py
user_erasure_store.py