-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
vtctlservice.proto
353 lines (339 loc) · 24.5 KB
/
vtctlservice.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
/*
Copyright 2019 The Vitess Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This package contains a service allowing you to use vtctld as a
// proxy for vt commands.
syntax = "proto3";
option go_package = "vitess.io/vitess/go/vt/proto/vtctlservice";
package vtctlservice;
import "vtctldata.proto";
// Service Vtctl allows you to call vt commands through gRPC.
service Vtctl {
rpc ExecuteVtctlCommand (vtctldata.ExecuteVtctlCommandRequest) returns (stream vtctldata.ExecuteVtctlCommandResponse) {};
}
// Service Vtctld exposes gRPC endpoints for each vt command.
service Vtctld {
// AddCellInfo registers a local topology service in a new cell by creating
// the CellInfo with the provided parameters.
rpc AddCellInfo(vtctldata.AddCellInfoRequest) returns (vtctldata.AddCellInfoResponse) {};
// AddCellsAlias defines a group of cells that can be referenced by a single
// name (the alias).
//
// When routing query traffic, replica/rdonly traffic can be routed across
// cells within the group (alias). Only primary traffic can be routed across
// cells not in the same group (alias).
rpc AddCellsAlias(vtctldata.AddCellsAliasRequest) returns (vtctldata.AddCellsAliasResponse) {};
// ApplyRoutingRules applies the VSchema routing rules.
rpc ApplyRoutingRules(vtctldata.ApplyRoutingRulesRequest) returns (vtctldata.ApplyRoutingRulesResponse) {};
// ApplySchema applies a schema to a keyspace.
rpc ApplySchema(vtctldata.ApplySchemaRequest) returns (vtctldata.ApplySchemaResponse) {};
// ApplyShardRoutingRules applies the VSchema shard routing rules.
rpc ApplyShardRoutingRules(vtctldata.ApplyShardRoutingRulesRequest) returns (vtctldata.ApplyShardRoutingRulesResponse) {};
// ApplyVSchema applies a vschema to a keyspace.
rpc ApplyVSchema(vtctldata.ApplyVSchemaRequest) returns (vtctldata.ApplyVSchemaResponse) {};
// Backup uses the BackupEngine and BackupStorage services on the specified
// tablet to create and store a new backup.
rpc Backup(vtctldata.BackupRequest) returns (stream vtctldata.BackupResponse) {};
// BackupShard chooses a tablet in the shard and uses it to create a backup.
rpc BackupShard(vtctldata.BackupShardRequest) returns (stream vtctldata.BackupResponse) {};
// CancelSchemaMigration cancels one or all migrations, terminating any runnign ones as needed.
rpc CancelSchemaMigration(vtctldata.CancelSchemaMigrationRequest) returns (vtctldata.CancelSchemaMigrationResponse) {};
// ChangeTabletType changes the db type for the specified tablet, if possible.
// This is used primarily to arrange replicas, and it will not convert a
// primary. For that, use InitShardPrimary.
//
// NOTE: This command automatically updates the serving graph.
rpc ChangeTabletType(vtctldata.ChangeTabletTypeRequest) returns (vtctldata.ChangeTabletTypeResponse) {};
// CleanupSchemaMigration marks a schema migration as ready for artifact cleanup.
rpc CleanupSchemaMigration(vtctldata.CleanupSchemaMigrationRequest) returns (vtctldata.CleanupSchemaMigrationResponse) {};
// CompleteSchemaMigration completes one or all migrations executed with --postpone-completion.
rpc CompleteSchemaMigration(vtctldata.CompleteSchemaMigrationRequest) returns (vtctldata.CompleteSchemaMigrationResponse) {};
// CreateKeyspace creates the specified keyspace in the topology. For a
// SNAPSHOT keyspace, the request must specify the name of a base keyspace,
// as well as a snapshot time.
rpc CreateKeyspace(vtctldata.CreateKeyspaceRequest) returns (vtctldata.CreateKeyspaceResponse) {};
// CreateShard creates the specified shard in the topology.
rpc CreateShard(vtctldata.CreateShardRequest) returns (vtctldata.CreateShardResponse) {};
// DeleteCellInfo deletes the CellInfo for the provided cell. The cell cannot
// be referenced by any Shard record in the topology.
rpc DeleteCellInfo(vtctldata.DeleteCellInfoRequest) returns (vtctldata.DeleteCellInfoResponse) {};
// DeleteCellsAlias deletes the CellsAlias for the provided alias.
rpc DeleteCellsAlias(vtctldata.DeleteCellsAliasRequest) returns (vtctldata.DeleteCellsAliasResponse) {};
// DeleteKeyspace deletes the specified keyspace from the topology. In
// recursive mode, it also recursively deletes all shards in the keyspace.
// Otherwise, the keyspace must be empty (have no shards), or DeleteKeyspace
// returns an error.
rpc DeleteKeyspace(vtctldata.DeleteKeyspaceRequest) returns (vtctldata.DeleteKeyspaceResponse) {};
// DeleteShards deletes the specified shards from the topology. In recursive
// mode, it also deletes all tablets belonging to the shard. Otherwise, the
// shard must be empty (have no tablets) or DeleteShards returns an error for
// that shard.
rpc DeleteShards(vtctldata.DeleteShardsRequest) returns (vtctldata.DeleteShardsResponse) {};
// DeleteSrvVSchema deletes the SrvVSchema object in the specified cell.
rpc DeleteSrvVSchema(vtctldata.DeleteSrvVSchemaRequest) returns (vtctldata.DeleteSrvVSchemaResponse) {};
// DeleteTablets deletes one or more tablets from the topology.
rpc DeleteTablets(vtctldata.DeleteTabletsRequest) returns (vtctldata.DeleteTabletsResponse) {};
// EmergencyReparentShard reparents the shard to the new primary. It assumes
// the old primary is dead or otherwise not responding.
rpc EmergencyReparentShard(vtctldata.EmergencyReparentShardRequest) returns (vtctldata.EmergencyReparentShardResponse) {};
// ExecuteFetchAsApp executes a SQL query on the remote tablet as the App user.
rpc ExecuteFetchAsApp(vtctldata.ExecuteFetchAsAppRequest) returns (vtctldata.ExecuteFetchAsAppResponse) {};
// ExecuteFetchAsDBA executes a SQL query on the remote tablet as the DBA user.
rpc ExecuteFetchAsDBA(vtctldata.ExecuteFetchAsDBARequest) returns (vtctldata.ExecuteFetchAsDBAResponse) {};
// ExecuteHook runs the hook on the tablet.
rpc ExecuteHook(vtctldata.ExecuteHookRequest) returns (vtctldata.ExecuteHookResponse);
// FindAllShardsInKeyspace returns a map of shard names to shard references
// for a given keyspace.
rpc FindAllShardsInKeyspace(vtctldata.FindAllShardsInKeyspaceRequest) returns (vtctldata.FindAllShardsInKeyspaceResponse) {};
// GetBackups returns all the backups for a shard.
rpc GetBackups(vtctldata.GetBackupsRequest) returns (vtctldata.GetBackupsResponse) {};
// GetCellInfo returns the information for a cell.
rpc GetCellInfo(vtctldata.GetCellInfoRequest) returns (vtctldata.GetCellInfoResponse) {};
// GetCellInfoNames returns all the cells for which we have a CellInfo object,
// meaning we have a topology service registered.
rpc GetCellInfoNames(vtctldata.GetCellInfoNamesRequest) returns (vtctldata.GetCellInfoNamesResponse) {};
// GetCellsAliases returns a mapping of cell alias to cells identified by that
// alias.
rpc GetCellsAliases(vtctldata.GetCellsAliasesRequest) returns (vtctldata.GetCellsAliasesResponse) {};
// GetFullStatus returns the full status of MySQL including the replication information, semi-sync information, GTID information among others
rpc GetFullStatus(vtctldata.GetFullStatusRequest) returns (vtctldata.GetFullStatusResponse) {};
// GetKeyspace reads the given keyspace from the topo and returns it.
rpc GetKeyspace(vtctldata.GetKeyspaceRequest) returns (vtctldata.GetKeyspaceResponse) {};
// GetKeyspaces returns the keyspace struct of all keyspaces in the topo.
rpc GetKeyspaces(vtctldata.GetKeyspacesRequest) returns (vtctldata.GetKeyspacesResponse) {};
// GetPermissions returns the permissions set on the remote tablet.
rpc GetPermissions(vtctldata.GetPermissionsRequest) returns (vtctldata.GetPermissionsResponse) {};
// GetRoutingRules returns the VSchema routing rules.
rpc GetRoutingRules(vtctldata.GetRoutingRulesRequest) returns (vtctldata.GetRoutingRulesResponse) {};
// GetSchema returns the schema for a tablet, or just the schema for the
// specified tables in that tablet.
rpc GetSchema(vtctldata.GetSchemaRequest) returns (vtctldata.GetSchemaResponse) {};
// GetSchemaMigrations returns one or more online schema migrations for the
// specified keyspace, analagous to `SHOW VITESS_MIGRATIONS`.
//
// Different fields in the request message result in different filtering
// behaviors. See the documentation on GetSchemaMigrationsRequest for details.
rpc GetSchemaMigrations(vtctldata.GetSchemaMigrationsRequest) returns (vtctldata.GetSchemaMigrationsResponse) {};
// GetShard returns information about a shard in the topology.
rpc GetShard(vtctldata.GetShardRequest) returns (vtctldata.GetShardResponse) {};
// GetShardRoutingRules returns the VSchema shard routing rules.
rpc GetShardRoutingRules(vtctldata.GetShardRoutingRulesRequest) returns (vtctldata.GetShardRoutingRulesResponse) {};
// GetSrvKeyspaceNames returns a mapping of cell name to the keyspaces served
// in that cell.
rpc GetSrvKeyspaceNames(vtctldata.GetSrvKeyspaceNamesRequest) returns (vtctldata.GetSrvKeyspaceNamesResponse) {};
// GetSrvKeyspaces returns the SrvKeyspaces for a keyspace in one or more
// cells.
rpc GetSrvKeyspaces (vtctldata.GetSrvKeyspacesRequest) returns (vtctldata.GetSrvKeyspacesResponse) {};
// UpdateThrottlerConfig updates the tablet throttler configuration
rpc UpdateThrottlerConfig(vtctldata.UpdateThrottlerConfigRequest) returns (vtctldata.UpdateThrottlerConfigResponse) {};
// GetSrvVSchema returns the SrvVSchema for a cell.
rpc GetSrvVSchema(vtctldata.GetSrvVSchemaRequest) returns (vtctldata.GetSrvVSchemaResponse) {};
// GetSrvVSchemas returns a mapping from cell name to SrvVSchema for all cells,
// optionally filtered by cell name.
rpc GetSrvVSchemas(vtctldata.GetSrvVSchemasRequest) returns (vtctldata.GetSrvVSchemasResponse) {};
// GetTablet returns information about a tablet.
rpc GetTablet(vtctldata.GetTabletRequest) returns (vtctldata.GetTabletResponse) {};
// GetTablets returns tablets, optionally filtered by keyspace and shard.
rpc GetTablets(vtctldata.GetTabletsRequest) returns (vtctldata.GetTabletsResponse) {};
// GetTopologyPath returns the topology cell at a given path.
rpc GetTopologyPath(vtctldata.GetTopologyPathRequest) returns (vtctldata.GetTopologyPathResponse) {};
// GetVersion returns the version of a tablet from its debug vars.
rpc GetVersion(vtctldata.GetVersionRequest) returns (vtctldata.GetVersionResponse) {};
// GetVSchema returns the vschema for a keyspace.
rpc GetVSchema(vtctldata.GetVSchemaRequest) returns (vtctldata.GetVSchemaResponse) {};
// GetWorkflows returns a list of workflows for the given keyspace.
rpc GetWorkflows(vtctldata.GetWorkflowsRequest) returns (vtctldata.GetWorkflowsResponse) {};
// InitShardPrimary sets the initial primary for a shard. Will make all other
// tablets in the shard replicas of the provided primary.
//
// WARNING: This could cause data loss on an already replicating shard.
// PlannedReparentShard or EmergencyReparentShard should be used in those
// cases instead.
rpc InitShardPrimary(vtctldata.InitShardPrimaryRequest) returns (vtctldata.InitShardPrimaryResponse) {};
// LaunchSchemaMigration launches one or all migrations executed with --postpone-launch.
rpc LaunchSchemaMigration(vtctldata.LaunchSchemaMigrationRequest) returns (vtctldata.LaunchSchemaMigrationResponse) {};
rpc LookupVindexCreate(vtctldata.LookupVindexCreateRequest) returns (vtctldata.LookupVindexCreateResponse) {};
rpc LookupVindexExternalize(vtctldata.LookupVindexExternalizeRequest) returns (vtctldata.LookupVindexExternalizeResponse) {};
// MaterializeCreate creates a workflow to materialize one or more tables
// from a source keyspace to a target keyspace using a provided expressions.
rpc MaterializeCreate(vtctldata.MaterializeCreateRequest) returns (vtctldata.MaterializeCreateResponse) {};
// MigrateCreate creates a workflow which migrates one or more tables from an
// external cluster into Vitess.
rpc MigrateCreate(vtctldata.MigrateCreateRequest) returns (vtctldata.WorkflowStatusResponse) {};
// MountRegister registers a new external Vitess cluster.
rpc MountRegister(vtctldata.MountRegisterRequest) returns (vtctldata.MountRegisterResponse) {};
// MountUnregister unregisters an external Vitess cluster.
rpc MountUnregister(vtctldata.MountUnregisterRequest) returns (vtctldata.MountUnregisterResponse) {};
// MountShow returns information about an external Vitess cluster.
rpc MountShow(vtctldata.MountShowRequest) returns (vtctldata.MountShowResponse) {};
// MountList lists all registered external Vitess clusters.
rpc MountList(vtctldata.MountListRequest) returns (vtctldata.MountListResponse) {};
// MoveTablesCreate creates a workflow which moves one or more tables from a
// source keyspace to a target keyspace.
rpc MoveTablesCreate(vtctldata.MoveTablesCreateRequest) returns (vtctldata.WorkflowStatusResponse) {};
// MoveTablesComplete completes the move and cleans up the workflow and
// its related artifacts.
rpc MoveTablesComplete(vtctldata.MoveTablesCompleteRequest) returns (vtctldata.MoveTablesCompleteResponse) {};
// PingTablet checks that the specified tablet is awake and responding to RPCs.
// This command can be blocked by other in-flight operations.
rpc PingTablet(vtctldata.PingTabletRequest) returns (vtctldata.PingTabletResponse) {};
// PlannedReparentShard reparents the shard to the new primary, or away from
// an old primary. Both the old and new primaries need to be reachable and
// running.
//
// **NOTE**: The vtctld will not consider any replicas outside the cell the
// current shard primary is in for promotion unless NewPrimary is explicitly
// provided in the request.
rpc PlannedReparentShard(vtctldata.PlannedReparentShardRequest) returns (vtctldata.PlannedReparentShardResponse) {};
// RebuildKeyspaceGraph rebuilds the serving data for a keyspace.
//
// This may trigger an update to all connected clients.
rpc RebuildKeyspaceGraph(vtctldata.RebuildKeyspaceGraphRequest) returns (vtctldata.RebuildKeyspaceGraphResponse) {};
// RebuildVSchemaGraph rebuilds the per-cell SrvVSchema from the global
// VSchema objects in the provided cells (or all cells in the topo none
// provided).
rpc RebuildVSchemaGraph(vtctldata.RebuildVSchemaGraphRequest) returns (vtctldata.RebuildVSchemaGraphResponse) {};
// RefreshState reloads the tablet record on the specified tablet.
rpc RefreshState(vtctldata.RefreshStateRequest) returns (vtctldata.RefreshStateResponse) {};
// RefreshStateByShard calls RefreshState on all the tablets in the given shard.
rpc RefreshStateByShard(vtctldata.RefreshStateByShardRequest) returns (vtctldata.RefreshStateByShardResponse) {};
// ReloadSchema instructs the remote tablet to reload its schema.
rpc ReloadSchema(vtctldata.ReloadSchemaRequest) returns (vtctldata.ReloadSchemaResponse) {};
// ReloadSchemaKeyspace reloads the schema on all tablets in a keyspace.
rpc ReloadSchemaKeyspace(vtctldata.ReloadSchemaKeyspaceRequest) returns (vtctldata.ReloadSchemaKeyspaceResponse) {};
// ReloadSchemaShard reloads the schema on all tablets in a shard.
//
// In general, we don't always expect all replicas to be ready to reload, and
// the periodic schema reload makes them self-healing anyway. So, we do this
// on a best-effort basis, and log warnings for any tablets that fail to
// reload within the context deadline.
rpc ReloadSchemaShard(vtctldata.ReloadSchemaShardRequest) returns (vtctldata.ReloadSchemaShardResponse) {};
// RemoveBackup removes a backup from the BackupStorage used by vtctld.
rpc RemoveBackup(vtctldata.RemoveBackupRequest) returns (vtctldata.RemoveBackupResponse) {};
// RemoveKeyspaceCell removes the specified cell from the Cells list for all
// shards in the specified keyspace (by calling RemoveShardCell on every
// shard). It also removes the SrvKeyspace for that keyspace in that cell.
rpc RemoveKeyspaceCell(vtctldata.RemoveKeyspaceCellRequest) returns (vtctldata.RemoveKeyspaceCellResponse) {};
// RemoveShardCell removes the specified cell from the specified shard's Cells
// list.
rpc RemoveShardCell(vtctldata.RemoveShardCellRequest) returns (vtctldata.RemoveShardCellResponse) {};
// ReparentTablet reparents a tablet to the current primary in the shard. This
// only works if the current replica position matches the last known reparent
// action.
rpc ReparentTablet(vtctldata.ReparentTabletRequest) returns (vtctldata.ReparentTabletResponse) {};
// ReshardCreate creates a workflow to reshard a keyspace.
rpc ReshardCreate(vtctldata.ReshardCreateRequest) returns (vtctldata.WorkflowStatusResponse) {};
// RestoreFromBackup stops mysqld for the given tablet and restores a backup.
rpc RestoreFromBackup(vtctldata.RestoreFromBackupRequest) returns (stream vtctldata.RestoreFromBackupResponse) {};
// RetrySchemaMigration marks a given schema migration for retry.
rpc RetrySchemaMigration(vtctldata.RetrySchemaMigrationRequest) returns (vtctldata.RetrySchemaMigrationResponse) {};
// RunHealthCheck runs a healthcheck on the remote tablet.
rpc RunHealthCheck(vtctldata.RunHealthCheckRequest) returns (vtctldata.RunHealthCheckResponse) {};
// SetKeyspaceDurabilityPolicy updates the DurabilityPolicy for a keyspace.
rpc SetKeyspaceDurabilityPolicy(vtctldata.SetKeyspaceDurabilityPolicyRequest) returns (vtctldata.SetKeyspaceDurabilityPolicyResponse) {};
// SetShardIsPrimaryServing adds or removes a shard from serving.
//
// This is meant as an emergency function. It does not rebuild any serving
// graph (i.e. it does not run RebuildKeyspaceGraph).
rpc SetShardIsPrimaryServing(vtctldata.SetShardIsPrimaryServingRequest) returns (vtctldata.SetShardIsPrimaryServingResponse) {};
// SetShardTabletControl updates the TabletControl topo record for a shard and
// tablet type.
//
// This should only be used for an emergency fix, or after a finished
// Reshard. See the documentation on SetShardTabletControlRequest for more
// information about the different update modes.
rpc SetShardTabletControl(vtctldata.SetShardTabletControlRequest) returns (vtctldata.SetShardTabletControlResponse) {};
// SetWritable sets a tablet as read-write (writable=true) or read-only (writable=false).
rpc SetWritable(vtctldata.SetWritableRequest) returns (vtctldata.SetWritableResponse) {};
// ShardReplicationAdd adds an entry to a topodata.ShardReplication object.
//
// It is a low-level function and should generally not be called.
rpc ShardReplicationAdd(vtctldata.ShardReplicationAddRequest) returns (vtctldata.ShardReplicationAddResponse) {};
// ShardReplicationFix walks the replication graph for a shard in a cell and
// attempts to fix the first problem encountered, returning information about
// the problem fixed, if any.
rpc ShardReplicationFix(vtctldata.ShardReplicationFixRequest) returns (vtctldata.ShardReplicationFixResponse) {};
// ShardReplicationPositions returns the replication position of each tablet
// in a shard. This RPC makes a best-effort to return partial results. For
// example, if one tablet in the shard graph is unreachable, then
// ShardReplicationPositions will return non-error, and include valid results
// for the reachable tablets.
rpc ShardReplicationPositions(vtctldata.ShardReplicationPositionsRequest) returns (vtctldata.ShardReplicationPositionsResponse) {};
// ShardReplicationRemove removes an entry from a topodata.ShardReplication
// object.
//
// It is a low-level function and should generally not be called.
rpc ShardReplicationRemove(vtctldata.ShardReplicationRemoveRequest) returns (vtctldata.ShardReplicationRemoveResponse) {};
// SleepTablet blocks the aciton queue on the specified tablet for the
// specified duration.
//
// This is typically used for testing.
rpc SleepTablet(vtctldata.SleepTabletRequest) returns (vtctldata.SleepTabletResponse) {};
// SourceShardAdd adds the SourceShard record with the provided index. This
// should be used only as an emergency function.
//
// It does not call RefreshState for the shard primary.
rpc SourceShardAdd(vtctldata.SourceShardAddRequest) returns (vtctldata.SourceShardAddResponse) {};
// SourceShardDelete deletes the SourceShard record with the provided index.
// This should be used only as an emergency cleanup function.
//
// It does not call RefreshState for the shard primary.
rpc SourceShardDelete(vtctldata.SourceShardDeleteRequest) returns (vtctldata.SourceShardDeleteResponse) {};
// StartReplication starts replication on the specified tablet.
rpc StartReplication(vtctldata.StartReplicationRequest) returns (vtctldata.StartReplicationResponse) {};
// StopReplication stops replication on the specified tablet.
rpc StopReplication(vtctldata.StopReplicationRequest) returns (vtctldata.StopReplicationResponse) {};
// TabletExternallyReparented changes metadata in the topology server 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.
rpc TabletExternallyReparented(vtctldata.TabletExternallyReparentedRequest) returns (vtctldata.TabletExternallyReparentedResponse) {};
// UpdateCellInfo updates the content of a CellInfo with the provided
// parameters. Empty values are ignored. If the cell does not exist, the
// CellInfo will be created.
rpc UpdateCellInfo(vtctldata.UpdateCellInfoRequest) returns (vtctldata.UpdateCellInfoResponse) {};
// UpdateCellsAlias updates the content of a CellsAlias with the provided
// parameters. Empty values are ignored. If the alias does not exist, the
// CellsAlias will be created.
rpc UpdateCellsAlias(vtctldata.UpdateCellsAliasRequest) returns (vtctldata.UpdateCellsAliasResponse) {};
// Validate validates that all nodes from the global replication graph are
// reachable, and that all tablets in discoverable cells are consistent.
rpc Validate(vtctldata.ValidateRequest) returns (vtctldata.ValidateResponse) {};
// ValidateKeyspace validates that all nodes reachable from the specified
// keyspace are consistent.
rpc ValidateKeyspace(vtctldata.ValidateKeyspaceRequest) returns (vtctldata.ValidateKeyspaceResponse) {};
// ValidateSchemaKeyspace validates that the schema on the primary tablet for shard 0 matches the schema on all of the other tablets in the keyspace.
rpc ValidateSchemaKeyspace(vtctldata.ValidateSchemaKeyspaceRequest) returns (vtctldata.ValidateSchemaKeyspaceResponse) {};
// ValidateShard validates that all nodes reachable from the specified shard
// are consistent.
rpc ValidateShard(vtctldata.ValidateShardRequest) returns (vtctldata.ValidateShardResponse) {};
// ValidateVersionKeyspace validates that the version on the primary of shard 0 matches all of the other tablets in the keyspace.
rpc ValidateVersionKeyspace(vtctldata.ValidateVersionKeyspaceRequest) returns (vtctldata.ValidateVersionKeyspaceResponse) {};
// ValidateVersionShard validates that the version on the primary matches all of the replicas.
rpc ValidateVersionShard(vtctldata.ValidateVersionShardRequest) returns (vtctldata.ValidateVersionShardResponse) {};
// ValidateVSchema compares the schema of each primary tablet in "keyspace/shards..." to the vschema and errs if there are differences.
rpc ValidateVSchema(vtctldata.ValidateVSchemaRequest) returns (vtctldata.ValidateVSchemaResponse) {};
rpc VDiffCreate(vtctldata.VDiffCreateRequest) returns (vtctldata.VDiffCreateResponse) {};
rpc VDiffDelete(vtctldata.VDiffDeleteRequest) returns (vtctldata.VDiffDeleteResponse) {};
rpc VDiffResume(vtctldata.VDiffResumeRequest) returns (vtctldata.VDiffResumeResponse) {};
rpc VDiffShow(vtctldata.VDiffShowRequest) returns (vtctldata.VDiffShowResponse) {};
rpc VDiffStop(vtctldata.VDiffStopRequest) returns (vtctldata.VDiffStopResponse) {};
// WorkflowDelete deletes a vreplication workflow.
rpc WorkflowDelete(vtctldata.WorkflowDeleteRequest) returns (vtctldata.WorkflowDeleteResponse) {};
rpc WorkflowStatus(vtctldata.WorkflowStatusRequest) returns (vtctldata.WorkflowStatusResponse) {};
rpc WorkflowSwitchTraffic(vtctldata.WorkflowSwitchTrafficRequest) returns (vtctldata.WorkflowSwitchTrafficResponse) {};
// WorkflowUpdate updates the configuration of a vreplication workflow
// using the provided updated parameters.
rpc WorkflowUpdate(vtctldata.WorkflowUpdateRequest) returns (vtctldata.WorkflowUpdateResponse) {};
}