Cockroach Labs Estate economics What idle nodes, provisioned bytes and peak-sized bills cost, worked out from your estate.

Estate summary

  1. Nodes 62 down from 150
  2. Avg CPU utilization 36.3% up from 15.0%
  3. Storage provisioned 3.0 TB 500 GB of data
  4. Est. monthly saving 58% $1,000/m becomes $420/m

Step 1 of 8 - Virtualization

You're running an estate, not a cluster

Every cluster below was sized for its own peak, so every one of them idles.

Deployment model
1 private host cluster, 50 virtual clustersPrivate Host cluster62 nodes on average, 71 at peakvc-01own connection stringvc-02own connection stringvc-03own connection stringvc-04own connection stringvc-05own connection stringvc-06own connection stringvc-07own connection stringvc-08own connection stringvc-09own connection stringvc-10own connection stringvc-11own connection stringvc-12own connection stringvc-13own connection stringvc-14own connection stringvc-15own connection stringvc-16own connection stringvc-17own connection stringvc-18own connection stringvc-19own connection stringvc-20own connection stringvc-21own connection stringvc-22own connection stringvc-23own connection stringvc-24own connection stringvc-25own connection stringvc-26own connection stringvc-27own connection stringvc-28own connection stringvc-29own connection stringvc-30own connection stringvc-31own connection stringvc-32own connection stringvc-33own connection stringvc-34own connection stringvc-35own connection stringvc-36own connection stringvc-37own connection stringvc-38own connection stringvc-39own connection stringvc-40own connection stringvc-41own connection stringvc-42own connection stringvc-43own connection stringvc-44own connection stringvc-45own connection stringvc-46own connection stringvc-47own connection stringvc-48own connection stringvc-49own connection stringvc-50own connection stringShared, auto-scaled node pool62 of 71 nodes at peakEstate after consolidationOne private host cluster carrying 50 virtual clusters on 62 nodes on average and 71 at peak, averaging 36.3% CPU utilization.
36%Average CPUAverage CPU CPU utilization36.3% of provisioned CPU is in use.

62 nodes running 180 vCPU of actual work.

Pooled and sized once for the peak, 71 nodes would average 31.7%. Auto-scaling brings it to 62 nodes at 36.3%, moving between 31.9% and 38.7% across the day against a 38% setpoint.

The arithmetic, in full
StepWorkingResult
Provisioned today50 clusters of 3 nodes each, 150 in total x 8 vCPU1200 vCPU
Mean demand1200 vCPU x 15.0% estate average utilization (per-cluster 0.5% to 28.0%, sd 5.3%)180 vCPU
Aggregate peak180.0 vCPU x (1 + (2.23 - 1) / sqrt(50)), a pooled peak-to-mean of 1.174211 vCPU
Consolidated, sized once for the peakmax(3, ceil(211.3 vCPU / (8 vCPU x 37.5% target))) = max(3, ceil(70.42)); the mean sits well under that peak71 nodes, averaging 31.7%
Auto-scaled through the daythe pool follows the pooled curve in whole nodes, 30 minutes behind it, holding its size for 2 hours before shrinking62 nodes on average, at 36.3% CPU
Utilization across the day31.9% to 38.7% against a 37.5% setpoint: the pool runs hot while it's a bucket behind a rise, and cool while the cooldown is still holding capacity after a peak31.9%-38.7%

Assumptions

  • 8 vCPU per node. Standalone clusters are drawn around 3 nodes, snapped to an odd number for quorum and held between 3 and 15; in this estate they're all 3, because a spread centred on the end of that range has nowhere to go, for 150 nodes in total.
  • Each standalone cluster's CPU is a draw from a normal distribution centred on 15.0% and held between 0% and 100%; in this estate they run 0.5% to 28.0%, a 5.3-point standard deviation. The published band is 10-15% today against a 30-45% auto-scaled target, and this Private Host Cluster is set to 37.5%.
  • The Private Host Cluster floors at 3 nodes and must reach 71 at peak.
  • The auto-scaler sizes for what it saw 30 minutes ago and waits 2 hours before shrinking, so the pool averages 36.3% rather than sitting on its 37.5% setpoint.
  • Workloads are independent; consolidation moves where work runs, not how much there is.
What a virtual cluster gives an app team

Its own connection string, databases, schemas, users, roles and backups, and no visibility into the Private Host Cluster or any other virtual cluster.