3 ms·
would like to know if someone's got a more objective approach; what we currently do is just a maxOf; take CostPerGB (memory) and CostPerCore (cpu); and costPe
by thewisenerd 2y ago
would like to know if someone's got a more objective approach;
what we currently do is just a maxOf;
take CostPerGB (memory) and CostPerCore (cpu); and
costPerPod = max(pod.requests.cpu * CostPerCore, pod.requests.memory * CostPerGB)
at an overall basis, this was ~20% off to actuals when we'd checked this last, so we clearly call out that the costs are "indicative" and not exact.
- nopurpose 2y agoI thought about it, but then 2 pods each almost maxing out one dimension, for isntance 7.5 CPU 0.5 GB and 0.5 CPU and 31.5 GB will account together for more than node cost.