This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the Dockerfile-workers configuration script to use Jinja2 te…
…mplates in Synapse workers' Supervisord blocks. (#13054) Co-authored-by: Richard van der Hoff <[email protected]>
- Loading branch information
1 parent
3ceaf14
commit 3c5549e
Showing
4 changed files
with
43 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Refactor the Dockerfile-workers configuration script to use Jinja2 templates in Synapse workers' Supervisord blocks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[program:synapse_main] | ||
command=/usr/local/bin/prefix-log /usr/local/bin/python -m synapse.app.homeserver | ||
--config-path="{{ main_config_path }}" | ||
--config-path=/conf/workers/shared.yaml | ||
priority=10 | ||
# Log startup failures to supervisord's stdout/err | ||
# Regular synapse logs will still go in the configured data directory | ||
stdout_logfile=/dev/stdout | ||
stdout_logfile_maxbytes=0 | ||
stderr_logfile=/dev/stderr | ||
stderr_logfile_maxbytes=0 | ||
autorestart=unexpected | ||
exitcodes=0 | ||
|
||
|
||
{% for worker in workers %} | ||
[program:synapse_{{ worker.name }}] | ||
command=/usr/local/bin/prefix-log /usr/local/bin/python -m {{ worker.app }} | ||
--config-path="{{ main_config_path }}" | ||
--config-path=/conf/workers/shared.yaml | ||
--config-path=/conf/workers/{{ worker.name }}.yaml | ||
autorestart=unexpected | ||
priority=500 | ||
exitcodes=0 | ||
stdout_logfile=/dev/stdout | ||
stdout_logfile_maxbytes=0 | ||
stderr_logfile=/dev/stderr | ||
stderr_logfile_maxbytes=0 | ||
|
||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters