зеркало из https://github.com/github/vitess-gh.git
Deprecate Throttler RPCs (#9962)
Signed-off-by: Andrew Mason <andrew@planetscale.com>
This commit is contained in:
Родитель
8e0857a10d
Коммит
c77c01ff8d
|
@ -47,37 +47,47 @@ func init() {
|
|||
addCommandGroup(throttlerGroupName)
|
||||
|
||||
addCommand(throttlerGroupName, command{
|
||||
name: "ThrottlerMaxRates",
|
||||
method: commandThrottlerMaxRates,
|
||||
params: "-server <vtworker or vttablet>",
|
||||
help: "Returns the current max rate of all active resharding throttlers on the server.",
|
||||
name: "ThrottlerMaxRates",
|
||||
method: commandThrottlerMaxRates,
|
||||
params: "-server <vtworker or vttablet>",
|
||||
help: "Returns the current max rate of all active resharding throttlers on the server.",
|
||||
deprecated: true,
|
||||
deprecatedBy: "the new Reshard/MoveTables workflows",
|
||||
})
|
||||
addCommand(throttlerGroupName, command{
|
||||
name: "ThrottlerSetMaxRate",
|
||||
method: commandThrottlerSetMaxRate,
|
||||
params: "-server <vtworker or vttablet> <rate>",
|
||||
help: "Sets the max rate for all active resharding throttlers on the server.",
|
||||
name: "ThrottlerSetMaxRate",
|
||||
method: commandThrottlerSetMaxRate,
|
||||
params: "-server <vtworker or vttablet> <rate>",
|
||||
help: "Sets the max rate for all active resharding throttlers on the server.",
|
||||
deprecated: true,
|
||||
deprecatedBy: "the new Reshard/MoveTables workflows",
|
||||
})
|
||||
|
||||
addCommand(throttlerGroupName, command{
|
||||
name: "GetThrottlerConfiguration",
|
||||
method: commandGetThrottlerConfiguration,
|
||||
params: "-server <vtworker or vttablet> [<throttler name>]",
|
||||
help: "Returns the current configuration of the MaxReplicationLag module. If no throttler name is specified, the configuration of all throttlers will be returned.",
|
||||
name: "GetThrottlerConfiguration",
|
||||
method: commandGetThrottlerConfiguration,
|
||||
params: "-server <vtworker or vttablet> [<throttler name>]",
|
||||
help: "Returns the current configuration of the MaxReplicationLag module. If no throttler name is specified, the configuration of all throttlers will be returned.",
|
||||
deprecated: true,
|
||||
deprecatedBy: "the new Reshard/MoveTables workflows",
|
||||
})
|
||||
addCommand(throttlerGroupName, command{
|
||||
name: "UpdateThrottlerConfiguration",
|
||||
method: commandUpdateThrottlerConfiguration,
|
||||
// Note: <configuration protobuf text> is put in quotes to tell the user
|
||||
// that the value must be quoted such that it's one argument only.
|
||||
params: `-server <vtworker or vttablet> [-copy_zero_values] "<configuration protobuf text>" [<throttler name>]`,
|
||||
help: "Updates the configuration of the MaxReplicationLag module. The configuration must be specified as protobuf text. If a field is omitted or has a zero value, it will be ignored unless -copy_zero_values is specified. If no throttler name is specified, all throttlers will be updated.",
|
||||
params: `-server <vtworker or vttablet> [-copy_zero_values] "<configuration protobuf text>" [<throttler name>]`,
|
||||
help: "Updates the configuration of the MaxReplicationLag module. The configuration must be specified as protobuf text. If a field is omitted or has a zero value, it will be ignored unless -copy_zero_values is specified. If no throttler name is specified, all throttlers will be updated.",
|
||||
deprecated: true,
|
||||
deprecatedBy: "the new Reshard/MoveTables workflows",
|
||||
})
|
||||
addCommand(throttlerGroupName, command{
|
||||
name: "ResetThrottlerConfiguration",
|
||||
method: commandResetThrottlerConfiguration,
|
||||
params: "-server <vtworker or vttablet> [<throttler name>]",
|
||||
help: "Resets the current configuration of the MaxReplicationLag module. If no throttler name is specified, the configuration of all throttlers will be reset.",
|
||||
name: "ResetThrottlerConfiguration",
|
||||
method: commandResetThrottlerConfiguration,
|
||||
params: "-server <vtworker or vttablet> [<throttler name>]",
|
||||
help: "Resets the current configuration of the MaxReplicationLag module. If no throttler name is specified, the configuration of all throttlers will be reset.",
|
||||
deprecated: true,
|
||||
deprecatedBy: "the new Reshard/MoveTables workflows",
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче