You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, all.
I try to use gRPC C++ server as front end, that means it may accept huge number of connection in short time.
so now I test its ability to process incoming connection. problem is, if connection number increases, server seems to drop connection (seems no accept failure)
detail description of environment:
grpc: v1.0.0 branch
host: OSX El Capitan (10.11.6), 16GB Mem, Intel Core i7 2.6GHz (8 core)
server: Sync mode gRPC C++ running in ubuntu 16.10 based container (just copy server binary) with docker 1.12.0
client: gRPC nodeJS v0.12.7 running in host machine, all client run on same nodejs process, with node-fibers
each client has one instance of service object, which is created by grpc.load(proto_file).package_name.service_name(); and send echo request to server 1000 times, with ssl enabled.
if number of connection < 100, it seems no problem. but above 200 clients start to show error like following.
increasing number of client, around 500, almost half of clients terminate with error like above.
I try to change net.core.somaxconn to 1024 or 2048 (in container), because it seems to change s_max_accept_queue_size also, but no help.
I also try to run server on host environment, but result is same.
it may be a problem of my host's system setting, but currently I have no idea. does anyone have some hint for this problem?
regards,
The text was updated successfully, but these errors were encountered:
By default, the ulimit -n (max FDs) value on the Mac is quite low. What is yours set to? Can you make that as large as the system will accept (I think 2048) and then see what happens? Thanks!
hi, all.
I try to use gRPC C++ server as front end, that means it may accept huge number of connection in short time.
so now I test its ability to process incoming connection. problem is, if connection number increases, server seems to drop connection (seems no accept failure)
detail description of environment:
grpc: v1.0.0 branch
host: OSX El Capitan (10.11.6), 16GB Mem, Intel Core i7 2.6GHz (8 core)
server: Sync mode gRPC C++ running in ubuntu 16.10 based container (just copy server binary) with docker 1.12.0
client: gRPC nodeJS v0.12.7 running in host machine, all client run on same nodejs process, with node-fibers
each client has one instance of service object, which is created by grpc.load(proto_file).package_name.service_name(); and send echo request to server 1000 times, with ssl enabled.
if number of connection < 100, it seems no problem. but above 200 clients start to show error like following.
at the same time server reports like this:
increasing number of client, around 500, almost half of clients terminate with error like above.
I try to change net.core.somaxconn to 1024 or 2048 (in container), because it seems to change s_max_accept_queue_size also, but no help.
I also try to run server on host environment, but result is same.
it may be a problem of my host's system setting, but currently I have no idea. does anyone have some hint for this problem?
regards,
The text was updated successfully, but these errors were encountered: