Re: [grpc-io] C++ grpc callback sevrer cpu usage

2022-04-14 Thread Nicolas Noble
170% CPU usage on 32 cores shouldn't be a lot. Using typical load metrics, this is about 5% per core. The load reporting for "all of the computing power is being used at max capacity" should be 3200% in your case. Of course it depends on your reporting tool. On Thu, Apr 14, 2022 at 4:50 PM Aleh Li

[grpc-io] C++ grpc callback sevrer cpu usage

2022-04-14 Thread Aleh Linkin
Hi, everyone. I have grpc callback server and try to send about 1500 unary ping-pongs per second and I get about 170% CPU usage on server with 32 CPU. I'd like to understand is it ok because of 16th threads are used by callback server or I do something incorrectly? Thank you. -- You received

[grpc-io] Spec clarification about multi-value custom metadata -> HTTP/2 headers

2022-04-14 Thread Peter Wiese
I have 2 questions: Given the following set of custom metadata added via some client SDK, Grpc-Core, Grpc-Go, grpc-dotnet key1: foo key1: bar Is it required that these map to separate HTTP/2 headers? key1: foo key1: bar Or is it allowable to map those metadata items to a single HTTP/2 header

[grpc-io] Re: serverCallStreamObserver.isCancelled() cannot detect client disconnection for gRPC version higher than 1.41.0

2022-04-14 Thread 'sanjay...@google.com' via grpc.io
I am assuming it is grpc-java you are talking about. Couple of questions: - "when gRPC version is higher than 1.41.x" : can you pinpoint whether the client version or the server version causes this changed behavior? - "...cannot detect disconnection of a client ..." do you mean that when a disco

[grpc-io] serverCallStreamObserver.isCancelled() cannot detect client disconnection for gRPC version higher than 1.41.0

2022-04-14 Thread Bill Li
Hi, I have recently discovered serverCallStreamObserver.isCancelled() cannot detect disconnection of a client when gRPC version is higher than 1.41.x. So, the server logic that I have contains a while loop that runs forever and if the client disconnects from the server, it will call onCompleted

[grpc-io] Re: gRPC C API

2022-04-14 Thread 'yonggang chang' via grpc.io
Which approach did you choose? 在2018年6月28日星期四 UTC+8 07:51:22 写道: > I am working on something similar. However being completely unfamiliar in > the territory, I was wondering if you would have any material that I can > refer to. > > > On Thursday, 9 March 2017 11:05:16 UTC-8, Anirudh Kasturi wro