This is the documentation for Vitess v19.0, an older release. See the v24.0 documentation for the latest release.
vtctl Replication Graph Command Reference
The following vtctl commands are available for administering the Replication Graph.
Commands #
GetShardReplication #
Outputs a JSON structure that contains information about the ShardReplication.
Example #
GetShardReplication <cell> <keyspace/shard>
Arguments #
<cell>β Required. A cell is a location for a service. Generally, a cell resides in only one cluster. In Vitess, the terms "cell" and "data center" are interchangeable. The argument value is a string that does not contain whitespace.<keyspace/shard>β Required. The name of a sharded database that contains one or more tables as well as the shard associated with the command. The keyspace must be identified by a string that does not contain whitespace, while the shard is typically identified by a string in the format<range start>-<range end>.
Errors #
- the
<cell>and<keyspace/shard>arguments are required for the<GetShardReplication>command This error occurs if the command is not called with exactly 2 arguments.
See Also #
vtctl Replication Graph Command Reference