{
  "id": "synchronization-mode",
  "title": "Configure distributed synchronization",
  "url": "https://redis.io/docs/latest/operate/rs/7.8/databases/active-active/synchronization-mode/",
  "summary": "How to configure distributed synchronization so that any available proxy endpoint can manage synchronization traffic.",
  "content": "Replicated databases, such as [Replica Of]() and [Active-Active]() databases,\nuse proxy endpoints to synchronize database changes with the databases on other participating clusters.\n\nTo improve the throughput and lower the latency for synchronization traffic,\nyou can configure a replicated database to use distributed synchronization where any available proxy endpoint can manage synchronization traffic.\n\nEvery database by default has one proxy endpoint that manages client and synchronization communication with the database shards,\nand that proxy endpoint is used for database synchronization.\nThis is called centralized synchronization.\n\nTo prepare a database to use distributed synchronization you must first make sure that the database [proxy policy]()\nis defined so that either each node has a proxy endpoint or each primary (master) shard has a proxy endpoint.\nAfter you have multiple proxies for the database,\nyou can configure the database synchronization to use distributed synchronization.\n\n## Configure distributed synchronization\n\n\nYou may use the database name in place of `db:\u003cID\u003e` in the following `rladmin` commands.\n\n\nTo configure distributed synchronization:\n\n1. To check the proxy policy for the database, run: `rladmin status`\n\n    The output of the status command shows the list of endpoints on the cluster and the proxy policy for the endpoint.\n\n    ```sh\n    ENDPOINTS:\n    DB:ID       NAME      ID                        NODE          ROLE                                SSL\n    db:1        db        endpoint:1:1              node:1        all-master-shards                   No\n    ```\n\n    If the proxy policy (also known as a _role_) is `single`, configure the policy to `all-nodes` or `all-master-shards` according to your needs with the command:\n\n    ```sh\n    rladmin bind db db:\u003cID\u003e endpoint \u003cendpoint id\u003e policy \u003call-master-shards|all-nodes\u003e\n    ```\n\n1. To configure the database to use distributed synchronization, run:\n\n    ```sh\n    rladmin tune db db:\u003cID\u003e syncer_mode distributed\n    ```\n\n    To change back to centralized synchronization, run:\n\n    ```sh\n    rladmin tune db db:\u003cID\u003e syncer_mode centralized\n    ```\n\n## Verify database synchronization\n\nUse `rladmin` to verify a database synchronization role:\n\n```sh\nrladmin info db db:\u003cID\u003e\n```\n\nThe current database role is reported as the `syncer_mode` value:\n\n```sh\n$ rladmin info db db:\u003cID\u003e     \ndb:\u003cID\u003e [\u003cdb_name\u003e]:\n  // (Other settings removed) \n  syncer_mode: centralized\n```\n",
  "tags": ["docs","operate","rs"],
  "last_updated": "2026-04-01T08:10:08-05:00"
}

