Spawning from wanting to [run a load test](https://github.com/element-hq/synapse-rust-apps/pull/397) against the Complement Docker image of Synapse and see metrics from the homeserver. ### Why not just provide your own homeserver config? Probably possible but it gets tricky when you try to use the workers variant of the Docker image (`docker/Dockerfile-workers`). The way to workaround it would probably be to `yq` edit everything in a script and change `/data/homeserver.yaml` and `/conf/workers/*.yaml` to add the `metrics` listener. And then modify `/conf/workers/shared.yaml` to add `enable_metrics: true`. Doesn't spark much joy.
29 lines
746 B
Django/Jinja
29 lines
746 B
Django/Jinja
# This file contains the base for the shared homeserver config file between Synapse workers,
|
|
# as part of ./Dockerfile-workers.
|
|
# configure_workers_and_start.py uses and amends to this file depending on the workers
|
|
# that have been selected.
|
|
|
|
{% if enable_redis %}
|
|
redis:
|
|
enabled: true
|
|
{% if using_unix_sockets %}
|
|
path: /tmp/redis.sock
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if appservice_registrations is not none %}
|
|
## Application Services ##
|
|
# A list of application service config files to use.
|
|
app_service_config_files:
|
|
{%- for path in appservice_registrations %}
|
|
- "{{ path }}"
|
|
{%- endfor %}
|
|
{%- endif %}
|
|
|
|
{# Controlled by SYNAPSE_ENABLE_METRICS #}
|
|
{% if enable_metrics %}
|
|
enable_metrics: true
|
|
{% endif %}
|
|
|
|
{{ shared_worker_config }}
|