From 4ffc3ff840034355bd2ce51077aa0bf2f98785b5 Mon Sep 17 00:00:00 2001 From: Anish Shah Date: Thu, 15 Feb 2024 14:27:37 -0800 Subject: [PATCH 1/2] CA: GCE: add pricing for new Z3 machines --- cluster-autoscaler/cloudprovider/gce/gce_price_info.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cluster-autoscaler/cloudprovider/gce/gce_price_info.go b/cluster-autoscaler/cloudprovider/gce/gce_price_info.go index 5763c7cb02cc..ad0e3fa4e8af 100644 --- a/cluster-autoscaler/cloudprovider/gce/gce_price_info.go +++ b/cluster-autoscaler/cloudprovider/gce/gce_price_info.go @@ -81,6 +81,7 @@ var ( "n2": 0.031611, "n2d": 0.027502, "t2d": 0.027502, + "z3": 0.04965, } predefinedMemoryPricePerHourPerGb = map[string]float64{ "a2": 0.004237, @@ -95,6 +96,7 @@ var ( "n2": 0.004237, "n2d": 0.003686, "t2d": 0.003686, + "z3": 0.00666, } predefinedPreemptibleDiscount = map[string]float64{ "a2": 0.009483 / 0.031611, @@ -109,6 +111,7 @@ var ( "n2": 0.007650 / 0.031611, "n2d": 0.002773 / 0.027502, "t2d": 0.006655 / 0.027502, + "z3": 0.01986 / 0.04965, } customCpuPricePerHour = map[string]float64{ "e2": 0.022890, @@ -336,6 +339,8 @@ var ( "t2d-standard-32": 1.3519, "t2d-standard-48": 2.0278, "t2d-standard-60": 2.5348, + "z3-highmem-88": 13.0, + "z3-highmem-176": 22.06, } preemptiblePrices = map[string]float64{ "a2-highgpu-1g": 1.102016, @@ -513,6 +518,8 @@ var ( "t2d-standard-32": 0.3271, "t2d-standard-48": 0.4907, "t2d-standard-60": 0.6134, + "z3-highmem-88": 6.75, + "z3-highmem-176": 10.37, } gpuPrices = map[string]float64{ "nvidia-tesla-t4": 0.35, From cc7568090449e2c77835fbe41334dff1c8016931 Mon Sep 17 00:00:00 2001 From: Anish Shah Date: Sat, 2 Mar 2024 11:31:49 -0800 Subject: [PATCH 2/2] Update gce_price_info.go --- cluster-autoscaler/cloudprovider/gce/gce_price_info.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cluster-autoscaler/cloudprovider/gce/gce_price_info.go b/cluster-autoscaler/cloudprovider/gce/gce_price_info.go index ad0e3fa4e8af..f47c906c91a6 100644 --- a/cluster-autoscaler/cloudprovider/gce/gce_price_info.go +++ b/cluster-autoscaler/cloudprovider/gce/gce_price_info.go @@ -340,7 +340,7 @@ var ( "t2d-standard-48": 2.0278, "t2d-standard-60": 2.5348, "z3-highmem-88": 13.0, - "z3-highmem-176": 22.06, + "z3-highmem-176": 22.05, } preemptiblePrices = map[string]float64{ "a2-highgpu-1g": 1.102016, @@ -518,8 +518,8 @@ var ( "t2d-standard-32": 0.3271, "t2d-standard-48": 0.4907, "t2d-standard-60": 0.6134, - "z3-highmem-88": 6.75, - "z3-highmem-176": 10.37, + "z3-highmem-88": 5.2, + "z3-highmem-176": 8.82, } gpuPrices = map[string]float64{ "nvidia-tesla-t4": 0.35,