mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
e4f545c452
* 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>
22 lines
532 B
Django/Jinja
22 lines
532 B
Django/Jinja
# This is a configuration template for a single worker instance, and is
|
|
# used by Dockerfile-workers.
|
|
# Values will be change depending on whichever workers are selected when
|
|
# running that image.
|
|
|
|
worker_app: "{{ app }}"
|
|
worker_name: "{{ name }}"
|
|
|
|
worker_listeners:
|
|
- type: http
|
|
port: {{ port }}
|
|
{% if listener_resources %}
|
|
resources:
|
|
- names:
|
|
{%- for resource in listener_resources %}
|
|
- {{ resource }}
|
|
{%- endfor %}
|
|
{% endif %}
|
|
|
|
worker_log_config: {{ worker_log_config_filepath }}
|
|
|
|
{{ worker_extra_conf }}
|