diff options
author | andybg <andybg@yandex-team.com> | 2024-12-10 20:49:27 +0300 |
---|---|---|
committer | Vitaly Isaev <vitalyisaev@ydb.tech> | 2024-12-12 10:12:02 +0000 |
commit | 308df0ce3bf38e6db683c7f91de1052311f001e5 (patch) | |
tree | 55ec6773bba11bf29cd716034a57dd349c85647e /library/cpp | |
parent | 5e96eedc49abf71e24cc3268bbb07dbc04028236 (diff) | |
download | ydb-308df0ce3bf38e6db683c7f91de1052311f001e5.tar.gz |
Limit the number of gRPC threads
Add test to verify the threads limit
Try to fix; Limit number of gRPC threads.
commit_hash:d525e94e0ef397bf05d367ec9904d674c17d0d76
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/unified_agent_client/grpc_io.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/cpp/unified_agent_client/grpc_io.cpp b/library/cpp/unified_agent_client/grpc_io.cpp index 0eb17e5d30..1181d37c73 100644 --- a/library/cpp/unified_agent_client/grpc_io.cpp +++ b/library/cpp/unified_agent_client/grpc_io.cpp @@ -1,5 +1,6 @@ #include "grpc_io.h" +#include <contrib/libs/grpc/src/core/lib/event_engine/thread_pool.h> #include <contrib/libs/grpc/src/core/lib/iomgr/exec_ctx.h> #include <contrib/libs/grpc/src/core/lib/iomgr/executor.h> #include <contrib/libs/grpc/src/core/lib/surface/completion_queue.h> @@ -147,6 +148,7 @@ namespace NUnifiedAgent { limit = 2; } grpc_core::Executor::SetThreadsLimit(limit); + grpc_event_engine::experimental::ThreadPool::SetThreadsLimit(limit); }); } |