diff options
author | andybg <andybg@yandex-team.com> | 2024-12-10 20:49:27 +0300 |
---|---|---|
committer | andybg <andybg@yandex-team.com> | 2024-12-10 21:35:28 +0300 |
commit | ebceebb7b22e971e5eb52b5323bfc1a4de855145 (patch) | |
tree | ead037430522d23457b4dbcd735e5141a16764c8 /library/cpp/unified_agent_client/grpc_io.cpp | |
parent | 6f1a8a76055d4ef4f36b16712b3846380af80708 (diff) | |
download | ydb-ebceebb7b22e971e5eb52b5323bfc1a4de855145.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/unified_agent_client/grpc_io.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); }); } |