From 548164fe5169db6d111bd086ce14fd6a4a4c9e45 Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Fri, 10 Feb 2023 06:21:35 -0800 Subject: [PATCH] Rename worker threads in standalone to include flavor name Summary: As above Reviewed By: udippant Differential Revision: D43147890 fbshipit-source-id: 7787addcad164a2d524e31148461416f8a46ad78 --- third-party/mcrouter/src/mcrouter/Server-inl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/third-party/mcrouter/src/mcrouter/Server-inl.h b/third-party/mcrouter/src/mcrouter/Server-inl.h index ff1d067d1a1..5b3beb36228 100644 --- a/third-party/mcrouter/src/mcrouter/Server-inl.h +++ b/third-party/mcrouter/src/mcrouter/Server-inl.h @@ -297,8 +297,12 @@ bool runServerDual( std::shared_ptr thriftServer; try { // Create thread pool for both AsyncMcServer and ThriftServer + auto threadPrefix = + folly::to("mcrpxy-", mcrouterOpts.router_name); ioThreadPool = std::make_shared( - mcrouterOpts.num_proxies, mcrouterOpts.num_proxies); + mcrouterOpts.num_proxies, + mcrouterOpts.num_proxies, + std::make_shared(threadPrefix)); // Run observer and extract event bases auto executorObserver = std::make_shared(); -- 2.11.4.GIT