K8s inter service communication timeout

5/12/2020

We have a K8s Cluster (3 Master - 2 Worker) - v1.17

There are 2 Microservice in this cluster, a Microservices A call to Common. Sometimes, I face the problem is: A call to Common has timeout after 60s - Although this request is processed very quickly in the Common and success ( < 10ms).

getErrorInfoFallback : feign.RetryableException: Read timed out executing GET http://common-service.dev.svc.cluster.local:8002/errormapping/v1.0?errorCode=abcxyz

I use FeignClient to call other Microservice with url like http://common-service.dev.svc.cluster.local:8002

Here is timeline:
- 16:37:42.362 A send request 
- 16:37:42.368 Common logging the request 
- 16:37:42.378 Common logging respone return 
- 16:38:42.424 A: timeout exeption

Could anyone help me?

-- user3611168
coredns
flannel
kube-proxy
kubernetes
microservices

0 Answers