Skip to content
Snippets Groups Projects
  1. Jul 08, 2021
  2. Jun 07, 2021
  3. May 05, 2021
  4. Apr 14, 2021
    • Andrew Morgan's avatar
      Add a dockerfile for running a set of Synapse worker processes (#9162) · 7e460ec2
      Andrew Morgan authored
      This PR adds a Dockerfile and some supporting files to the `docker/` directory. The Dockerfile's intention is to spin up a container with:
      
      * A Synapse main process.
      * Any desired worker processes, defined by a `SYNAPSE_WORKERS` environment variable supplied at runtime.
      * A redis for worker communication.
      * A nginx for routing traffic.
      * A supervisord to start all worker processes and monitor them if any go down.
      
      Note that **this is not currently intended to be used in production**. If you'd like to use Synapse workers with Docker, instead make use of the official image, with one worker per container. The purpose of this dockerfile is currently to allow testing Synapse in worker mode with the [Complement](https://github.com/matrix-org/complement/) test suite.
      
      `configure_workers_and_start.py` is where most of the magic happens in this PR. It reads from environment variables (documented in the file) and creates all necessary config files for the processes. It is the entrypoint of the Dockerfile, and thus is run any time the docker container is spun up, recreating all config files in case you want to use a different set of workers. One can specify which workers they'd like to use by setting the `SYNAPSE_WORKERS` environment variable (as a comma-separated list of arbitrary worker names) or by setting it to `*` for all worker processes. We will be using the latter in CI.
      
      Huge thanks to @MatMaul for helping get this all working 🎉 This PR is paired with its equivalent on the Complement side: https://github.com/matrix-org/complement/pull/62.
      
      Note, for the purpose of testing this PR before it's merged: You'll need to (re)build the base Synapse docker image for everything to work (`matrixdotorg/synapse:latest`). Then build the worker-based docker image on top (`matrixdotorg/synapse:workers`). 
      7e460ec2
    • Andrew Morgan's avatar
      Add note to docker docs explaining platform support (#9801) · f16c6cf5
      Andrew Morgan authored
      Context is in https://github.com/matrix-org/synapse/issues/9764#issuecomment-818615894.
      
      I struggled to find a more official link for this. The problem occurs when using WSL1 instead of WSL2, which some Windows platforms (at least Server 2019) still don't have. Docker have updated their documentation to paint a much happier picture now given WSL2's support.
      
      The last sentence here can probably be removed once WSL1 is no longer around... though that will likely not be for a very long time.
      f16c6cf5
  5. Mar 16, 2021
  6. Feb 22, 2021
  7. Oct 11, 2020
  8. Aug 24, 2020
  9. Jul 17, 2020
  10. Feb 18, 2020
  11. Nov 22, 2019
  12. Oct 28, 2019
  13. Sep 19, 2019
    • Michael Kaye's avatar
      Docker: support SYNAPSE_WORKER envvar (#6058) · 2def5ea0
      Michael Kaye authored
      * Allow passing SYNAPSE_WORKER envvar
      
      * changelog.d
      
      * Document SYNAPSE_WORKER.
      
      Attempting to imply that you don't need to change this default
      unless you're in worker mode.
      
      Also aware that there's a bigger problem of attempting to document
      a complete working configuration of workers using docker, as we
      currently only document to use `synctl` for worker mode, and synctl
      doesn't work that way in docker.
      2def5ea0
  14. Aug 28, 2019
  15. Jul 02, 2019
  16. Jun 27, 2019
  17. Jun 26, 2019
  18. Jun 13, 2019
  19. May 22, 2019
  20. Apr 25, 2019
  21. Apr 04, 2019
  22. Mar 29, 2019
  23. Mar 07, 2019
  24. Feb 05, 2019
  25. Sep 16, 2018
  26. Aug 03, 2018
  27. Aug 02, 2018
  28. Jul 17, 2018
  29. May 17, 2018
  30. May 01, 2018
  31. Feb 08, 2018
Loading