dcloud rds replication setMake a cluster synchronous or asynchronous (live, no restart), and/or turn logical replication on or off (with a restart)
Synchronous is not strict: with no standby streaming, the leader keeps accepting writes and the health check reports sync-degraded until one is back. logicalReplication sets wal_level = logical; a cluster restarts member by member with one switchover, a single node restarts once (writes pause for the restart). Turning it off is refused while any logical slot exists.
Synopsis
dcloud rds replication set id [flags]Arguments
<id>Requiredstring
Also accepted as
--id. Constraints: 3-64 chars, /^(?!ewdoc-)[a-z0-9-]+$/
Flags
--replication-modeOptionalenum
Cluster only, applied live. sync: a commit waits for one standby, so a failover loses nothing acknowledged; async: it does not wait. Omitted: unchanged
One of:
async,sync--logical-replicationOptionalboolean (--logical-replication / --no-logical-replication)
wal_level = logical for CDC and publications, applied with a restart; omitted: unchanged
Example
dcloud rds replication set idGenerated from the API description, the same one the API checks requests against and the CLI is built from.