Sync official Synapse worker system from beacon-node#3
Closed
Sync official Synapse worker system from beacon-node#3
Conversation
Brings beacon-synapse up to date with the worker system implementation
from beacon-node/docker (deacon commit bb57549).
## New files
- beacon_entrypoint.py: Main entrypoint wrapping configure_workers_and_start.py
- configure_workers_and_start.py: Official Synapse worker orchestration (from Element HQ)
- conf-workers/: Jinja2 templates for nginx, supervisord, worker configs
- prefix-log: Log prefix utility for worker process logging
- matrix_synapse.target, synapse_master.service, synapse_worker@.service: systemd units
- template_entrypoint.sh: Template-based entrypoint
- TEST.md: Testing procedures
- docker-compose.test.yml, prometheus.test.yml: Test environment configs
## Updated files
- Dockerfile: Adds nginx, redis-server, supervisor; uses beacon_entrypoint.py
- homeserver.yaml: Jinja2 template syntax ({{VAR}}), updated defaults
- shared_config.yaml: Updated template syntax
- synapse.log.config: Updated logging config
- synctl_entrypoint.sh: Updated for worker compatibility
- wait-for.sh: Updated version
- workers/*.yaml: Updated worker configs
- crypto_auth_provider.py, beacon_*_module.py, README.md: Updates from beacon-node
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The old example showed a minimal single-process setup. The new example demonstrates both single-process and multi-worker modes using profiles, matching the full capability of the image. Changes: - docker-compose.example.yml: Replaced with multi-profile version covering single-process (--profile single), worker mode (--profile workers), and optional monitoring stack (--profile monitoring) - docker-compose.test.yml: Removed (content merged into example.yml) Image references updated to ghcr.io/ecadinfra/beacon-synapse:latest. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Previously the workflow only pushed on semver tags, so PRs triggered a build but nothing was published. Now: PR → ghcr.io/.../beacon-synapse:pr-N main → ghcr.io/.../beacon-synapse:main v* → ghcr.io/.../beacon-synapse:vX.Y.Z + :latest Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
replaced be #4 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings beacon-synapse up to date with the worker system implementation from the deacon
beacon-node/docker/subtree (commitbb57549).beacon_entrypoint.pywraps Element HQ'sconfigure_workers_and_start.pyfor automatic worker setupSYNAPSE_WORKERS=trueenables 4 specialized workers: 2× synchrotron, 1× event_persister, 1× federation_inboundNew files
beacon_entrypoint.py— main entrypoint (wrapsconfigure_workers_and_start.py)configure_workers_and_start.py— official Synapse worker orchestration from Element HQconf-workers/— Jinja2 templates for nginx, supervisord, worker configsprefix-log— log prefix utilitymatrix_synapse.target,synapse_master.service,synapse_worker@.service— systemd unitstemplate_entrypoint.sh— template-based entrypointTEST.md— testing proceduresdocker-compose.test.yml,prometheus.test.yml— test environment configsUpdated files
Dockerfile— adds nginx-light, redis-server, supervisor; switches entrypoint tobeacon_entrypoint.pyhomeserver.yaml— Jinja2 template syntax ({{VAR}}), updated for worker compatibilitysynctl_entrypoint.sh,shared_config.yaml,synapse.log.config— updatedworkers/*.yaml— updated worker configurationscrypto_auth_provider.py,beacon_monitor_module.py,beacon_info_module.py,README.md— updates from beacon-nodeTest plan
docker runwithoutSYNAPSE_WORKERS=trueboots cleanlySYNAPSE_WORKERS=truestarts nginx + 4 workers via supervisord:19090(main) and:19091–:19094(workers).well-known/matrix/serverrouted correctly whenSERVE_WELLKNOWN=true🤖 Generated with Claude Code