Get desktop application:
View/edit binary Protocol Buffers messages
VTAdmin is the Vitess Admin API service. It provides RPCs that operate on across a range of Vitess clusters.
CreateKeyspace creates a new keyspace in the given cluster.
CreateShard creates a new shard in the given cluster and keyspace.
DeleteKeyspace deletes a keyspace in the given cluster.
DeleteShard deletes one or more shards in the given cluster and keyspace.
DeleteTablet deletes a tablet from the topology
EmergencyFailoverShard fails over a shard to a new primary. It assumes the old primary is dead or otherwise not responding.
PromotedPrimary is the tablet alias that was promoted to shard primary. If NewPrimary was set in the request options, then this will be the same tablet alias. Otherwise, it will be the alias of the tablet found to be most up-to-date in the shard.
FindSchema returns a single Schema that matches the provided table name across all specified clusters IDs. Not specifying a set of cluster IDs causes the search to span all configured clusters. An error occurs if either no table exists across any of the clusters with the specified table name, or if multiple tables exist with that name.
GetBackups returns backups grouped by cluster.
Keyspaces, if set, limits backups to just the specified keyspaces. Applies to all clusters in the request.
KeyspaceShards, if set, limits backups to just the specified keyspace/shards. Applies to all clusters in the request. This field takes precedence over Keyspaces. If KeyspaceShards is set, Keyspaces is ignored.
RequestOptions controls the per-shard request options when making GetBackups requests to vtctlds. Note that the Keyspace and Shard fields of this field are ignored; it is used only to specify Limit and Detailed fields.
GetCellInfos returns the CellInfo objects for the specified clusters. Callers may optionally restrict the set of CellInfos, or restrict the response to include only cell names.
Cells, if specified, limits the response to include only CellInfo objects with those names. If omitted, all CellInfo objects in each cluster are returned. Mutually-exclusive with NamesOnly. If both are set, this field takes precedence.
Return only the cell names in each cluster; the actual CellInfo objects will be empty.
GetCellsAliases returns the CellsAliases data for the specified clusters.
GetClusters returns all configured clusters.
(message has no fields)
GetFullStatus returns the full status of MySQL including the replication information, semi-sync information, GTID information among others
GetGates returns all gates across all the specified clusters.
GetKeyspace returns a keyspace by name in the specified cluster.
GetKeyspaces returns all keyspaces across the specified clusters.
GetSchema returns the schema for the specified (cluster, keyspace, table) tuple.
GetSchemas returns all schemas across the specified clusters.
GetShardReplicationPositions returns shard replication positions grouped by cluster.
Keyspaces, if set, limits replication positions to just the specified keyspaces. Applies to all clusters in the request.
KeyspaceShards, if set, limits replicatin positions to just the specified keyspace/shards. Applies to all clusters in the request. This field takes precedence over Keyspaces. If KeyspaceShards is set, Keyspaces is ignored.
GetSrvVSchema returns the SrvVSchema for the given cluster and cell.
GetSrvVSchemas returns all SrvVSchemas across all (or specified) clusters and cells.
GetTablet looks up a tablet by hostname across all clusters and returns the result.
Unique (per cluster) tablet alias.
ClusterIDs is an optional parameter to narrow the scope of the search, if the caller knows which cluster the tablet may be in, or, to disambiguate if multiple clusters have a tablet with the same hostname.
GetTablets returns all tablets across all the specified clusters.
GetTopologyPath returns the cell located at the specified path in the topology server.
GetVSchema returns a VSchema for the specified keyspace in the specified cluster.
GetVSchemas returns the VSchemas for all specified clusters.
GetVtctlds returns the Vtctlds for all specified clusters.
GetWorkflow returns a single Workflow for a given cluster, keyspace, and workflow name.
GetWorkflows returns the Workflows for all specified clusters.
ActiveOnly specifies whether to return workflows that are currently active (running or paused) instead of all workflows.
Keyspaces is a list of keyspaces to restrict the workflow search to. Note that the keyspaces list applies across all cluster IDs in the request. If, for example, you have two clusters, each with a keyspace called "foo" and want the workflows from "foo" in cluster1 but not from cluster2, you must make two requests. Keyspaces and IgnoreKeyspaces are mutually-exclusive, and Keyspaces takes precedence; if Keyspaces is a non-empty list, then IgnoreKeyspaces is ignored completely.
IgnoreKeyspaces is a list of keyspaces to skip during the workflow search. It has the same semantics as the Keyspaces parameter, so refer to that documentation for more details.
PingTablet checks that the specified tablet is awake and responding to RPCs. This command can be blocked by other in-flight operations.
Unique (per cluster) tablet alias of the standard form: "$cell-$uid"
ClusterIDs is an optional parameter to narrow the scope of the search, if the caller knows which cluster the tablet may be in, or, to disambiguate if multiple clusters have a tablet with the same hostname.
PlannedFailoverShard fails over the shard to a new primary, or away from an old primary. Both the old and new primaries must be reachable and running. NOTE: A planned failover will not consider replicas outside the current shard primary's cell as promotion candidates unless NewPrimary is explicitly provided in the request.
PromotedPrimary is the tablet alias that was promoted to shard primary. If NewPrimary was set in the request options, then this will be the same tablet alias. Otherwise, it will be the alias of the tablet found to be most up-to-date in the shard.
RebuildKeyspaceGraph rebuilds the serving data for a keyspace.
RefreshState reloads the tablet record on the specified tablet.
RefreshTabletReplicationSource performs a `CHANGE REPLICATION SOURCE TO` on a tablet to replicate from the current primary in the shard.
ReloadSchemas reloads the schema definition across keyspaces, shards, or tablets in one or more clusters, depending on the request fields (see ReloadSchemasRequest for details).
Keyspaces, if set, will reload schemas across one or more keyspaces. A keyspace not existing in a cluster will not fail the overall request. Superceded by KeyspaceShards and Tablets, in that order.
KeyspaceShards, if set, will reload schemas across one or more shards. Each element must be a valid keyspace/shard according to topoproto.ParseKeyspaceShard. A shard not existing in a cluster will not fail the overall request. Supercedes Keyspaces, and is superceded by Tablets.
Tablets, if set will reload schemas across one or more tablets. Supercedes both Keyspaces and KeyspaceShards.
ClusterIds optionally restricts the reload operation to clusters with the specified IDs. An empty list of ClusterIds will operate on all clusters.
Concurrency controls the number of tablets to reload at any given time. Its semantics depend on whether the request is for keyspace, shard, or tablet mode. In Keyspaces mode, Concurrency is the number of tablets to reload at once *per keyspace*. In KeyspaceShards mode, Concurrency is the number of tablets to reload at once *per shard*. In Tablets mode, Concurrency is the number of tablets to reload at once *per cluster*.
WaitPosition is the replication position that replicating tablets should reach prior to reloading their schemas. Does not apply in Tablets mode.
IncludePrimary, if set, will reload the schemas on PRIMARY tablets as well as REPLICA and RDONLY. Does not apply in Tablets mode.
KeyspaceResults is the list of KeyspaceResult objects for a ReloadSchemas operation. It is only set when the request mandates Keyspaces mode (see ReloadSchemasRequest).
ShardResults is the list of ShardResult objects for a ReloadSchemas operation. It is only set when the request mandates KeyspaceShards mode (see ReloadSchemasRequest).
TabletResults is the list of TabletResult objects for a ReloadSchemas operation. It is only set when the request mandates Tablets mode (see ReloadSchemasRequest).
ReloadSchemaShard reloads the schema on all tablets in a shard. This is done on a best-effort basis.
RemoveKeyspaceCell removes the cell from the Cells list for all shards in the keyspace, and the SrvKeyspace for that keyspace in that cell.
RunHealthCheck runs a healthcheck on the tablet.
SetReadOnly sets the tablet to read-only mode.
(message has no fields)
SetReadWrite sets the tablet to read-write mode.
(message has no fields)
StartReplication runs the underlying database command to start replication on a tablet.
StopReplication runs the underlying database command to stop replication on a tablet
TabletExternallyPromoted updates the metadata in a cluster's topology to acknowledge a shard primary change performed by an external tool (e.g. orchestrator*). See the Reparenting guide for more information: https://vitess.io/docs/user-guides/configuration-advanced/reparenting/#external-reparenting. * "orchestrator" here refers to external orchestrator, not the newer, Vitess-aware orchestrator, VTOrc.
Tablet is the alias of the tablet that was promoted externally and should be updated to the shard primary in the topo.
Validate validates all nodes in a cluster that are reachable from the global replication graph, as well as all tablets in discoverable cells, are consistent
ValidateKeyspace validates that all nodes reachable from the specified keyspace are consistent.
ValidateSchemaKeyspace validates that the schema on the primary tablet for shard 0 matches the schema on all of the other tablets in the keyspace.
ValidateShard validates that that all nodes reachable from the specified shard are consistent.
ValidateVersionKeyspace validates that the version on the primary of shard 0 matches all of the other tablets in the keyspace.
ValidateVersionShard validates that the version on the primary matches all of the replicas.
VTExplain provides information on how Vitess plans to execute a particular query.
Cluster represents information about a Vitess cluster.
Used in:
, , , , , , , , , , , , , , , , , , , , , , ,Used in:
Used in:
CellInfo contains the data for the cell. It may be nil if the GetCellsInfosRequest specified NamesOnly.
Used in:
Used in:
Used in:
Warnings is a list of non-fatal errors encountered when fetching workflows for a particular cluster.
Used in:
, ,Keyspace represents information about a keyspace in a particular Vitess cluster.
Used as response type in: VTAdmin.GetKeyspace
Used as field type in:
, ,KeyspaceResult is a grouping of a Keyspace and any log events that occurred in that keyspace during a schema reload (usually associated with partial errors - ReloadSchemas requests are best-effort). It is only set when a ReloadSchemas request mandates Keyspaces mode (see ReloadSchemasRequest).
Used in:
ShardResult is a grouping of a Shard and any log events that occurred in that shard during a schema reload (usually associated with partial errors - ReloadSchemas requests are best-effort). It is only set when a ReloadSchemas request mandates KeyspaceShards mode (see ReloadSchemasRequest).
Used in:
TabletResult is a grouping of a Tablet and the result of reloading that Tablet's schema. Result will either be the string "ok", or the error message from that tablet. Note ReloadSchemas is best-effort, so tablet's failing to reload is not treated as an overall failure. It is only set when a ReloadSchemas request mandates Tablets mode (see ReloadSchemasRequest).
Used in:
Used as response type in: VTAdmin.FindSchema, VTAdmin.GetSchema
Used as field type in:
TableSizes is a mapping of table name to TableSize information.
Used in:
TableSize aggregates table size information across all shards containing in the given keyspace and cluster, as well as per-shard size information.
Used in:
Shard groups the vtctldata information about a shard record together with the Vitess cluster it belongs to.
Used in:
Used as response type in: VTAdmin.GetSrvVSchema
Used as field type in:
Tablet groups the topo information of a tablet together with the Vitess cluster it belongs to.
Used as response type in: VTAdmin.GetTablet
Used as field type in:
,Used in:
VSchema represents the vschema for a keyspace in the cluster it belongs to.
Used as response type in: VTAdmin.GetVSchema
Used as field type in:
Name is the name of the keyspace this VSchema is for.
VTGate represents information about a single VTGate host.
Used in:
Hostname is the shortname of the VTGate.
Pool is group the VTGate serves queries for. Some deployments segment VTGates into groups or pools, based on the workloads they serve queries for. Use of this field is optional.
Cell is the topology cell the VTGate is in.
Cluster is the cluster the VTGate serves.
Keyspaces is the list of keyspaces-to-watch for the VTGate.
Vtctld represents information about a single Vtctld host.
Used in:
Used as response type in: VTAdmin.GetWorkflow
Used as field type in: