gRPC keepalive not working on alibaba ACK

11/7/2021

I've built some microservices using kubernetes and the pods communicate using gRPC. I've set keepalive settings on both client and server (copy and pasted the settings from here: https://cs.mcgill.ca/~mxia3/2019/02/23/Using-gRPC-in-Production/ ), however after a period of inactivity the first gRPC request will still fail, returning an UNAVAILABLE error.

I'm using Alibaba's ACK to host my app, and built my app in python.

Anyone have any ideas on how to troubleshoot? I'm at a loss.

-- William Gazeley
alibaba-cloud
grpc
grpc-python
kubernetes

0 Answers