Skip to content

Commit 65ede2d

Browse files
authored
Merge pull request #5070 from towca/jtuznik/a2-plus
CA: GCE: add pricing for new A2 shapes and GPUs
2 parents f733654 + b240288 commit 65ede2d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

cluster-autoscaler/cloudprovider/gce/gce_price_info.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type PriceInfo interface {
5858
const hoursInMonth = float64(24 * 30)
5959

6060
const (
61-
//TODO: Move it to a config file.
61+
// TODO: Move it to a config file.
6262
cpuPricePerHour = 0.033174
6363
memoryPricePerHourPerGb = 0.004446
6464
preemptibleDiscount = 0.00698 / 0.033174
@@ -130,6 +130,10 @@ var (
130130
"a2-highgpu-4g": 14.69354,
131131
"a2-highgpu-8g": 29.38708,
132132
"a2-megagpu-16g": 55.739504,
133+
"a2-ultragpu-1g": 5.0688,
134+
"a2-ultragpu-2g": 10.1376,
135+
"a2-ultragpu-4g": 20.2752,
136+
"a2-ultragpu-8g": 40.5504,
133137
"c2-standard-4": 0.2088,
134138
"c2-standard-8": 0.4176,
135139
"c2-standard-16": 0.8352,
@@ -280,6 +284,10 @@ var (
280284
"a2-highgpu-4g": 4.408062,
281285
"a2-highgpu-8g": 8.816124,
282286
"a2-megagpu-16g": 16.721851,
287+
"a2-ultragpu-1g": 1.6,
288+
"a2-ultragpu-2g": 3.2,
289+
"a2-ultragpu-4g": 6.4,
290+
"a2-ultragpu-8g": 12.8,
283291
"c2-standard-4": 0.0505,
284292
"c2-standard-8": 0.1011,
285293
"c2-standard-16": 0.2021,
@@ -428,6 +436,7 @@ var (
428436
"nvidia-tesla-p100": 1.46,
429437
"nvidia-tesla-k80": 0.45,
430438
"nvidia-tesla-a100": 0, // price of this gpu is counted into A2 machine-type price
439+
"nvidia-a100-80gb": 0, // price of this gpu is counted into A2 machine-type price
431440
}
432441
preemptibleGpuPrices = map[string]float64{
433442
"nvidia-tesla-t4": 0.11,
@@ -436,6 +445,7 @@ var (
436445
"nvidia-tesla-p100": 0.43,
437446
"nvidia-tesla-k80": 0.037500,
438447
"nvidia-tesla-a100": 0, // price of this gpu is counted into A2 machine-type price
448+
"nvidia-a100-80gb": 0, // price of this gpu is counted into A2 machine-type price
439449
}
440450
bootDiskPricePerHour = map[string]float64{
441451
"pd-standard": 0.04 / hoursInMonth,

0 commit comments

Comments
 (0)