Skip to content

Commit 006fe83

Browse files
authored
Support paused strategy fo topic autopartitioning (#7026)
1 parent 1def359 commit 006fe83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ydb/public/lib/ydb_cli/commands/ydb_service_topic.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ namespace NYdb::NConsoleClient {
4242
std::pair<TString, NTopic::EAutoPartitioningStrategy>("disabled", NTopic::EAutoPartitioningStrategy::Disabled),
4343
std::pair<TString, NTopic::EAutoPartitioningStrategy>("up", NTopic::EAutoPartitioningStrategy::ScaleUp),
4444
std::pair<TString, NTopic::EAutoPartitioningStrategy>("up-and-down", NTopic::EAutoPartitioningStrategy::ScaleUpAndDown),
45+
std::pair<TString, NTopic::EAutoPartitioningStrategy>("puased", NTopic::EAutoPartitioningStrategy::Paused),
4546
};
4647

4748
THashMap<NTopic::EAutoPartitioningStrategy, TString> AutoscaleStrategiesDescriptions = {
4849
std::pair<NTopic::EAutoPartitioningStrategy, TString>(NTopic::EAutoPartitioningStrategy::Disabled, "Automatic scaling of the number of partitions is disabled"),
4950
std::pair<NTopic::EAutoPartitioningStrategy, TString>(NTopic::EAutoPartitioningStrategy::ScaleUp, "The number of partitions can increase under high load, but cannot decrease"),
5051
std::pair<NTopic::EAutoPartitioningStrategy, TString>(NTopic::EAutoPartitioningStrategy::ScaleUpAndDown, "The number of partitions can increase under high load and decrease under low load"),
52+
std::pair<NTopic::EAutoPartitioningStrategy, TString>(NTopic::EAutoPartitioningStrategy::Paused, "Automatic scaling of the number of partitions is paused"),
5153
};
5254

5355
THashMap<ETopicMetadataField, TString> TopicMetadataFieldsDescriptions = {

0 commit comments

Comments
 (0)