Remove `worker_replication_*` settings (#15491)
* Add master to the instance_map as part of Complement, have ReplicationEndpoint look at instance_map for master. * Fix typo in drive by. * Remove unnecessary worker_replication_* bits from unit tests and add master to instance_map(hopefully in the right place) * Several updates: 1. Switch from master to main for naming the main process in the instance_map. Add useful constants for easier adjustment of names in the future. 2. Add backwards compatibility for worker_replication_* to allow time to transition to new style. Make sure to prioritize declaring main directly on the instance_map. 3. Clean up old comments/commented out code. 4. Adjust unit tests to match with new code. 5. Adjust Complement setup infrastructure to only add main to the instance_map if workers are used and remove now unused options from the worker.yaml template. * Initial Docs upload * Changelog * Missed some commented out code that can go now * Remove TODO comment that no longer holds true. * Fix links in docs * More docs * Remove debug logging * Apply suggestions from code review Co-authored-by:reivilibre <olivier@librepush.net> * Apply suggestions from code review Co-authored-by:
reivilibre <olivier@librepush.net> * Update version to latest, include completeish before/after examples in upgrade notes. * Fix up and docs too --------- Co-authored-by:
reivilibre <olivier@librepush.net>
Showing
- changelog.d/15491.misc 1 addition, 0 deletionschangelog.d/15491.misc
- docker/conf-workers/worker.yaml.j2 0 additions, 4 deletionsdocker/conf-workers/worker.yaml.j2
- docker/configure_workers_and_start.py 13 additions, 2 deletionsdocker/configure_workers_and_start.py
- docs/systemd-with-workers/workers/generic_worker.yaml 0 additions, 4 deletionsdocs/systemd-with-workers/workers/generic_worker.yaml
- docs/upgrade.md 78 additions, 0 deletionsdocs/upgrade.md
- docs/usage/configuration/config_documentation.md 14 additions, 6 deletionsdocs/usage/configuration/config_documentation.md
- docs/workers.md 29 additions, 12 deletionsdocs/workers.md
- synapse/config/workers.py 61 additions, 17 deletionssynapse/config/workers.py
- synapse/replication/http/_base.py 5 additions, 11 deletionssynapse/replication/http/_base.py
- tests/module_api/test_api.py 1 addition, 0 deletionstests/module_api/test_api.py
- tests/replication/_base.py 3 additions, 5 deletionstests/replication/_base.py
- tests/replication/test_auth.py 0 additions, 3 deletionstests/replication/test_auth.py
- tests/replication/test_client_reader_shard.py 0 additions, 2 deletionstests/replication/test_client_reader_shard.py
- tests/replication/test_sharded_event_persister.py 1 addition, 0 deletionstests/replication/test_sharded_event_persister.py
Loading
Please register or sign in to comment