@@ -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);
0 commit comments