anonymousland-synapse/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 Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
schema Fix schema update for account validity 2019-05-28 10:11:38 +01:00
util Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
__init__.py Clean up the database pagination code (#5007) 2019-04-05 00:21:16 +11:00
_base.py Allow configuring a range for the account validity startup job 2019-05-28 16:52:45 +01:00
account_data.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
appservice.py Expose DataStore._get_events as get_events_as_list 2019-05-14 13:37:44 +01:00
background_updates.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
client_ips.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
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 Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
directory.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
e2e_room_keys.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
end_to_end_keys.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
event_federation.py Expose DataStore._get_events as get_events_as_list 2019-05-14 13:37:44 +01:00
event_push_actions.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
events_worker.py Update docstring with correct type 2019-05-15 09:52:15 +01:00
events.py drop tables listed in #1830 (#4992) 2019-04-08 15:37:26 +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 Add functions to delete a group 2019-04-03 16:29:52 +01:00
keys.py Rewrite Datastore.get_server_verify_keys 2019-04-09 00:00:10 +01:00
media_repository.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
monthly_active_users.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
openid.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
prepare_database.py Add account expiration feature 2019-04-09 16:46:04 +01:00
presence.py Remove presence lists (#4989) 2019-04-03 11:11:15 +01:00
profile.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
push_rule.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
pusher.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
receipts.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
registration.py Add startup background job for account validity 2019-05-17 19:37:31 +01:00
rejections.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
room.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
roommember.py Run black on some storage modules that the stats branch touches (#4959) 2019-03-29 00:37:16 +11:00
search.py Expose DataStore._get_events as get_events_as_list 2019-05-14 13:37:44 +01:00
signatures.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
state_deltas.py Fix infinite loop in presence handler 2019-04-26 11:14:49 +01:00
state.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
stream.py Expose DataStore._get_events as get_events_as_list 2019-05-14 13:37:44 +01:00
tags.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
transactions.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
user_directory.py Fix grammar and document get_current_users_in_room (#4998) 2019-04-03 14:32:20 +01:00
user_erasure_store.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00