switchover ru

Switch leadership for the given replication unit to the specified database.

Syntax

switchover [ru|replication_unit] {-ru ru_id -database target_db | -rebalance}
[-timeout time]
         

Options

Table 2-115 GDSCTL switchover ru Options

Option Description
-database

The name of the database.

-rebalance

Perform rebalancing of replication units across shards.

-ru

Replication unit ID

-timeout

Timeout of connection retention between FAN is sent to clients and chunk going read-only/down (seconds).

Usage Notes

If the REBALANCE option is specified, an operation of rebalancing replication units and leadership responsibilities is distributed equally across the shards.

Examples

GDSCTL> switchover ru -ru 1 -database dba