You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is how Java does it, regarding heap size adjustment based on available RAM JDK-8146115 : Improve docker container detection and resource configuration usage.
Kubernetes CPU requests explained
# cat /sys/fs/cgroup/cpu/kubepods/cpu.shares
# cat /sys/fs/cgroup/cpu/kubepods/<pod_foo>/<container_foo>/cpu.shares
# cat /sys/fs/cgroup/cpuset/kubepods/<pod_foo>/<container_foo>/cpuset.cpus
/cpuacct.usage
/sys/fs/cgroup/memory/memory.limit_in_bytes
,/sys/fs/cgroup/memory/memory.usage_in_bytes
https://stackoverflow.com/questions/57731048/kubernetes-get-actual-resource-limits-inside-containersays it is possible to use something called the Downward API to reflect the memory and cpu limits in env variables of the pod
Beta Was this translation helpful? Give feedback.
All reactions