-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add a dockerfile for running a set of Synapse worker processes #9162
Commits on Jan 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 31e9579 - Browse repository at this point
Copy the full SHA 31e9579View commit details -
Prevent an empty resources: list if no listener_resources defined
This was causing worker_listener blocks to get generated with Nonetype resources, crashing things. This was only a problem for worker types that don't have any configured resources.
Configuration menu - View commit details
-
Copy full SHA for d61dc37 - Browse repository at this point
Copy the full SHA d61dc37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3523080 - Browse repository at this point
Copy the full SHA 3523080View commit details -
Configuration menu - View commit details
-
Copy full SHA for e66f9e7 - Browse repository at this point
Copy the full SHA e66f9e7View commit details
Commits on Jan 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2e3134b - Browse repository at this point
Copy the full SHA 2e3134bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6571ee - Browse repository at this point
Copy the full SHA f6571eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f1b649 - Browse repository at this point
Copy the full SHA 3f1b649View commit details
Commits on Jan 23, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8b41fdf - Browse repository at this point
Copy the full SHA 8b41fdfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d6af88 - Browse repository at this point
Copy the full SHA 2d6af88View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb0b272 - Browse repository at this point
Copy the full SHA cb0b272View commit details -
Configuration menu - View commit details
-
Copy full SHA for 842dc50 - Browse repository at this point
Copy the full SHA 842dc50View commit details
Commits on Feb 1, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 31cac05 - Browse repository at this point
Copy the full SHA 31cac05View commit details
Commits on Feb 2, 2021
-
Configuration menu - View commit details
-
Copy full SHA for fb40f20 - Browse repository at this point
Copy the full SHA fb40f20View commit details
Commits on Mar 3, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e363197 - Browse repository at this point
Copy the full SHA e363197View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb83854 - Browse repository at this point
Copy the full SHA fb83854View commit details -
Remove support for '*' to specify all workers
If we're supporting multiple instances of individual worker types, then having a 'run all workers' mode doesn't make too much sense
Configuration menu - View commit details
-
Copy full SHA for 4779845 - Browse repository at this point
Copy the full SHA 4779845View commit details
Commits on Mar 4, 2021
-
Add support for sharded worker instances
This required making the shared config a dictionary instead of a large str, so we could manipulate it easier. We do eventually convert it to a str before writing though of course.
Configuration menu - View commit details
-
Copy full SHA for b265083 - Browse repository at this point
Copy the full SHA b265083View commit details -
Configuration menu - View commit details
-
Copy full SHA for e99007d - Browse repository at this point
Copy the full SHA e99007dView commit details
Commits on Mar 5, 2021
-
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/syn…
…apse_worker_docker
Configuration menu - View commit details
-
Copy full SHA for 48b7faf - Browse repository at this point
Copy the full SHA 48b7fafView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc9d243 - Browse repository at this point
Copy the full SHA cc9d243View commit details
Commits on Mar 25, 2021
-
Explicitly set worker listener resources
The default was just an abstraction for not much gain. Instead we can just set them explicitly for each worker. This commit also fixes an issue with how we append to the instance map, and a log line substitution.
Configuration menu - View commit details
-
Copy full SHA for 04dd483 - Browse repository at this point
Copy the full SHA 04dd483View commit details -
Configuration menu - View commit details
-
Copy full SHA for 278579a - Browse repository at this point
Copy the full SHA 278579aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f5a8ee - Browse repository at this point
Copy the full SHA 7f5a8eeView commit details -
Drop whitelist of shardable worker types.
Synapse should enforce this, not us.
Configuration menu - View commit details
-
Copy full SHA for 609f1c1 - Browse repository at this point
Copy the full SHA 609f1c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f9d7e28 - Browse repository at this point
Copy the full SHA f9d7e28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ae6108 - Browse repository at this point
Copy the full SHA 3ae6108View commit details -
Add load-balancing support; support sharding media_repo
This required some changes to the way we handle our nginx config. It's now a dictionary instead of just a str. This was because endpoint mapping blocks would get duplicated when we configured multiple instances of the same worker. Now that the nginx config is organised by a map of endpoints to upstreams, those endpoints de-duplicate automatically. Speaking of upstreams, we now handle creating upstreams which load balance between processes. To route traffic to an upstream, you simply need to proxy_pass to its name. We use a separate dict to keep track of upstreams and where they point to. These upstreams do round-robin LBing. Note that we don't really want other load-balancing types for our tests. For instance, balancing by request IP makes no sense as the tests will be sending requests all the from the same IP. What we really want is for the load-balancing to be deterministic, which round-robin is (as long as the tests remain constant themselves).
Configuration menu - View commit details
-
Copy full SHA for f39a25b - Browse repository at this point
Copy the full SHA f39a25bView commit details -
Bail out from configure script if it is run multiple times
Turns out Complement may run your ENTRYPOINT script multiple times - who knew! The script appends to config files, which can break things if the same content is appended twice (I only noticed this once we started adding upstreams to the nginx config. You can't have two upstreams with the same name - but apparently you can have two identical server blocks!) We could try to be clever and make the script work with being run multiple times, but that's a maintanence burden. I instead opted to just place a file down if the script had already been run, and refuse to run again if that file exists.
Configuration menu - View commit details
-
Copy full SHA for 21b3f22 - Browse repository at this point
Copy the full SHA 21b3f22View commit details -
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/syn…
…apse_worker_docker
Configuration menu - View commit details
-
Copy full SHA for 1711d34 - Browse repository at this point
Copy the full SHA 1711d34View commit details -
Add env var SYNAPSE_WORKERS_WRITE_LOGS_TO_DISK
Note that this environment variable only affects writing worker logs to disk, but it does not affects the main process's log config.
Configuration menu - View commit details
-
Copy full SHA for c54801a - Browse repository at this point
Copy the full SHA c54801aView commit details
Commits on Mar 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0bd42a3 - Browse repository at this point
Copy the full SHA 0bd42a3View commit details -
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/syn…
…apse_worker_docker
Configuration menu - View commit details
-
Copy full SHA for ea31dc8 - Browse repository at this point
Copy the full SHA ea31dc8View commit details
Commits on Apr 6, 2021
-
Clarify this is intended for testing purposes
Co-authored-by: Erik Johnston <erik@matrix.org>
Configuration menu - View commit details
-
Copy full SHA for 5a77614 - Browse repository at this point
Copy the full SHA 5a77614View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69a6399 - Browse repository at this point
Copy the full SHA 69a6399View commit details -
Apply suggestions from code review
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for e3fbd62 - Browse repository at this point
Copy the full SHA e3fbd62View commit details -
Update worker docker image name to matrixdotorg/synapse-workers
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for d844d97 - Browse repository at this point
Copy the full SHA d844d97View commit details -
Configuration menu - View commit details
-
Copy full SHA for f218ae9 - Browse repository at this point
Copy the full SHA f218ae9View commit details -
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/syn…
…apse_worker_docker
Configuration menu - View commit details
-
Copy full SHA for a7666d1 - Browse repository at this point
Copy the full SHA a7666d1View commit details
Commits on Apr 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 486d5d1 - Browse repository at this point
Copy the full SHA 486d5d1View commit details
Commits on Apr 13, 2021
-
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/syn…
…apse_worker_docker
Configuration menu - View commit details
-
Copy full SHA for e47b390 - Browse repository at this point
Copy the full SHA e47b390View commit details -
SYNAPSE_WORKERS -> SYNAPSE_WORKER_TYPES
As we already have a SYNAPSE_WORKER env var.
Configuration menu - View commit details
-
Copy full SHA for 700c203 - Browse repository at this point
Copy the full SHA 700c203View commit details
Commits on Apr 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 314473f - Browse repository at this point
Copy the full SHA 314473fView commit details -
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/syn…
…apse_worker_docker
Configuration menu - View commit details
-
Copy full SHA for 030b1f4 - Browse repository at this point
Copy the full SHA 030b1f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a37f25 - Browse repository at this point
Copy the full SHA 1a37f25View commit details