Hi Folks,
i'm facing an out of memory problem due to too many requests sending to 
gRPC server in the short period of time. The gRPC server is working at K8s 
platform with limited memory. Usually, the server works fine, but when the 
traffic increases rapidly ( short-term peak ) , memory consumption rises to 
the limit, and k8 kills the app. I know that the gRPC library offers a 
ResourceQuota 
mechanism 
<https://grpc.github.io/grpc/cpp/classgrpc_1_1_resource_quota.html> 
attached to the client channel via ChannelArguments 
<https://grpc.github.io/grpc/core/group__grpc__arg__keys.html#gaa8bb5c65808f9c340ba7e4dd4f9f0f39>
 
but I'm not sure what the configuration should look like and cannot find 
any useful example on the internet. It's the 3rd part app, so adding a 
memory quota into  the application code is not an option. i'm trying to 
solve the problem without additional external solution e.g. sidecar 
proxy.  Configuring resource quota via channel arguments passed as command 
line argument sounds reasonable for me.
any suggestions and recommendations welcome

Thank you,
Andrzej

-- 
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 view this discussion visit 
https://groups.google.com/d/msgid/grpc-io/b0627a85-053b-45bc-b45b-5c2c95a3a5a5n%40googlegroups.com.

Reply via email to