Signed-off-by: Andrew Mason <andrew@planetscale.com>
This commit is contained in:
Andrew Mason 2022-04-06 17:14:30 -04:00 коммит произвёл GitHub
Родитель 8e0857a10d
Коммит c77c01ff8d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 28 добавлений и 18 удалений

Просмотреть файл

@ -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",
})
}