From 8bff3e434a0121ee17fe170128acd205a91c4ec6 Mon Sep 17 00:00:00 2001 From: Yuan Date: Mon, 11 Mar 2024 15:09:48 -0700 Subject: [PATCH 1/3] add price info for n4 --- cluster-autoscaler/cloudprovider/gce/gce_price_info.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cluster-autoscaler/cloudprovider/gce/gce_price_info.go b/cluster-autoscaler/cloudprovider/gce/gce_price_info.go index f47c906c91a6..dd162cc5499e 100644 --- a/cluster-autoscaler/cloudprovider/gce/gce_price_info.go +++ b/cluster-autoscaler/cloudprovider/gce/gce_price_info.go @@ -82,6 +82,7 @@ var ( "n2d": 0.027502, "t2d": 0.027502, "z3": 0.04965, + "n4": 0.03082073, } predefinedMemoryPricePerHourPerGb = map[string]float64{ "a2": 0.004237, @@ -97,6 +98,7 @@ var ( "n2d": 0.003686, "t2d": 0.003686, "z3": 0.00666, + "n4": 0.004131075, } predefinedPreemptibleDiscount = map[string]float64{ "a2": 0.009483 / 0.031611, @@ -112,6 +114,7 @@ var ( "n2d": 0.002773 / 0.027502, "t2d": 0.006655 / 0.027502, "z3": 0.01986 / 0.04965, + "n4": 0.0079755 / 0.03082073, } customCpuPricePerHour = map[string]float64{ "e2": 0.022890, From 1e60778c45a78f8d52d18c0a3b2dbb8e2901f76b Mon Sep 17 00:00:00 2001 From: Yuan Date: Mon, 11 Mar 2024 15:27:09 -0700 Subject: [PATCH 2/3] update n4 price info format --- 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 dd162cc5499e..b4820d05bd0a 100644 --- a/cluster-autoscaler/cloudprovider/gce/gce_price_info.go +++ b/cluster-autoscaler/cloudprovider/gce/gce_price_info.go @@ -80,9 +80,9 @@ var ( "n1": 0.031611, "n2": 0.031611, "n2d": 0.027502, + "n4": 0.030821, "t2d": 0.027502, "z3": 0.04965, - "n4": 0.03082073, } predefinedMemoryPricePerHourPerGb = map[string]float64{ "a2": 0.004237, @@ -96,9 +96,9 @@ var ( "n1": 0.004237, "n2": 0.004237, "n2d": 0.003686, + "n4": 0.004131, "t2d": 0.003686, "z3": 0.00666, - "n4": 0.004131075, } predefinedPreemptibleDiscount = map[string]float64{ "a2": 0.009483 / 0.031611, @@ -112,9 +112,9 @@ var ( "n1": 0.006655 / 0.031611, "n2": 0.007650 / 0.031611, "n2d": 0.002773 / 0.027502, + "n4": 0.007976 / 0.030821, "t2d": 0.006655 / 0.027502, "z3": 0.01986 / 0.04965, - "n4": 0.0079755 / 0.03082073, } customCpuPricePerHour = map[string]float64{ "e2": 0.022890, From a6eb6822a42eb477ed08ed5cea5c180ab302c223 Mon Sep 17 00:00:00 2001 From: Yuan Date: Tue, 12 Mar 2024 10:49:46 -0700 Subject: [PATCH 3/3] fix n4 price format --- cluster-autoscaler/cloudprovider/gce/gce_price_info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster-autoscaler/cloudprovider/gce/gce_price_info.go b/cluster-autoscaler/cloudprovider/gce/gce_price_info.go index b4820d05bd0a..ccfcb85d6bdc 100644 --- a/cluster-autoscaler/cloudprovider/gce/gce_price_info.go +++ b/cluster-autoscaler/cloudprovider/gce/gce_price_info.go @@ -80,7 +80,7 @@ var ( "n1": 0.031611, "n2": 0.031611, "n2d": 0.027502, - "n4": 0.030821, + "n4": 0.030821, "t2d": 0.027502, "z3": 0.04965, }