Kubernetes | Multiple pods - performance problem

5/26/2020

i m using kubernetes cluster for web app. But i m running into problem when pods start scale. More pods -> slower app (every click is longer). From my point of view, there is problem with caches. I m trying solve it, by volume or persistent volume, which all pods share together. But it has still same output, it seems like every pod want to create new cache.

Is there any solution other to redesign code ?

-- Samuel Stanislav
autoscaling
caching
kubernetes
performance
volume

1 Answer

5/26/2020

For cache issues have you considered :

With increasing pods, increasing times to me doesn't sound like its a cache issue or not the cache alone. The webserver is playing a big part or the load balancer an/or the firewall sitting in the front is capping the bandwidth. Round trip from browser to pod back to browser should be same if you have 1 or 100 pods provided there is no network latency. In your case an increase traffic is slowing the connection speed. I have had similar issues with the network capping bandwidth in front of the pods.

-- Vamshi
Source: StackOverflow