Skip to main content

Radix cost allocation

As part of hosting an application on Radix, each application will take it's share of the cloud cost assosiated with the Radix Platform cluster. The cost will be allocated monthy following the routines issued by Equinor.

How is the cost calculated

Cost calculation is based on the total time the replicas(containers) belonging to an application has been running, and how much CPU and memory the replicas requested. The cost is split between applications by dividing each application's CPU and memory time by the total CPU and memory time for all applications. Cluster cost is split 50/50 between CPU and memory time.

Example

Cost Calculation Example

Assuming a period of 30 days where total cluster cost is 100.000NOK. Two applications, Application 1 and Application 2, are running in the cluster.

Application 1 has two components, frontend and backend. horizontalScaling is configured for backend to automatically start new replicas during periods of high CPU utilization. Application 2 has two components, frontend and backend, and a job named compute.

CPU and memory time by Application 1

CPUCPU totalMemoryMemory total
frontend-replica1100m × 720hrs72.000100MB × 720hrs72.000
backend-replica1200m × 720hrs144.000400MB × 720hrs288.000
backend-replica2200m × 300hrs60.000400MB × 300hrs120.000
backend-replica3200m × 90hrs18.000400MB × 90hrs36.000
CalculationTotal
CPU72.000 + 144.000 + 60.000 + 18.000294.000
Memory72.000 + 288.000 + 120.000 + 36.000516.000

CPU and memory time by Application 2

CPUCPU totalMemoryMemory total
frontend-replica1100m × 720hrs72.000200MB × 720hrs144.000
backend-replica150m × 720hrs36.000250MB × 720hrs180.000
job-1250m × 15hrs3.750750MB × 15hrs11.250
job-2250m × 15hrs3.750750MB × 15hrs11.250
job-3250m × 30hrs7.500750MB × 30hrs22.500
CalculationTotal
CPU72.000 + 36.000 + 3.750 + 3.750 + 7.500123.000
Memory144.000 + 180.000 + 11.250 + 11.250 + 22.500369.000

Calculation

CalculationTotal
Cluster CPU time294.000 + 123.000417.000
Cluster memory time516.000 + 369.000885.000
Cluster CPU cost100.000 ÷ 250.000
CalculationTotal
Application1 CPU cost294.000 ÷ 417.000 × 100.000NOK × 0.535.252NOK
Application1 memory cost516.000 ÷ 885.000 × 100.000NOK × 0.529.152NOK
Application1 total cost64.405NOK
CalculationTotal
Application2 CPU cost123.000 ÷ 417.000 × 100.000NOK × 0.514.748NOK
Application2 memory cost369.000 ÷ 885.000 × 100.000NOK × 0.520.847NOK
Application2 total cost35.595NOK