Skip to content

Commit 89c99a2

Browse files
authored
Merge bc8f89e into 38d0188
2 parents 38d0188 + bc8f89e commit 89c99a2

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

ydb/core/fq/libs/compute/ydb/synchronization_service/synchronization_service.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -628,13 +628,15 @@ class TSynchronizeScopeActor : public NActors::TActorBootstrapped<TSynchronizeSc
628628
CREATE RESOURCE POOL `{resource_pool_name}` WITH (
629629
CONCURRENT_QUERY_LIMIT="{concurrent_query_limit}",
630630
QUEUE_SIZE="{queue_size}",
631-
DATABASE_LOAD_CPU_THRESHOLD="{database_load_cpu_threshold}"
631+
DATABASE_LOAD_CPU_THRESHOLD="{database_load_cpu_threshold}",
632+
TOTAL_CPU_LIMIT_PERCENT_PER_NODE="{total_cpu_limit_percent_per_node}"
632633
);
633634
)",
634635
"resource_pool_name"_a = resourcePool.GetName(),
635636
"concurrent_query_limit"_a = resourcePool.GetConcurrentQueryLimit(),
636637
"queue_size"_a = resourcePool.GetQueueSize(),
637-
"database_load_cpu_threshold"_a = resourcePool.GetDatabaseLoadCpuThreshold()));
638+
"database_load_cpu_threshold"_a = resourcePool.GetDatabaseLoadCpuThreshold(),
639+
"total_cpu_limit_percent_per_node"_a = resourcePool.GetTotalCpuLimitPercentPerNode()));
638640
})
639641
.Subscribe([actorSystem = TActivationContext::ActorSystem(), self = SelfId(), i](const NYdb::TAsyncStatus& future) {
640642
actorSystem->Send(self, new TEvYdbCompute::TEvCreateResourcePoolResponse(ExtractStatus(future)), 0, i);
@@ -664,13 +666,16 @@ class TSynchronizeScopeActor : public NActors::TActorBootstrapped<TSynchronizeSc
664666
ALTER RESOURCE POOL `{resource_pool_name}` SET (
665667
CONCURRENT_QUERY_LIMIT="{concurrent_query_limit}",
666668
QUEUE_SIZE="{queue_size}",
667-
DATABASE_LOAD_CPU_THRESHOLD="{database_load_cpu_threshold}"
669+
DATABASE_LOAD_CPU_THRESHOLD="{database_load_cpu_threshold}",
670+
TOTAL_CPU_LIMIT_PERCENT_PER_NODE="{total_cpu_limit_percent_per_node}"
668671
);
669672
)",
670673
"resource_pool_name"_a = resourcePool.GetName(),
671674
"concurrent_query_limit"_a = resourcePool.GetConcurrentQueryLimit(),
672675
"queue_size"_a = resourcePool.GetQueueSize(),
673-
"database_load_cpu_threshold"_a = resourcePool.GetDatabaseLoadCpuThreshold()));
676+
"database_load_cpu_threshold"_a = resourcePool.GetDatabaseLoadCpuThreshold(),
677+
"total_cpu_limit_percent_per_node"_a = resourcePool.GetTotalCpuLimitPercentPerNode()
678+
));
674679
})
675680
.Subscribe([actorSystem = TActivationContext::ActorSystem(), self = SelfId(), index](const NYdb::TAsyncStatus& future) {
676681
actorSystem->Send(self, new TEvYdbCompute::TEvCreateResourcePoolResponse(ExtractStatus(future)), 0, index);

ydb/core/fq/libs/config/protos/compute.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ message TWorkloadManagerConfig {
3535
int32 ConcurrentQueryLimit = 2;
3636
int32 QueueSize = 3;
3737
double DatabaseLoadCpuThreshold = 4;
38+
double TotalCpuLimitPercentPerNode = 5;
3839
}
3940

4041
bool Enable = 1;

0 commit comments

Comments
 (0)