I have a pod in kubernetes where it's slowing down under heavy load. The pod has two containers -- Nginx and PHP.
I see that Nginx is set to use "100m" CPU and PHP is set to use 1 CPU (1 core). I'm suspecting that Nginx might be bottleneck, but I'm having hard time to determine it.
This is my Kube setting for the nginx.
resources:
limits:
cpu: 100m
memory: 128M
requests:
cpu: 100m
memory: 128M
When I SSH into Nginx container and use "top" command, I see 1% CPU pretty much all the time. I never see it goes over 1%.
7 nginx 20 0 31972 2360 972 S 0.7 0.0 7:07.94 nginx
1 root 20 0 31480 1784 976 S 0.0 0.0 0:00.01 nginx
Is that mean that Nginx container is limited to 1% CPU usage because I set the CPU request to 100m?
Am I reading it correctly? or is there a standard way of reading CPU usage of a single container in a pod?