CPU utilization in microservices-v2021 traces
There are two CPU utilization numbers in the microservices traces:
- node
| columns | Example Entry |
|---|---|
| timestamp | 1000 |
| nodeid | ff1fb31957db767c5be4de2855488f128532efc2df0a673c6fa3e7718d10f355 |
| cpu_utilization | 0.7236219289416774 |
| memory_utilization | 0.738378997619996 |
- MS_Metrics_table
| columns | Example Entry |
|---|---|
| timestamp | 0 |
| msname | 99f2e7b501f50db9b4089242a5d3e1aba334c32e0c718b8d79281529a9489b15 |
| msinstanceid | 4d1cf65970444ef3ba9870468d7ecf9c17a93782134464767fbdc4aeb6f162eb |
| nodeid | ecd8a876344d673d8e934f566aae38aec05e572d43ab8d58624bd59e3ec43928 |
| cpu_utilization | 0.1299166666654249 |
| memory_utilization | 0.6126489639282227 |
For both of these, what do the utilization numbers mean?
For example, if the utilization is 1, how many cores / CPUs are being utilized? Does it mean the same for both the tables? How many CPUs does a container have in comparison to the full node?
Consider this specific case:
- MS Container has 8 CPUs allocated with utilization 0.5
- It is running on a node that has 16 CPUs
Then does it mean mean the full container is being used? or only 4 CPUs are being used? Is it possible to know the size of the container?
Thanks!
Thanks for the questions and your interest!
One node has multiple containers. One node has multiple containers. CPU utilization in the node and MS_Metrics quantify the CPU usage in nodes and containers, respectively. So, in the specific case you mentioned, only 4 CPUs are being used by MS container.
Nodes and containers could have different configurations, such as the number of CPU cores and the size of memory. The released traces do not provide such information.
Makes sense, thank you!