내용으로 건너뛰기

Requests are not evenly distributed among all the pods when the pod count is a multiple of 5 in the IPvSC least connection setting of kube-proxy on EKS

1

We have 5 nodes in the cluster with IPvSC enabled and kube-proxy configured in IPvSC mode: least connections. There are two applications: Application A with 2 pods and Application B with 5 pods. When a user makes a request to Application A, it creates a reverse proxy connection to the pods of Application B using the service URL. Application A is exposed through a load balancer. However, when we send 8,000 requests to the ALB, the requests are only distributed among 4 of the Application B pods (and sometimes just 2 pods). In contrast, when we increase or decrease the number of pods to a non-multiple of 5 (e.g., 10 pods result in distribution across 8), the traffic is spread across all pods. Is there a specific reason for this behavior?

Update : if we change the number of nodes to 6 ,issues occurs with multiples of 6.

1개 답변
0

I suspect this is an artifact of a load testing tool and hashing on the load balancer. Make sure that you are creating load from a number of different sources (IPs) and that the load is realistic in the sessions it creates.

Hope this helps.

AWS
전문가

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠