is there a way to limit the number concurrent gRPC Clients on server and drop additional clients when the limit is reached?

36 views
Skip to first unread message

Sri

unread,
Apr 24, 2020, 11:11:46 AM4/24/20
to grpc.io
I want to limit the no.of concurrent clients a grpc server can serve, so that our load balancer can assign other servers to the client, is there a way to do this? I am speciifcally working with grpc java

Thank you

Chengyuan Zhang

unread,
Apr 24, 2020, 3:44:14 PM4/24/20
to grpc.io
Unfortunately, this hasn't been implemented, while it had been asked for several times. See https://github.com/grpc/grpc-java/issues/1886 for status and progresses about the discussion. You could comment (ping) on that with descriptions about your use case. There may be other server concurrency limiting solutions mentioned by other users in that discussion interests you.

FWIW, our service implementations used to have load reporting mechanisms that servers report their load (e.g., # of requests, utilizations, etc) to the balancer for load balancing purposes.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages