BDB replica sync field
The BDB replica_sync field relates to the Replica Of feature, which enables the creation of a Redis database (single- or multi-shard) that synchronizes data from another Redis database (single- or multi-shard).
You can use the replica_sync field to enable, disable, or pause the Replica Of sync process. The BDB crdt_sync field has a similar purpose for the Redis CRDB.
Possible BDB sync values:
| Status | Description | Possible next status |
|---|---|---|
| ‘disabled’ | (default value) Disables the sync process and represents that no sync is currently configured or running. | ’enabled' |
| ’enabled' | Enables the sync process and represents that the process is currently active. | ‘stopped’ ‘paused’ |
| ‘paused’ | Pauses the sync process. The process is configured but is not currently executing any sync commands. | ’enabled’ ‘stopped’ |
| ‘stopped’ | An unrecoverable error occurred during the sync process, which caused the system to stop the sync. | ’enabled’ |

When the sync is in the ‘stopped’ or ‘paused’ state, then the last_error field in the relevant source entry in the sync_sources “status” field contains the detailed error message.