PlannedReparentShard

vtctldclient PlannedReparentShard

Reparents the shard to a new primary, or away from an old primary. Both the old and new primaries must be up and running.

  1. vtctldclient PlannedReparentShard <keyspace/shard>

Options

  1. --avoid-primary string Alias of a tablet that should not be the primary; i.e. "reparent to any other tablet if this one is the primary".
  2. -h, --help help for PlannedReparentShard
  3. --new-primary string Alias of a tablet that should be the new primary.
  4. --wait-replicas-timeout duration Time to wait for replicas to catch up on replication both before and after reparenting. (default 15s)

Options inherited from parent commands

  1. --action_timeout duration timeout for the total command (default 1h0m0s)
  2. --server string server to use for connection (required)

SEE ALSO

  • vtctldclient - Executes a cluster management command on the remote vtctld server.