Hi all, I have a use case , where Im building the grpc server as a shared library and it exposes on runServer(const std::string& server_address) api to application.
Application and link to the server library and call run server with desired ip:port, server will start But the problem is, When apllication calls this runServer function, builder.BuildAndStart() fails with "At least one of the completion queues must be frequently polled"(server_builder.cc:341 - grpc_v1.20 ) ServerBuilder builder; ...... m_server = builder.BuildAndStart(); But if I compile the application source code along with the library and use, no issues are coming. Can anyone shed some light on how to proceed? Thanks and Regards, A Sooryaa On Tuesday, September 12, 2017 at 12:05:53 AM UTC+5:30, Anirudh Kasturi wrote: > > Hello folks, > > I noticed that when I bring up my grpc server, it spins up worker threads > using the grpc::ThreadManager::WorkerThread::Run(). > The number of worker threads spun = Number of Cores on the server I bring > up my GRPC server on. > > For eg : If I have a VM with 2 cores, the grpc server brings up two > worker threads. If the VM has 40 cores it brings up 40 worker threads. > In reality, I just need one worker thread. Is it possible to bring up only > one worker thread? Is that configurable? Also is there a way I can name > the thread so that we have a way to track it? Thank you. > > Best, > Anirudh > > > -- 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 grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/2d81bfba-1070-42f2-a950-9e2d385e306e%40googlegroups.com.