跳至內容

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.

已提問 2 年前檢視次數 309 次

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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。