EmergencyReparentShard

vtctldclient EmergencyReparentShard

Reparents the shard to the new primary. Assumes the old primary is dead and not responding.

1. vtctldclient EmergencyReparentShard <keyspace/shard>

Options

1. -h, --help                             help for EmergencyReparentShard
2. -i, --ignore-replicas strings          Comma-separated, repeated list of replica tablet aliases to ignore during the emergency reparent.
3. --new-primary string               Alias of a tablet that should be the new primary. If not specified, the vtctld will select the best candidate to promote.
4. --prevent-cross-cell-promotion     Only promotes a new primary from the same cell as the previous primary.
5. --wait-for-all-tablets             Should ERS wait for all the tablets to respond. Useful when all the tablets are reachable.
6. --wait-replicas-timeout duration   Time to wait for replicas to catch up in reparenting. (default 15s)

Options inherited from parent commands

1. --action_timeout duration   timeout to use for the command (default 1h0m0s)
2. --compact                   use compact format for otherwise verbose outputs
3. --server string             server to use for the connection (required)

SEE ALSO

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