There isn't currently any way to do this. However, we should probably look at making some changes here once we finish moving to EventEngine, since the polling threads will wind up being decoupled from this thread pool anyway.
On Sun, Jan 2, 2022 at 8:44 AM Jeff Steger <[email protected]> wrote: > grpc-java has a method in its ServerBuilder class to set the Executor. Is > there similar functionality for grpc-c++ ? I am running a C++ grpc server > and the number of executor threads it spawns is high and seems to never > decrease, even when connections stop. > > On Wed, May 19, 2021 at 1:19 PM 'Mark D. Roth' via grpc.io < > [email protected]> wrote: > >> The gRPC server synchronous API in C++ has a thread pool to manage >> polling and request handling. The thread pool grows and shrinks as needed >> but always keeps some capacity around for new incoming requests that may >> show up at any time. The threads should go away when you shut down the >> server. >> >> On Monday, May 17, 2021 at 8:39:59 AM UTC-7 Jeff wrote: >> >>> Hi, >>> I am running a grpc synchronous server impemented in C++. I notice when >>> I run that many threads named ‘default-executo’ are spawned. It seems that >>> even when clients cease to make connections, these threads still persist. >>> There are dozens of these threads, and I would like to know what they are >>> doing and what their lifespan is. Thanks! >>> >>> Jeff >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "grpc.io" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/grpc-io/35eef025-5c54-40f6-a577-bc36743ad834n%40googlegroups.com >> <https://groups.google.com/d/msgid/grpc-io/35eef025-5c54-40f6-a577-bc36743ad834n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- Mark D. Roth <[email protected]> Software Engineer Google, Inc. -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAJgPXp5W6j4DxvkuEa1P1OY3QHYLFiPz5WEvRybsHH%3DPKm83_g%40mail.gmail.com.
