Get desktop application:
View/edit binary Protocol Buffers messages
Used as request type in: vtctlservice.Vtctld.AddCellInfo
Used as response type in: vtctlservice.Vtctld.AddCellInfo
(message has no fields)
Used as request type in: vtctlservice.Vtctld.AddCellsAlias
Used as response type in: vtctlservice.Vtctld.AddCellsAlias
(message has no fields)
Used as request type in: vtctlservice.Vtctld.ApplyKeyspaceRoutingRules
SkipRebuild, if set, will cause ApplyKeyspaceRoutingRules to skip rebuilding the SrvVSchema objects in each cell in RebuildCells.
RebuildCells limits the SrvVSchema rebuild to the specified cells. If not provided the SrvVSchema will be rebuilt in every cell in the topology. Ignored if SkipRebuild is set.
Used as response type in: vtctlservice.Vtctld.ApplyKeyspaceRoutingRules
KeyspaceRoutingRules returns the current set of rules.
Used as request type in: vtctlservice.Vtctld.ApplyRoutingRules
SkipRebuild, if set, will cause ApplyRoutingRules to skip rebuilding the SrvVSchema objects in each cell in RebuildCells.
RebuildCells limits the SrvVSchema rebuild to the specified cells. If not provided the SrvVSchema will be rebuilt in every cell in the topology. Ignored if SkipRebuild is set.
Used as response type in: vtctlservice.Vtctld.ApplyRoutingRules
(message has no fields)
Used as request type in: vtctlservice.Vtctld.ApplySchema
Used as field type in:
SQL commands to run.
Online DDL strategy, compatible with @@ddl_strategy session variable (examples: 'gh-ost', 'pt-osc', 'gh-ost --max-load=Threads_running=100'")
Optional: explicit UUIDs for migration. If given, must match number of DDL changes
For Online DDL, optionally supply a custom unique string used as context for the migration(s) in this command. By default a unique context is auto-generated by Vitess
WaitReplicasTimeout is the duration of time to wait for replicas to catch up in reparenting.
caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.
BatchSize indicates how many queries to apply together
Used as response type in: vtadmin.VTAdmin.ApplySchema, vtctlservice.Vtctld.ApplySchema
Used as request type in: vtctlservice.Vtctld.ApplyShardRoutingRules
SkipRebuild, if set, will cause ApplyShardRoutingRules to skip rebuilding the SrvVSchema objects in each cell in RebuildCells.
RebuildCells limits the SrvVSchema rebuild to the specified cells. If not provided the SrvVSchema will be rebuilt in every cell in the topology. Ignored if SkipRebuild is set.
Used as response type in: vtctlservice.Vtctld.ApplyShardRoutingRules
(message has no fields)
Used as request type in: vtctlservice.Vtctld.ApplyVSchema
Strict returns an error if there are unknown vindex params.
Used as response type in: vtctlservice.Vtctld.ApplyVSchema
UnknownVindexParams is a map of vindex name to params that were not recognized by the vindex type. E.g.: { "lookup_vdx": { "params": ["raed_lock", "not_verify"] } }
Used in:
Used as request type in: vtctlservice.Vtctld.Backup
AllowPrimary allows the backup to proceed if TabletAlias is a PRIMARY. WARNING: If using the builtin backup engine, this will shutdown mysqld on the primary for the duration of the backup, and no writes will be possible.
Concurrency specifies the number of compression/checksum jobs to run simultaneously.
IncrementalFromPos indicates a position of a previous backup. When this value is non-empty then the backup becomes incremental and applies as of given position.
UpgradeSafe indicates if the backup should be taken with innodb_fast_shutdown=0 so that it's a backup that can be used for an upgrade.
BackupEngine specifies if we want to use a particular backup engine for this backup request
MysqlShutdownTimeout is the duration to wait for mysqld to shutdown before starting the backup. This is available so we can override this for upgrade safe backups which might take longer to shut down.
Used as response type in: vtctlservice.Vtctld.Backup, vtctlservice.Vtctld.BackupShard
TabletAlias is the alias being used for the backup.
Used as request type in: vtctlservice.Vtctld.BackupShard
AllowPrimary allows the backup to occur on a PRIMARY tablet. See BackupRequest.AllowPrimary for warnings and caveats.
Concurrency specifies the number of compression/checksum jobs to run simultaneously.
UpgradeSafe indicates if the backup should be taken with innodb_fast_shutdown=0 so that it's a backup that can be used for an upgrade.
IncrementalFromPos indicates a position of a previous backup. When this value is non-empty then the backup becomes incremental and applies as of given position.
MysqlShutdownTimeout is the duration to wait for mysqld to shutdown before starting the backup. This is available so we can override this for upgrade safe backups which might take longer to shut down.
Used as request type in: vtctlservice.Vtctld.CancelSchemaMigration
Used as field type in:
caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller. This is needed when strict table ACLs are enforced on the tablets.
Used as response type in: vtadmin.VTAdmin.CancelSchemaMigration, vtctlservice.Vtctld.CancelSchemaMigration
Used as request type in: vtctlservice.Vtctld.ChangeTabletTags
Used as response type in: vtctlservice.Vtctld.ChangeTabletTags
Used as request type in: vtctlservice.Vtctld.ChangeTabletType
Used as response type in: vtctlservice.Vtctld.ChangeTabletType
Used as request type in: vtctlservice.Vtctld.CheckThrottler
SkipRequestHeartbeats ensures this check does not renew heartbeat lease
OKIfNotExists asks the throttler to return OK even if the metric does not exist
Used as response type in: vtctlservice.Vtctld.CheckThrottler
Used as request type in: vtctlservice.Vtctld.CleanupSchemaMigration
Used as field type in:
caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.
Used as response type in: vtadmin.VTAdmin.CleanupSchemaMigration, vtctlservice.Vtctld.CleanupSchemaMigration
Used as request type in: vtctlservice.Vtctld.CompleteSchemaMigration
Used as field type in:
caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.
Used as response type in: vtadmin.VTAdmin.CompleteSchemaMigration, vtctlservice.Vtctld.CompleteSchemaMigration
Used as request type in: vtctlservice.Vtctld.ConcludeTransaction
Used as response type in: vtadmin.VTAdmin.ConcludeTransaction, vtctlservice.Vtctld.ConcludeTransaction
(message has no fields)
Used as request type in: vtctlservice.Vtctld.CopySchemaShard
Used as response type in: vtctlservice.Vtctld.CopySchemaShard
(message has no fields)
Used as request type in: vtctlservice.Vtctld.CreateKeyspace
Used as field type in:
Name is the name of the keyspace.
Force proceeds with the request even if the keyspace already exists.
AllowEmptyVSchema allows a keyspace to be created with no vschema.
Type is the type of the keyspace to create.
BaseKeyspace specifies the base keyspace for SNAPSHOT keyspaces. It is required to create a SNAPSHOT keyspace.
SnapshotTime specifies the snapshot time for this keyspace. It is required to create a SNAPSHOT keyspace.
DurabilityPolicy is the durability policy to be used for this keyspace.
SidecarDBName is the name of the sidecar database that each vttablet in the keyspace will use.
Used as response type in: vtctlservice.Vtctld.CreateKeyspace
Keyspace is the newly-created keyspace.
Used as request type in: vtctlservice.Vtctld.CreateShard
Used as field type in:
Keyspace is the name of the keyspace to create the shard in.
ShardName is the name of the shard to create. E.g. "-" or "-80".
Force treats an attempt to create a shard that already exists as a non-error.
IncludeParent creates the parent keyspace as an empty BASE keyspace, if it doesn't already exist.
Used as response type in: vtadmin.VTAdmin.CreateShard, vtctlservice.Vtctld.CreateShard
Keyspace is the created keyspace. It is set only if IncludeParent was specified in the request and the parent keyspace needed to be created.
Shard is the newly-created shard object.
ShardAlreadyExists is set if Force was specified in the request and the shard already existed.
Used as request type in: vtctlservice.Vtctld.DeleteCellInfo
Used as response type in: vtctlservice.Vtctld.DeleteCellInfo
(message has no fields)
Used as request type in: vtctlservice.Vtctld.DeleteCellsAlias
Used as response type in: vtctlservice.Vtctld.DeleteCellsAlias
(message has no fields)
Used as request type in: vtctlservice.Vtctld.DeleteKeyspace
Used as field type in:
Keyspace is the name of the keyspace to delete.
Recursive causes all shards in the keyspace to be recursively deleted before deleting the keyspace. It is an error to call DeleteKeyspace on a non-empty keyspace without also specifying Recursive.
Force allows a keyspace to be deleted even if the keyspace lock cannot be obtained. This should only be used to force-clean a keyspace.
Used as response type in: vtadmin.VTAdmin.DeleteKeyspace, vtctlservice.Vtctld.DeleteKeyspace
(message has no fields)
Used as request type in: vtctlservice.Vtctld.DeleteShards
Used as field type in:
Shards is the list of shards to delete. The nested topodatapb.Shard field is not required for DeleteShard, but the Keyspace and Shard fields are.
Recursive also deletes all tablets belonging to the shard(s). It is an error to call DeleteShard on a non-empty shard without also specificying Recursive.
EvenIfServing allows a shard to be deleted even if it is serving, which is normally an error. Use with caution.
Force allows a shard to be deleted even if the shard lock cannot be obtained. This should only be used to force-clean a shard.
Used as response type in: vtadmin.VTAdmin.DeleteShards, vtctlservice.Vtctld.DeleteShards
(message has no fields)
Used as request type in: vtctlservice.Vtctld.DeleteSrvVSchema
Used as response type in: vtctlservice.Vtctld.DeleteSrvVSchema
(message has no fields)
Used as request type in: vtctlservice.Vtctld.DeleteTablets
TabletAliases is the list of tablets to delete.
AllowPrimary allows for the primary tablet of a shard to be deleted. Use with caution.
Used as response type in: vtctlservice.Vtctld.DeleteTablets
(message has no fields)
Used as request type in: vtctlservice.Vtctld.EmergencyReparentShard
Used as field type in:
Keyspace is the name of the keyspace to perform the Emergency Reparent in.
Shard is the name of the shard to perform the Emergency Reparent in.
Optional alias of a tablet that should become the new shard primary. If not not specified, the vtctld will select the most up-to-date canditate to promote.
List of replica aliases to ignore during the Emergency Reparent. The vtctld will not attempt to stop replication on these tablets, nor attempt to demote any that may think they are the shard primary.
WaitReplicasTimeout is the duration of time to wait for replicas to catch up in reparenting.
PreventCrossCellPromotion is used to only promote the new primary from the same cell as the failed primary.
WaitForAllTablets makes ERS wait for a response from all the tablets before proceeding. Useful when all the tablets are up and reachable.
ExpectedPrimary is the optional alias we expect to be the current primary in order for the reparent operation to succeed.
Used as response type in: vtctlservice.Vtctld.EmergencyReparentShard
Keyspace is the name of the keyspace the Emergency Reparent took place in.
Shard is the name of the shard the Emergency Reparent took place in.
PromotedPrimary is the alias of the tablet that was promoted to shard primary. If NewPrimary was set in the request, then this will be the same alias. Otherwise, it will be the alias of the tablet found to be most up-to-date.
Used as request type in: vtctlservice.Vtctld.ExecuteFetchAsApp
MaxRows is an optional parameter to limit the number of rows read into the QueryResult. Note that this does not apply a LIMIT to the query, just how many rows are read from the MySQL server on the tablet side. This field is optional. Specifying a non-positive value will use whatever default is configured in the VtctldService.
UsePool causes the query to be run with a pooled connection to the tablet.
Used as response type in: vtctlservice.Vtctld.ExecuteFetchAsApp
Used as request type in: vtctlservice.Vtctld.ExecuteFetchAsDBA
MaxRows is an optional parameter to limit the number of rows read into the QueryResult. Note that this does not apply a LIMIT to the query, just how many rows are read from the MySQL server on the tablet side. This field is optional. Specifying a non-positive value will use whatever default is configured in the VtctldService.
DisableBinlogs instructs the tablet not to use binary logging when executing the query.
ReloadSchema instructs the tablet to reload its schema after executing the query.
Used as response type in: vtctlservice.Vtctld.ExecuteFetchAsDBA
Used as request type in: vtctlservice.Vtctld.ExecuteHook
Used as response type in: vtctlservice.Vtctld.ExecuteHook
Used as request type in: vtctlservice.Vtctld.ExecuteMultiFetchAsDBA
SQL could have potentially multiple queries separated by semicolons.
MaxRows is an optional parameter to limit the number of rows read into the QueryResult. Note that this does not apply a LIMIT to a query, just how many rows are read from the MySQL server on the tablet side. This field is optional. Specifying a non-positive value will use whatever default is configured in the VtctldService.
DisableBinlogs instructs the tablet not to use binary logging when executing the query.
ReloadSchema instructs the tablet to reload its schema after executing the query.
Used as response type in: vtctlservice.Vtctld.ExecuteMultiFetchAsDBA
ExecuteVtctlCommandRequest is the payload for ExecuteVtctlCommand. timeouts are in nanoseconds.
Used as request type in: vtctlservice.Vtctl.ExecuteVtctlCommand
ExecuteVtctlCommandResponse is streamed back by ExecuteVtctlCommand.
Used as response type in: vtctlservice.Vtctl.ExecuteVtctlCommand
Used as request type in: vtctlservice.Vtctld.FindAllShardsInKeyspace
Used as response type in: vtctlservice.Vtctld.FindAllShardsInKeyspace
Used as request type in: vtctlservice.Vtctld.ForceCutOverSchemaMigration
caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.
Used as response type in: vtctlservice.Vtctld.ForceCutOverSchemaMigration
Used as request type in: vtctlservice.Vtctld.GetBackups
Used as field type in:
Limit, if nonzero, will return only the most N recent backups.
Detailed indicates whether to use the backupengine, if supported, to populate additional fields, such as Engine and Status, on BackupInfo objects in the response. If not set, or if the backupengine does not support populating these fields, Engine will always be empty, and Status will always be UNKNOWN.
DetailedLimit, if nonzero, will only populate additional fields (see Detailed) on the N most recent backups. The Limit field still dictates the total number of backup info objects returned, so, in reality, min(Limit, DetailedLimit) backup infos will have additional fields set, and any remaining backups will not.
Used as response type in: vtctlservice.Vtctld.GetBackups
Used as request type in: vtctlservice.Vtctld.GetCellInfoNames
(message has no fields)
Used as response type in: vtctlservice.Vtctld.GetCellInfoNames
Used as request type in: vtctlservice.Vtctld.GetCellInfo
Used as response type in: vtctlservice.Vtctld.GetCellInfo
Used as request type in: vtctlservice.Vtctld.GetCellsAliases
(message has no fields)
Used as response type in: vtctlservice.Vtctld.GetCellsAliases
Used as request type in: vtctlservice.Vtctld.GetFullStatus
Used as response type in: vtadmin.VTAdmin.GetFullStatus, vtctlservice.Vtctld.GetFullStatus
Used as request type in: vtctlservice.Vtctld.GetKeyspace
Used as response type in: vtctlservice.Vtctld.GetKeyspace
Used as request type in: vtctlservice.Vtctld.GetKeyspaceRoutingRules
(message has no fields)
Used as response type in: vtctlservice.Vtctld.GetKeyspaceRoutingRules
Used as request type in: vtctlservice.Vtctld.GetKeyspaces
(message has no fields)
Used as response type in: vtctlservice.Vtctld.GetKeyspaces
Used as request type in: vtctlservice.Vtctld.GetMirrorRules
(message has no fields)
Used as response type in: vtctlservice.Vtctld.GetMirrorRules
Used as request type in: vtctlservice.Vtctld.GetPermissions
Used as response type in: vtctlservice.Vtctld.GetPermissions
Used as request type in: vtctlservice.Vtctld.GetRoutingRules
(message has no fields)
Used as response type in: vtctlservice.Vtctld.GetRoutingRules
GetSchemaMigrationsRequest controls the behavior of the GetSchemaMigrations rpc. Keyspace is a required field, while all other fields are optional. If UUID is set, other optional fields will be ignored, since there will be at most one migration with that UUID. Furthermore, if no migration with that UUID exists, an empty response, not an error, is returned. MigrationContext, Status, and Recent are mutually exclusive.
Used as request type in: vtctlservice.Vtctld.GetSchemaMigrations
Used as field type in:
Uuid, if set, will cause GetSchemaMigrations to return exactly 1 migration, namely the one with that UUID. If no migration exists, the response will be an empty slice, not an error. If this field is set, other fields (status filters, limit, skip, order) are ignored.
Recent, if set, returns migrations requested between now and the provided value.
Used as response type in: vtctlservice.Vtctld.GetSchemaMigrations
Used as request type in: vtctlservice.Vtctld.GetSchema
Tables is a list of tables for which we should gather information. Each is either an exact match, or a regular expression of the form /regexp/.
ExcludeTables is a list of tables to exclude from the result. Each is either an exact match, or a regular expression of the form /regexp/.
IncludeViews specifies whether to include views in the result.
TableNamesOnly specifies whether to limit the results to just table names, rather than full schema information for each table.
TableSizesOnly specifies whether to limit the results to just table sizes, rather than full schema information for each table. It is ignored if TableNamesOnly is set to true.
TableSchemaOnly specifies whether to limit the results to just table/view schema definition (CREATE TABLE/VIEW statements) and skip column/field information
Used as response type in: vtctlservice.Vtctld.GetSchema
Used as request type in: vtctlservice.Vtctld.GetShardReplication
Cells is the list of cells to fetch data for. Omit to fetch data from all cells.
Used as response type in: vtctlservice.Vtctld.GetShardReplication
Used as request type in: vtctlservice.Vtctld.GetShard
Used as response type in: vtctlservice.Vtctld.GetShard
Used as request type in: vtctlservice.Vtctld.GetShardRoutingRules
(message has no fields)
Used as response type in: vtctlservice.Vtctld.GetShardRoutingRules
Used as request type in: vtctlservice.Vtctld.GetSrvKeyspaceNames
Used as response type in: vtctlservice.Vtctld.GetSrvKeyspaceNames
Names is a mapping of cell name to a list of SrvKeyspace names.
Used in:
Used as request type in: vtctlservice.Vtctld.GetSrvKeyspaces
Cells is a list of cells to lookup a SrvKeyspace for. Leaving this empty is equivalent to specifying all cells in the topo.
Used as response type in: vtadmin.VTAdmin.GetSrvKeyspace, vtctlservice.Vtctld.GetSrvKeyspaces
Used as field type in:
SrvKeyspaces is a mapping of cell name to SrvKeyspace.
Used as request type in: vtctlservice.Vtctld.GetSrvVSchema
Used as response type in: vtctlservice.Vtctld.GetSrvVSchema
Used as request type in: vtctlservice.Vtctld.GetSrvVSchemas
Used as response type in: vtctlservice.Vtctld.GetSrvVSchemas
SrvVSchemas is a mapping of cell name to SrvVSchema
Used as request type in: vtctlservice.Vtctld.GetTablet
Used as response type in: vtctlservice.Vtctld.GetTablet
Used as request type in: vtctlservice.Vtctld.GetTablets
Keyspace is the name of the keyspace to return tablets for. Omit to return tablets from all keyspaces.
Shard is the name of the shard to return tablets for. This field is ignored if Keyspace is not set.
Cells is an optional set of cells to return tablets for.
Strict specifies how the server should treat failures from individual cells. When false (the default), GetTablets will return data from any cells that return successfully, but will fail the request if all cells fail. When true, any individual cell can fail the full request.
TabletAliases is an optional list of tablet aliases to fetch Tablet objects for. If specified, Keyspace, Shard, and Cells are ignored, and tablets are looked up by their respective aliases' Cells directly.
tablet_type specifies the type of tablets to return. Omit to return all tablet types.
Used as response type in: vtctlservice.Vtctld.GetTablets
Used as request type in: vtctlservice.Vtctld.GetThrottlerStatus
TabletAlias is the alias of the tablet to probe
Used as response type in: vtctlservice.Vtctld.GetThrottlerStatus
Used as request type in: vtctlservice.Vtctld.GetTopologyPath
Used as response type in: vtadmin.VTAdmin.GetTopologyPath, vtctlservice.Vtctld.GetTopologyPath
Used as request type in: vtctlservice.Vtctld.GetTransactionInfo
Used as field type in:
Used as response type in: vtadmin.VTAdmin.GetTransactionInfo, vtctlservice.Vtctld.GetTransactionInfo
Used as request type in: vtctlservice.Vtctld.GetUnresolvedTransactions
in seconds
Used as response type in: vtadmin.VTAdmin.GetUnresolvedTransactions, vtctlservice.Vtctld.GetUnresolvedTransactions
Used as request type in: vtctlservice.Vtctld.GetVSchema
Used as response type in: vtctlservice.Vtctld.GetVSchema
Used as request type in: vtctlservice.Vtctld.GetVersion
Used as response type in: vtctlservice.Vtctld.GetVersion
Used as request type in: vtctlservice.Vtctld.GetWorkflows
If you only want a specific workflow then set this field.
Used as response type in: vtctlservice.Vtctld.GetWorkflows
Used as request type in: vtctlservice.Vtctld.InitShardPrimary
Used as response type in: vtctlservice.Vtctld.InitShardPrimary
Used in:
, , , ,Used as request type in: vtctlservice.Vtctld.LaunchSchemaMigration
Used as field type in:
caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.
Used as response type in: vtadmin.VTAdmin.LaunchSchemaMigration, vtctlservice.Vtctld.LaunchSchemaMigration
Used as request type in: vtctlservice.Vtctld.LookupVindexComplete
Where the lookup vindex lives.
This is the name of the lookup vindex and the vreplication workflow.
Where the vreplication workflow lives.
Used as response type in: vtctlservice.Vtctld.LookupVindexComplete
(message has no fields)
Used as request type in: vtctlservice.Vtctld.LookupVindexCreate
Used as response type in: vtctlservice.Vtctld.LookupVindexCreate
(message has no fields)
Used as request type in: vtctlservice.Vtctld.LookupVindexExternalize
Where the lookup vindex lives.
This is the name of the lookup vindex and the vreplication workflow.
Where the vreplication workflow lives.
If this is set true, we directly delete the workflow instead of stopping. Also, complete command is not required to delete workflow in that case.
Used as response type in: vtctlservice.Vtctld.LookupVindexExternalize
Was the workflow stopped.
Was the workflow deleted.
Used as request type in: vtctlservice.Vtctld.LookupVindexInternalize
Where the lookup vindex lives.
This is the name of the lookup vindex and the vreplication workflow.
Where the vreplication workflow lives.
Used as response type in: vtctlservice.Vtctld.LookupVindexInternalize
(message has no fields)
MaterializationIntent describes the reason for creating the Materialize flow
Used in:
,CUSTOM is the default value
MOVETABLES is when we are creating a MoveTables flow
CREATELOOKUPINDEX is when we are creating a CreateLookupIndex flow
REFERENCE is when we are creating a materialization for reference tables
Used as request type in: vtctlservice.Vtctld.MaterializeCreate
Used as field type in:
Used as response type in: vtadmin.VTAdmin.MaterializeCreate, vtctlservice.Vtctld.MaterializeCreate
(message has no fields)
MaterializeSettings contains the settings for the Materialize command.
Used in:
workflow is the name of the workflow.
stop_after_copy specifies if vreplication should be stopped after copying.
optional parameters.
ExternalCluster is the name of the mounted cluster which has the source keyspace/db for this workflow it is of the type <cluster_type.cluster_name>
MaterializationIntent is used to identify the reason behind the materialization workflow: eg. MoveTables, CreateLookupVindex
SourceTimeZone is the time zone in which datetimes on the source were stored, provided as an option in MoveTable
TargetTimeZone is not currently specifiable by the user, defaults to UTC for the forward workflows and to the SourceTimeZone in reverse workflows
OnDdl specifies the action to be taken when a DDL is encountered.
DeferSecondaryKeys specifies if secondary keys should be created in one shot after table copy finishes.
ReferenceTables is set to a csv list of tables, if the materialization is for reference tables.
Used as request type in: vtctlservice.Vtctld.MigrateCreate
The necessary info gets passed on to each primary tablet involved in the workflow via the CreateVReplicationWorkflow tabletmanager RPC.
SourceTimeZone is the time zone in which datetimes on the source were stored, provided as an option in MoveTables
OnDdl specifies the action to be taken when a DDL is encountered.
StopAfterCopy specifies if vreplication should be stopped after copying.
DropForeignKeys specifies if foreign key constraints should be elided on the target.
DeferSecondaryKeys specifies if secondary keys should be created in one shot after table copy finishes.
Start the workflow after creating it.
NoRoutingRules is set to true if routing rules should not be created on the target when the workflow is created.
Used as request type in: vtctlservice.Vtctld.MountList
(message has no fields)
Used as response type in: vtctlservice.Vtctld.MountList
Used as request type in: vtctlservice.Vtctld.MountRegister
Used as response type in: vtctlservice.Vtctld.MountRegister
(message has no fields)
Used as request type in: vtctlservice.Vtctld.MountShow
Used as response type in: vtctlservice.Vtctld.MountShow
Used as request type in: vtctlservice.Vtctld.MountUnregister
Used as response type in: vtctlservice.Vtctld.MountUnregister
(message has no fields)
Used as request type in: vtctlservice.Vtctld.MoveTablesComplete
Used as field type in:
Set to true if the you know that the source keyspace is no longer available but still want to complete the workflow.
Used as response type in: vtadmin.VTAdmin.MoveTablesComplete, vtctlservice.Vtctld.MoveTablesComplete
Used as request type in: vtctlservice.Vtctld.MoveTablesCreate
Used as field type in:
The necessary info gets passed on to each primary tablet involved in the workflow via the CreateVReplicationWorkflow tabletmanager RPC.
The name of the external cluster mounted in topo server.
SourceTimeZone is the time zone in which datetimes on the source were stored, provided as an option in MoveTables
OnDdl specifies the action to be taken when a DDL is encountered.
StopAfterCopy specifies if vreplication should be stopped after copying.
DropForeignKeys specifies if foreign key constraints should be elided on the target.
DeferSecondaryKeys specifies if secondary keys should be created in one shot after table copy finishes.
Start the workflow after creating it.
NoRoutingRules is set to true if routing rules should not be created on the target when the workflow is created.
Run a single copy phase for the entire database.
Used in:
Created is set if the workflow was created on this tablet or not.
Used as request type in: vtctlservice.Vtctld.PingTablet
Used as response type in: vtctlservice.Vtctld.PingTablet
(message has no fields)
Used as request type in: vtctlservice.Vtctld.PlannedReparentShard
Used as field type in:
Keyspace is the name of the keyspace to perform the Planned Reparent in.
Shard is the name of the shard to perform teh Planned Reparent in.
NewPrimary is the alias of the tablet to promote to shard primary. If not specified, the vtctld will select the most up-to-date candidate to promote. It is an error to set NewPrimary and AvoidPrimary to the same alias.
AvoidPrimary is the alias of the tablet to demote. In other words, specifying an AvoidPrimary alias tells the vtctld to promote any replica other than this one. A shard whose current primary is not this one is then a no-op. It is an error to set NewPrimary and AvoidPrimary to the same alias.
WaitReplicasTimeout is the duration of time to wait for replicas to catch up in replication both before and after the reparent. The timeout is not cumulative across both wait periods, meaning that the replicas have WaitReplicasTimeout time to catch up before the reparent, and an additional WaitReplicasTimeout time to catch up after the reparent.
TolerableReplicationLag is the amount of replication lag that is considered acceptable for a tablet to be eligible for promotion when Vitess makes the choice of a new primary. A value of 0 indicates that Vitess shouldn't consider the replication lag at all.
AllowCrossCellPromotion allows cross cell promotion,
ExpectedPrimary is the optional alias we expect to be the current primary in order for the reparent operation to succeed.
Used as response type in: vtctlservice.Vtctld.PlannedReparentShard
Keyspace is the name of the keyspace the Planned Reparent took place in.
Shard is the name of the shard the Planned Reparent took place in.
PromotedPrimary is the alias of the tablet that was promoted to shard primary. If NewPrimary was set in the request, then this will be the same alias. Otherwise, it will be the alias of the tablet found to be most up-to-date.
Used in:
Used as request type in: vtctlservice.Vtctld.RebuildKeyspaceGraph
AllowPartial, when set, allows a SNAPSHOT keyspace to serve with an incomplete set of shards. It is ignored for all other keyspace types.
Used as response type in: vtctlservice.Vtctld.RebuildKeyspaceGraph
(message has no fields)
Used as request type in: vtctlservice.Vtctld.RebuildVSchemaGraph
Cells specifies the cells to rebuild the SrvVSchema objects for. If empty, RebuildVSchemaGraph rebuilds the SrvVSchema for every cell in the topo.
Used as response type in: vtctlservice.Vtctld.RebuildVSchemaGraph
(message has no fields)
Used as request type in: vtctlservice.Vtctld.RefreshStateByShard
Used as response type in: vtctlservice.Vtctld.RefreshStateByShard
This explains why we had a partial refresh (if we did)
Used as request type in: vtctlservice.Vtctld.RefreshState
Used as response type in: vtctlservice.Vtctld.RefreshState
(message has no fields)
Used as request type in: vtctlservice.Vtctld.ReloadSchemaKeyspace
Concurrency is the global concurrency across all shards in the keyspace (so, at most this many tablets will be reloaded across the keyspace at any given point).
Used as response type in: vtctlservice.Vtctld.ReloadSchemaKeyspace
Used as request type in: vtctlservice.Vtctld.ReloadSchema
Used as response type in: vtctlservice.Vtctld.ReloadSchema
(message has no fields)
Used as request type in: vtctlservice.Vtctld.ReloadSchemaShard
Concurrency is the maximum number of tablets to reload at one time.
Used as response type in: vtctlservice.Vtctld.ReloadSchemaShard
Used as request type in: vtctlservice.Vtctld.RemoveBackup
Used as response type in: vtctlservice.Vtctld.RemoveBackup
(message has no fields)
Used as request type in: vtctlservice.Vtctld.RemoveKeyspaceCell
Force proceeds even if the cell's topology server cannot be reached. This should only be set if a cell has been shut down entirely, and the global topology data just needs to be updated.
Recursive also deletes all tablets in that cell belonging to the specified keyspace.
(TODO:@amason) Consider including the deleted SrvKeyspace object and any deleted Tablet objects here.
Used as response type in: vtctlservice.Vtctld.RemoveKeyspaceCell
(message has no fields)
Used as request type in: vtctlservice.Vtctld.RemoveShardCell
Force proceeds even if the cell's topology server cannot be reached. This should only be set if a cell has been shut down entirely, and the global topology data just needs to be updated.
Recursive also deletes all tablets in that cell belonging to the specified keyspace and shard.
(TODO:@amason) Consider including the deleted SrvKeyspacePartitions objects and any deleted Tablet objects here.
Used as response type in: vtctlservice.Vtctld.RemoveShardCell
(message has no fields)
Used as request type in: vtctlservice.Vtctld.ReparentTablet
Tablet is the alias of the tablet that should be reparented under the current shard primary.
Used as response type in: vtctlservice.Vtctld.ReparentTablet
Keyspace is the name of the keyspace the tablet was reparented in.
Shard is the name of the shard the tablet was reparented in.
Primary is the alias of the tablet that the tablet was reparented under.
Used as request type in: vtctlservice.Vtctld.ReshardCreate
Used as field type in:
SkipSchemaCopy specifies if the schema should be copied from the source shard, set false if schema is already created on the target shard before Reshard is invoked.
OnDdl specifies the action to be taken when a DDL is encountered.
StopAfterCopy specifies if vreplication should be stopped after copying.
DeferSecondaryKeys specifies if secondary keys should be created in one shot after table copy finishes.
Start the workflow after creating it.
Used as request type in: vtctlservice.Vtctld.RestoreFromBackup
BackupTime, if set, will use the backup taken most closely at or before this time. If nil, the latest backup will be restored on the tablet.
RestoreToPos indicates a position for a point-in-time recovery. The recovery is expected to utilize one full backup, followed by zero or more incremental backups, that reach the precise desired position
Dry run does not actually performs the restore, but validates the steps and availability of backups
RestoreToTimestamp, if given, requested an inremental restore up to (and excluding) the given timestamp. RestoreToTimestamp and RestoreToPos are mutually exclusive.
AllowedBackupEngines, if present will filter out any backups taken with engines not included in the list
Used as response type in: vtctlservice.Vtctld.RestoreFromBackup
TabletAlias is the alias of the tablet doing the restore.
Used as request type in: vtctlservice.Vtctld.RetrySchemaMigration
Used as field type in:
caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.
Used as response type in: vtadmin.VTAdmin.RetrySchemaMigration, vtctlservice.Vtctld.RetrySchemaMigration
Used as request type in: vtctlservice.Vtctld.RunHealthCheck
Used as response type in: vtctlservice.Vtctld.RunHealthCheck
(message has no fields)
SchemaMigration represents a row in the schema_migrations sidecar table.
Used in:
,enum?
Used in:
,Used in:
SchemaMigration_VITESS uses vreplication to run the schema migration. It is the default strategy for OnlineDDL requests. SchemaMigration_VITESS was also formerly called "ONLINE".
SchemaMigration_DIRECT runs the migration directly against MySQL (e.g. `ALTER TABLE ...`), meaning it is not actually an "online" DDL migration.
SchemaMigration_MYSQL is a managed migration (queued and executed by the scheduler) but runs through a MySQL `ALTER TABLE`.
Used as request type in: vtctlservice.Vtctld.SetKeyspaceDurabilityPolicy
Used as response type in: vtctlservice.Vtctld.SetKeyspaceDurabilityPolicy
Keyspace is the updated keyspace record.
Keyspace is the updated keyspace record.
Used as request type in: vtctlservice.Vtctld.SetShardIsPrimaryServing
Used as response type in: vtctlservice.Vtctld.SetShardIsPrimaryServing
Shard is the updated shard record.
Used as request type in: vtctlservice.Vtctld.SetShardTabletControl
DeniedTables updates the list of denied tables the shard will serve for the given tablet type. This is useful to fix tables that are being blocked after a MoveTables operation. NOTE: Setting this field will cause DisableQueryService to be ignored.
DisableQueryService instructs whether to enable the query service on tablets of the given type in the shard. This is useful to fix Reshard operations gone awry. NOTE: this is ignored if DeniedTables is not empty.
Remove removes the ShardTabletControl record entirely. If set, this takes precedence over DeniedTables and DisableQueryService fields, and is useful to manually remove serving restrictions after a completed MoveTables operation.
Used as response type in: vtctlservice.Vtctld.SetShardTabletControl
Shard is the updated shard record.
Used as request type in: vtctlservice.Vtctld.SetWritable
Used as response type in: vtctlservice.Vtctld.SetWritable
(message has no fields)
Used in:
, , , , ,Used as request type in: vtctlservice.Vtctld.ShardReplicationAdd
Used as response type in: vtctlservice.Vtctld.ShardReplicationAdd
(message has no fields)
Used as request type in: vtctlservice.Vtctld.ShardReplicationFix
Used as response type in: vtctlservice.Vtctld.ShardReplicationFix
Error contains information about the error fixed by a ShardReplicationFix RPC. If there were no errors to fix (i.e. all nodes in the replication graph are valid), this field is nil.
Used as request type in: vtctlservice.Vtctld.ShardReplicationPositions
Used as response type in: vtctlservice.Vtctld.ShardReplicationPositions
Used as field type in:
ReplicationStatuses is a mapping of tablet alias string to replication status for that tablet.
TabletMap is the set of tablets whose replication statuses were queried, keyed by tablet alias.
Used as request type in: vtctlservice.Vtctld.ShardReplicationRemove
Used as response type in: vtctlservice.Vtctld.ShardReplicationRemove
(message has no fields)
Used in:
Used in:
Used as request type in: vtctlservice.Vtctld.SleepTablet
Used as response type in: vtctlservice.Vtctld.SleepTablet
(message has no fields)
Used as request type in: vtctlservice.Vtctld.SourceShardAdd
KeyRange identifies the key range to use for the SourceShard. This field is optional.
Tables is a list of tables replicate (for MoveTables). Each "table" can be either an exact match or a regular expression of the form "/regexp/".
Used as response type in: vtctlservice.Vtctld.SourceShardAdd
Shard is the updated shard record.
Used as request type in: vtctlservice.Vtctld.SourceShardDelete
Used as response type in: vtctlservice.Vtctld.SourceShardDelete
Shard is the updated shard record.
Used as request type in: vtctlservice.Vtctld.StartReplication
Used as response type in: vtctlservice.Vtctld.StartReplication
(message has no fields)
Used as request type in: vtctlservice.Vtctld.StopReplication
Used as response type in: vtctlservice.Vtctld.StopReplication
(message has no fields)
TableMaterializeSttings contains the settings for one table.
Used in:
,source_expression is a select statement.
create_ddl contains the DDL to create the target table. If empty, the target table must already exist. if "copy", the target table DDL is the same as the source table.
Used as request type in: vtctlservice.Vtctld.TabletExternallyReparented
Tablet is the alias of the tablet that was promoted externally and should be updated to the shard primary in the topo.
Used as response type in: vtctlservice.Vtctld.TabletExternallyReparented
Used in:
Data is the file contents of the cell located at path. It is only populated if the cell is a terminal node.
Used as request type in: vtctlservice.Vtctld.UpdateCellInfo
Used as response type in: vtctlservice.Vtctld.UpdateCellInfo
Used as request type in: vtctlservice.Vtctld.UpdateCellsAlias
Used as response type in: vtctlservice.Vtctld.UpdateCellsAlias
Used as request type in: vtctlservice.Vtctld.UpdateThrottlerConfig
Enable instructs to enable the throttler
Disable instructs to disable the throttler
Threshold for throttler (with no custom query, ie using default query, only positive values are considered)
CustomQuery replaces the default replication lag query
CustomQuerySet indicates that the value of CustomQuery has changed
CheckAsCheckSelf instructs the throttler to respond to /check requests by checking the tablet's own health
CheckAsCheckShard instructs the throttler to respond to /check requests by checking the shard's health (this is the default behavior)
ThrottledApp indicates a single throttled app rule (ignored if name is empty)
MetricName is the name of the metric for which we apply a new threshold
AppName is the name of the app for which we assign metrics
AppCheckedMetrics are the metrics to be checked got the given AppName. These can be scoped. For example: ["lag", "self/loadvg", "shard/threads_running"]
Used as response type in: vtctlservice.Vtctld.UpdateThrottlerConfig
(message has no fields)
Used as request type in: vtctlservice.Vtctld.VDiffCreate
Used as field type in:
The name of the workflow that we're diffing tables for.
The keyspace where the vreplication workflow is running.
A unique identifier for the vdiff. If empty, a new UUID will be generated.
The cells to look for source tablets in. If empty, all cells are used.
The cells to look for target tablets in. If empty, all cells are used.
The tablet types to use when searching for tablets to use when streaming results. A default value of "replica,rdonly,primary" is used by the tablet picker.
When performing source tablet selection, look for candidates in the type order as they are listed in the tablet_types value (or the default of "replica,rdonly,primary" that the tablet picker uses). The default is ANY (0) and you can use INORDER (1) to e.g. ensure that a primary tablet is only used if there are no available replica or rdonly tablets.
The tables to compare. If empty, all tables in the workflow are compared.
The maximum number of rows to compare for each table on each shard. The default is a max int64 value: 2^63 - 1 or 9,223,372,036,854,775,807.
How long to wait for the relevant vreplication stream(s) to catch up when attempting to setup the table snapshots on the source and target to use for the diff on each shard. The default is 30s.
Include the MySQL query used for the diff in the report that is stored on each shard primary tablet in the _vt.vdiff_table records.
Only show the Primary Key columns in any row diff output. You would typically want to use this if you set the max_sample_rows very high.
Update the table statistics, using ANALYZE TABLE, on each table involved in the vdiff during initialization on each target shard. This will ensure that progress estimates are as accurate as possible -- but it does involve locks and can potentially impact query processing on the target keyspace.
If there are collation differences between the source and target, you can have rows that are identical but simply returned in a different order from MySQL. We will do a second pass to compare the rows for any actual differences in this case and this flag allows you to control the resources used for this operation. The default is 0, comparing no extra rows.
Wait for the vdiff to complete before returning (making the call synchronous vs asynchronous by default).
When wait is true, this is how frequently the vdiff progress will be shown.
Automatically retry the vdiff if we encounter an error. This should almost always be set to true (default is false).
Include additional information in the vdiff report that is produced and stored on each target shard primary's _vt sidecar database.
The maximum number of rows to include in the row diff report (when differences are found) for each table on each shard. The default is 0, which will include no sample rows that differed.
The maximum time that a diff of a single table can run on each target shard before it is stopped and then later resumed from where we left off. This can be helpful in limiting the impact of holding open that large transaction where we scan up to every row in the table. The default is 0 or no limit.
At what length should we truncate the column values in the row diff report generated for each table on each shard when differences are detected. The default is 0, meaning do not truncate.
Auto start the vdiff after creating it. The default is true if no value is specified.
Used as response type in: vtadmin.VTAdmin.VDiffCreate, vtctlservice.Vtctld.VDiffCreate
Intentionally upper case to maintain compatibility with vtctlclient and other VDiff client command output.
Used as request type in: vtctlservice.Vtctld.VDiffDelete
This will be 'all' or a UUID.
Used as response type in: vtctlservice.Vtctld.VDiffDelete
(message has no fields)
Used as request type in: vtctlservice.Vtctld.VDiffResume
Used as response type in: vtctlservice.Vtctld.VDiffResume
(message has no fields)
Used as request type in: vtctlservice.Vtctld.VDiffShow
Used as field type in:
This will be 'all', 'last', or a UUID.
Used as response type in: vtctlservice.Vtctld.VDiffShow
The key is keyspace/shard.
Used as request type in: vtctlservice.Vtctld.VDiffStop
Used as response type in: vtctlservice.Vtctld.VDiffStop
(message has no fields)
Used as request type in: vtctlservice.Vtctld.ValidateKeyspace
Used as response type in: vtadmin.VTAdmin.ValidateKeyspace, vtctlservice.Vtctld.ValidateKeyspace
Used as field type in:
Used as request type in: vtctlservice.Vtctld.ValidatePermissionsKeyspace
If you only want to validate a subset of the shards in the keyspace, then specify a list of shard names.
Used as response type in: vtctlservice.Vtctld.ValidatePermissionsKeyspace
(message has no fields)
Used as request type in: vtctlservice.Vtctld.Validate
Used as response type in: vtadmin.VTAdmin.Validate, vtctlservice.Vtctld.Validate
Used as request type in: vtctlservice.Vtctld.ValidateSchemaKeyspace
If you only want to validate a subset of the shards in the keyspace, then specify a list of shard names.
Used as response type in: vtadmin.VTAdmin.ValidateSchemaKeyspace, vtctlservice.Vtctld.ValidateSchemaKeyspace
Used as request type in: vtctlservice.Vtctld.ValidateShard
Used as response type in: vtadmin.VTAdmin.ValidateShard, vtctlservice.Vtctld.ValidateShard
Used as field type in:
, , ,Used as request type in: vtctlservice.Vtctld.ValidateVSchema
Used as response type in: vtctlservice.Vtctld.ValidateVSchema
Used as request type in: vtctlservice.Vtctld.ValidateVersionKeyspace
Used as response type in: vtadmin.VTAdmin.ValidateVersionKeyspace, vtctlservice.Vtctld.ValidateVersionKeyspace
Used as request type in: vtctlservice.Vtctld.ValidateVersionShard
Used as response type in: vtadmin.VTAdmin.ValidateVersionShard, vtctlservice.Vtctld.ValidateVersionShard
TODO: comment the hell out of this.
Used in:
,This represents how long it's been since we processed any event in the stream.
This represents the lag across all shards, between the current time and the timestamp of the last transaction OR heartbeat timestamp (if there have been no writes to replicate from the source).
This specifies whether to defer the creation of secondary keys.
These are additional (optional) settings for vreplication workflows. Previously we used to add it to the binlogdata.BinlogSource proto object. More details in go/vt/sidecardb/schema/vreplication.sql.
Used in:
Used in:
Used in:
LogFetchError is set if we fail to fetch some logs for this stream. We will never fail to fetch workflows because we cannot fetch the logs, but we will still forward log-fetch errors to the caller, should that be relevant to the context in which they are fetching workflows. Note that this field being set does not necessarily mean that Logs is nil; if there are N logs that exist for the stream, and we fail to fetch the ith log, we will still return logs in [0, i) + (i, N].
Used in:
Used in:
Used in:
Used as request type in: vtctlservice.Vtctld.WorkflowAddTables
Used as response type in: vtctlservice.Vtctld.WorkflowAddTables
(message has no fields)
Used as request type in: vtctlservice.Vtctld.WorkflowDelete
Used as field type in:
The max records to delete from the moved tables when cleaning up the migrated data. This is only used with multi-tenant MoveTables migrations.
Set to true if the you know that the source keyspace is no longer available but still want to clean everything up on the target keyspace.
Used as response type in: vtadmin.VTAdmin.WorkflowDelete, vtctlservice.Vtctld.WorkflowDelete
Used in:
Delete is set if the workflow was deleted on this tablet.
Used as request type in: vtctlservice.Vtctld.WorkflowMirrorTraffic
Used as response type in: vtctlservice.Vtctld.WorkflowMirrorTraffic
Used in:
, , ,Remove auto_increment clauses on tables when moving them to a sharded keyspace and optionally replace them with vschema AutoIncrement definitions.
Shards on which vreplication streams in the target keyspace are created for this workflow and to which the data from the source will be vreplicated.
Where to create any related schema and vschema objects such as sequence tables.
Lookup Vindexes that are being backfilled by the workflow.
Used as request type in: vtctlservice.Vtctld.WorkflowStatus
Used as response type in: vtadmin.VTAdmin.GetWorkflowStatus, vtadmin.VTAdmin.MoveTablesCreate, vtadmin.VTAdmin.ReshardCreate, vtctlservice.Vtctld.MigrateCreate, vtctlservice.Vtctld.MoveTablesCreate, vtctlservice.Vtctld.ReshardCreate, vtctlservice.Vtctld.WorkflowStatus
The key is keyspace/shard.
Used in:
Used in:
Used in:
Used as request type in: vtctlservice.Vtctld.WorkflowSwitchTraffic
Used as field type in:
Used as response type in: vtadmin.VTAdmin.WorkflowSwitchTraffic, vtctlservice.Vtctld.WorkflowSwitchTraffic
Used as request type in: vtctlservice.Vtctld.WorkflowUpdate
TabletRequest gets passed on to each primary tablet involved in the workflow via the UpdateVReplicationWorkflow tabletmanager RPC.
Used as response type in: vtadmin.VTAdmin.StartWorkflow, vtadmin.VTAdmin.StopWorkflow, vtctlservice.Vtctld.WorkflowUpdate
Used in:
Changed is true if any of the provided values were different than what was already stored on this tablet.