3 ms·
pod A uses 2 cores, pod B uses 1 core. Machine has 4 cores and all remaining unscheduled pods require 2 cores. How do you attribute the partial usage of the no
by cobookman 5y ago
pod A uses 2 cores, pod B uses 1 core. Machine has 4 cores and all remaining unscheduled pods require 2 cores.
How do you attribute the partial usage of the node? Is it 2 cores billed to pod A, 1 core billed to pod B, and 1 core billed to some random team?
Or do you have 2/3 of Node billed to pod A and 1/3 of Node billed to Pod B.
Now deal with this permutation across all the various variables.
- orf 5y agoYou do it roughly based on the deployment requests and the average HPA values throughout a time slice. Most k8s workloads run on a homogenous set of node types, so you can have an hourly cost per gb and per vcpu without digging too much into it.