os .cpus()returns the number of cores on a Kubernetes host, not the number of cores assigned to a pod.
Investigating excessive memory usage
Recently, when I was looking through a cluster health dashboard for a Kubernetes cluster, I noticed that one of the applications deployed was using a considerable amount of RAM - way more than I thought could be reasonable. Each instance (pod) of the application used approximately 8 GB of RAM, which was definitely excessive for a reasonably simple NodeJS webserver. Combined with the application running 20-30 replicas or so, it makes the total RAM usage between 160 GB and 240 GB.
Read in full here:
This thread was posted by one of our members via one of our news source trackers.