CellInfo contains information about a cell.
KeyRange describes a range of sharding keys, when range-based sharding is used.
KeyRange describes a range of sharding keys, when range-based sharding is used.
A Keyspace contains data about a keyspace.
A Keyspace contains data about a keyspace.
name of the column used for sharding empty if the keyspace is not sharded
type of the column used for sharding UNSET if the keyspace is not sharded
ServedFrom will redirect the appropriate traffic to another keyspace.
A Shard contains data about a subset of the data whithin a keyspace.
A Shard contains data about a subset of the data whithin a keyspace. master_alias is the tablet alias of the master for the shard. If it is unset, then there is no master in this shard yet.
No lock is necessary to update this field, when for instance TabletExternallyReparented updates this. However, we lock the shard for reparenting operations (InitShardMaster, PlannedReparentShard,EmergencyReparentShard), to guarantee exclusive operation.
key_range is the KeyRange for this shard. It can be unset if:
served_types has at most one entry per TabletType The keyspace lock is always taken when changing this.
SourceShards is the list of shards we're replicating from, using filtered replication. The keyspace lock is always taken when changing this.
Cells is the list of cells that contain tablets for this shard. No lock is necessary to update this field.
tablet_controls has at most one entry per TabletType. The keyspace lock is always taken when changing this.
ShardReference is used as a pointer from a SrvKeyspace to a Shard
ShardReference is used as a pointer from a SrvKeyspace to a Shard
Copied from Shard.
ShardReplication describes the MySQL replication relationships whithin a cell.
ShardReplication describes the MySQL replication relationships whithin a cell.
Note there can be only one Node in this array for a given tablet.
SrvKeyspace is a rollup node for the keyspace itself.
SrvKeyspace is a rollup node for the keyspace itself.
The partitions this keyspace is serving, per tablet type.
copied from Keyspace
Tablet represents information about a running instance of vttablet.
Tablet represents information about a running instance of vttablet.
alias is the unique name of the tablet.
Fully qualified domain name of the host.
IP address, stored as a string.
Map of named ports. Normally this should include vt, grpc, and mysql.
Keyspace name.
Shard name. If range based sharding is used, it should match key_range.
If range based sharding is used, range for the tablet's shard.
type is the current type of the tablet.
It this is set, it is used as the database name instead of the normal "vt_" + keyspace.
tablet tags
TabletAlias is a globally unique tablet identifier.
TabletAlias is a globally unique tablet identifier.
cell is the cell (or datacenter) the tablet is in
uid is a unique id for this tablet within the shard (this is the MySQL server id as well).
CellInfo contains information about a cell. CellInfo objects are stored in the global topology server, and describe how to reach local topology servers.
ServerAddress contains the address of the server for the cell. The syntax of this field is topology implementation specific. For instance, for Zookeeper, it is a comma-separated list of server addresses.
Root is the path to store data in. It is only used when talking to server_address.