Allow config of the backoff algorithm for the federation client. (#15754)
Adds three new configuration variables: * destination_min_retry_interval is identical to before (10mn). * destination_retry_multiplier is now 2 instead of 5, the maximum value will be reached slower. * destination_max_retry_interval is one day instead of (essentially) infinity. Capping this will cause destinations to continue to be retried sometimes instead of being lost forever. The previous value was 2 ^ 62 milliseconds.
Showing
- changelog.d/15754.misc 1 addition, 0 deletionschangelog.d/15754.misc
- docs/usage/configuration/config_documentation.md 11 additions, 0 deletionsdocs/usage/configuration/config_documentation.md
- synapse/config/federation.py 18 additions, 0 deletionssynapse/config/federation.py
- synapse/util/retryutils.py 16 additions, 13 deletionssynapse/util/retryutils.py
- tests/storage/test_transactions.py 7 additions, 2 deletionstests/storage/test_transactions.py
- tests/util/test_retryutils.py 11 additions, 11 deletionstests/util/test_retryutils.py
Loading
Please register or sign in to comment