Skip to content

Commit

Permalink
Merge pull request #147 from joachimweyl/OShiftCalcUpdate
Browse files Browse the repository at this point in the history
OpenShift Calculation Update
  • Loading branch information
joachimweyl authored Dec 19, 2023
2 parents 27858a7 + be152a1 commit 7da30b6
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions docs/get-started/cost-billing/how-pricing-works.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ the services and billing model.

### Service Units (SUs)

![Service Units (SUs)](images/su.png)
| Name | vGPU | vCPU | RAM (GB) | Current Price |
| - | - | - | - | - |
| CPU | 0 | 1 | 4 | $0.013 |
| A100 GPU | 1 | 24 | 74 | $1.803 |
| V100 GPU | 1 | 48 | 192 | $1.214 |
| K80 GPU | 1 | 24 | 28.5 | $0.463 |

## Breakdown

Expand All @@ -37,7 +42,7 @@ of the base SU for the maximum resource they reserve.

`$360.60`

**CPU SU Example:**
**OpenStack CPU SU Example:**

- A Project or VM with:

Expand All @@ -49,6 +54,24 @@ of the base SU for the maximum resource they reserve.

`$46.80`

**OpenShift CPU SU Example:**

- Project with 3 Pods with:

`1 vCPU, 3 GB RAM, 720hrs (24hr*30days)`
`0.1 vCPU, 8 GB RAM, 720hrs (24hr*30days)`
`2 vCPU, 4 GB RAM, 720hrs (24hr*30days)`

- Will be charged:

`RoundUP(Sum(`
`1 CPU SUs due to first pod * 720hrs * $0.013`
`2 CPU SUs due to extra RAM (8GB vs 0.4GB(0.1*4GB)) * 720hrs * $0.013`
`2 CPU SUs due to more CPU (2vCPU vs 1vCPU(4GB/4)) * 720hrs * $0.013))`
`=RoundUP(Sum(720(1+2+2)))*0.013`

`$46.80`

OpenShift Pods are summed up to the project level so that fractions of CPU/RAM
that some pods use will not get overcharged. There will be a split between CPU and
GPU pods, as GPU pods cannot currently share resources with CPU pods.
Expand Down

0 comments on commit 7da30b6

Please sign in to comment.