0

In my Kubernetes deployment of 3 replicas, I'm doing load testing. I notice that the 3 replicas/pods are not evenly balanced. One pod is regularly maxing out on its CPU limit and other pods are really low usage. I'm using K8s version 1.18.

Any tips and advice on how (if possible) to make it balanced? Note: I am not concerned with any external load balancer nor any nginx controller. This is an internal K8s service call.

Rico
  • 58,485
  • 12
  • 111
  • 141
rkim
  • 33
  • 2
  • 9
  • What service type are you using? – Dashrath Mundkar Jul 20 '20 at 13:33
  • Lots of duplicates for this question: https://stackoverflow.com/questions/57130296/load-balancing-to-multiple-containers-of-same-app-in-a-pod https://stackoverflow.com/questions/58674623/balancing-traffic-using-least-connection-in-kubernetes https://stackoverflow.com/questions/53186324/clusterip-none-and-failing-pods – Rico Jul 20 '20 at 15:04
  • Others: https://stackoverflow.com/questions/58652266/does-kube-router-ipvs-least-connection-algorithm-does-load-balancing-across-pod https://stackoverflow.com/questions/52542260/does-nodeport-requestbalance-between-deployments – Rico Jul 20 '20 at 15:07
  • I'm using service type clusterIP. I resolved the issue by working the settings of JMeter on the client side. – rkim Jul 25 '20 at 14:02

0 Answers0