Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

123456789101112131415161718192021222324252627282930313233343536
  1. ### Using synctl with workers
  2. If you want to use `synctl` to manage your synapse processes, you will need to
  3. create an an additional configuration file for the main synapse process. That
  4. configuration should look like this:
  5. ```yaml
  6. worker_app: synapse.app.homeserver
  7. ```
  8. Additionally, each worker app must be configured with the name of a "pid file",
  9. to which it will write its process ID when it starts. For example, for a
  10. synchrotron, you might write:
  11. ```yaml
  12. worker_pid_file: /home/matrix/synapse/worker1.pid
  13. ```
  14. Finally, to actually run your worker-based synapse, you must pass synctl the `-a`
  15. commandline option to tell it to operate on all the worker configurations found
  16. in the given directory, e.g.:
  17. ```sh
  18. synctl -a $CONFIG/workers start
  19. ```
  20. Currently one should always restart all workers when restarting or upgrading
  21. synapse, unless you explicitly know it's safe not to. For instance, restarting
  22. synapse without restarting all the synchrotrons may result in broken typing
  23. notifications.
  24. To manipulate a specific worker, you pass the -w option to synctl:
  25. ```sh
  26. synctl -w $CONFIG/workers/worker1.yaml restart
  27. ```