diff options
author | Erik Johnston <erikj@jki.re> | 2018-02-13 18:07:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-13 18:07:10 +0000 |
commit | c0c9327fe009da05a90985bc9c3f9f7acd145eaa (patch) | |
tree | cadb1ace409f9432069abe86f8fbba250480c609 /synapse/config/workers.py | |
parent | Fix log message in purge_history (diff) | |
parent | Update docs (diff) | |
download | synapse-c0c9327fe009da05a90985bc9c3f9f7acd145eaa.tar.xz |
Merge pull request #2854 from matrix-org/erikj/event_create_worker
Create a worker for event creation
Diffstat (limited to 'synapse/config/workers.py')
-rw-r--r-- | synapse/config/workers.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/config/workers.py b/synapse/config/workers.py index 4b6884918d..80baf0ce0e 100644 --- a/synapse/config/workers.py +++ b/synapse/config/workers.py @@ -33,8 +33,16 @@ class WorkerConfig(Config): self.worker_pid_file = config.get("worker_pid_file") self.worker_log_file = config.get("worker_log_file") self.worker_log_config = config.get("worker_log_config") + + # The host used to connect to the main synapse self.worker_replication_host = config.get("worker_replication_host", None) + + # The port on the main synapse for TCP replication self.worker_replication_port = config.get("worker_replication_port", None) + + # The port on the main synapse for HTTP replication endpoint + self.worker_replication_http_port = config.get("worker_replication_http_port") + self.worker_name = config.get("worker_name", self.worker_app) self.worker_main_http_uri = config.get("worker_main_http_uri", None) |