Member-only story

Container resources’ request, limit & usage metrics

Karthikeyan Govindaraj
4 min readMar 10, 2019

--

Containers, photo by frank mckenna

Kubernetes(k8s) is orchestrating the world now, not just containers. The growth in adoption of Kubernetes and the contributions towards this open-source system is massive and pull-requests’ landing in GitHub are from all over the world. In such automated and fast-paced world, understanding the metrics and monitoring is essential to solve the problems. Often this comes handy with Prometheus and lots of official and un-official exporters which pulls the metrics data and serve to Prometheus.

The scaling-on-demand for services and cluster nodes is another massive win for k8s by eliminating the late-night work for installing a new machine and provisioning it during the heavy load time. ( May be “Thanks-Giving” and “Christmas” ?)

But often these advantages provided by k8s are not well utilized. In some scenarios the CPU and Memory resource are over utilized by some running services and makes it unavailable for other services getting provisioned in the cluster, which in-turn triggers the scaling of the cluster. This incurs cost to the management without the actual need for it.

To avoid/monitor situations like this, there are few boundaries like quota restriction, but this will restrict deploying any additional services altogether once the quota is reached. So, it would be great to have the resources like CPU and…

--

--

Karthikeyan Govindaraj
Karthikeyan Govindaraj

Written by Karthikeyan Govindaraj

An Open Source Software enthusiast, DevOps and Cloud-Native App developer | https://linktr.ee/gkarthiks

Responses (1)