Can you describe which version of the code you're using ? This seems a bit
odd, given we have stress testing in place that shows we can handle load,
but I couldn't make sense of these line numbers in 1.0, so I am assuming
you're on an older version.
On Sunday, September 4, 2016 at 9:52:22 PM UTC-7, takehiro iyatomi wrote:
>
> 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 drop connection (seems no accept
> failure)
>
> detail description of environment:
> 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.
> ```
> E0905 13:26:29.887599000 123145305219072 handshake.c:128] Security
> handshake failed:
> {"created":"@1473049589.887582000","description":"Handshake read
> failed","file":"../src/core/lib/security/transport/handshake.c","file_line":237,"referenced_errors":[{"created":"@1473049589.887580000","description":"FD
>
> shutdown","file":"../src/core/lib/iomgr/ev_poll_posix.c","file_line":427}]}
> ```
> at the same time server reports like this:
> ```
> E0905 04:26:29.998263585 491 handshake.c:128] Security
> handshake failed:
> {"created":"@1473049589.998250914","description":"Handshake read
> failed","file":"src/core/lib/security/transport/handshake.c","file_line":237,"referenced_errors":[{"created":"@1473049589.988649722","description":"EOF","file":"src/core/lib/iomgr/tcp_posix.c","file_line":235}]}
> ```
>
> 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, 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,
>
> Takehiro Iyatomi ([email protected] <javascript:>)
>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/c6253a25-ff9b-4847-aded-cd953ec1e740%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.