performance limitation of one client process #21332

36 views
Skip to first unread message

reme...@gmail.com

unread,
Dec 1, 2019, 9:50:10 PM12/1/19
to grpc.io

What version of gRPC and what language are you using?

1.20

What operating system (Linux, Windows,...) and version?

linux

What runtime / compiler are you using (e.g. python version or version of gcc)

gcc

What did you do?

rpc communication from c++ grpc client to java grpc server.

one process, multiple threads(10-50), and one new channel/client (grpc::CreateChannel) per thread. When I start one process and send message from each threads through its rpc client, I can get only 6500qps/334MB/s. When I start two processes and send message with same pattern , I can get 11700qps/620MB/s.
After looking into the state, I found there is only one socket connected to the server for each process, even there is multiple client/channel sending messages to the server.
I'm guessing whether the online socket number is the root cause of bandwidth limitation.
Any response is appreciated.


What did you expect to see?

multiple http2 socket connections.

What did you see instead?

only one http2 socket connection.


Sivaram Kumar Battu

unread,
Dec 7, 2019, 1:49:15 PM12/7/19
to reme...@gmail.com, grpc.io
Subchannel pooling is enabled in gRPC around 1.8.0 version
If you start multiple connections to the same target from different threads within the same program they start using the same endpoint on the client side.

Starting from 1.19 version, there is an option to override this behavior by setting the following knob.

If you specify this argument during channel creation time, you should be able to get one socket per each channel, sample below from C++ tests.

Best,
- Ram.


--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/1edf4791-42dd-4509-a9a6-ef5f5603ebef%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages