Created on 07-01-2021 08:17 AM - edited on 07-05-2021 03:15 AM by subratadas
This article attempts to explain the data sources of the Overview and Usage tabs and their meanings in the Admin page of CDSW.
I have encountered several customers asking me the same questions. It is how to evaluate the resource usage of the CDSW cluster.
Below, I will record some of the specific questions asked by customers with a representative meaning, so that I can respond to customers more quickly in the future, and for other people's reference.
For your confusion, from the conclusion:
# kubectl get nodes
NAME STATUS ROLES AGE VERSION
[hostname4] Ready master 19h v1.13.9-1+6c8cb1a92335e2
[hostname5] Ready <none> 19h v1.13.9-1+6c8cb1a92335e2
# kubectl describe node [hostname4]
...
Capacity:
cpu: 8
ephemeral-storage: 262132716Ki
hugepages-2Mi: 0
memory: 32779704Ki
pods: 110
Allocatable:
cpu: 6500m
ephemeral-storage: 262132716Ki
hugepages-2Mi: 0
memory: 29121976Ki
pods: 110
...
# kubectl describe node [hostname5]
...
Capacity:
cpu: 8
ephemeral-storage: 262132716Ki
hugepages-2Mi: 0
memory: 32779704Ki
pods: 110
Allocatable:
cpu: 6500m
ephemeral-storage: 262132716Ki
hugepages-2Mi: 0
memory: 29121976Ki
pods: 110
As can be seen from the output of the above commands, there are 2 nodes in my CDSW, and each node has allocatable resource of 6500m, 29121976Ki. In Kubernetes, 1 CPU core is 1000m, so here is exactly 13 cores, which corresponds to Total vCPUs in Site Administration. The same applies to memory.
Non-terminated Pods: (22 in total) Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits AGE --------- ---- ------------ ---------- --------------- ------------- --- default-user-1 lf118vexnu6xxxxx 1100m (16%) 0 (0%) 2084197Ki (7%) 1953125Ki (6%) 90m ... Allocated resources: (Total limits may be over 100 percent, i.e., overcommitted.) Resource Requests Limits -------- -------- ------ cpu 2740m (42%) 300m (4%) memory 7976293Ki (27%) 13159781Ki (45%) ephemeral-storage 0 (0%) 0 (0%) |