diff --git a/docs/tcp_replication.md b/docs/tcp_replication.md index 43ea42a477..3be8e50c4c 100644 --- a/docs/tcp_replication.md +++ b/docs/tcp_replication.md @@ -202,6 +202,8 @@ Asks the server for the current position of all streams. The server should clear all associated user sync data from the worker. + This is used when a worker is shutting down. + #### FEDERATION_ACK (C) Acknowledge receipt of some federation data diff --git a/synapse/server.py b/synapse/server.py index 59bce94abd..231b7147bc 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -243,6 +243,9 @@ class HomeServer(object): def get_instance_id(self): """A unique ID for this synapse process instance. + + This is used to distinguish running instances in worker-based + deployments. """ return self.instance_id