On 100Gb network, I create a server to listening on 4 ports and grpc client can reach 3GB+/s throughput. However, when the server listening on one port, grpc client reaches just 1GB/s throughput, even I set
args.SetInt(GRPC_ARG_HTTP2_STREAM_LOOKAHEAD_BYTES, 1024*1024*1024);
args.SetInt(GRPC_ARG_MAX_CONCURRENT_STREAMS, 10);
It seems that grpc client can use only one connection concurrently to one port service. Am I right?
What's the correct way of doing it?
My code is here:
client: https://github.com/gongweibao/tests/blob/develop/grpc_test/client.cc
server: https://github.com/gongweibao/tests/blob/develop/grpc_test/server.cc