aboutsummaryrefslogtreecommitdiffstats
path: root/node-repository
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2023-06-06 19:28:02 +0200
committerGitHub <noreply@github.com>2023-06-06 19:28:02 +0200
commita39bef6fefc6838a7d56eae5233fa7c122c02bc5 (patch)
treef64770612e2d689bf49440a677df5abc51c5c3ba /node-repository
parent818cee89d04f90a61b8c02cea67521d1374de31d (diff)
parente82d45ae6180ccf9dd4194295d5a24bd373e120c (diff)
Merge pull request #27313 from vespa-engine/hmusum/remove-unused-node-resources-for-cluster-controller
Remove default node resources for versions that are not in use anymore
Diffstat (limited to 'node-repository')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/CapacityPolicies.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/CapacityPolicies.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/CapacityPolicies.java
index f8303761b3f..5b3570a3dfa 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/CapacityPolicies.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/CapacityPolicies.java
@@ -138,10 +138,7 @@ public class CapacityPolicies {
// 1.32-(0.7+0.6)*(1.32/8) = 1.1 Gb real memory given current taxes.
if (architecture == Architecture.x86_64)
return versioned(clusterSpec, Map.of(new Version(0), new NodeResources(0.25, 1.14, 10, 0.3),
- new Version(8, 129, 4), new NodeResources(0.25, 1.32, 10, 0.3),
- // TODO: Remove the two entries below when no version between 8.173.5 and 8.173.12 is in use
- new Version(8, 173, 5), new NodeResources(0.25, 1.50, 10, 0.3),
- new Version(8, 173, 12), new NodeResources(0.25, 1.32, 10, 0.3)));
+ new Version(8, 129, 4), new NodeResources(0.25, 1.32, 10, 0.3)));
else
// arm64 nodes need more memory
return versioned(clusterSpec, Map.of(new Version(0), new NodeResources(0.25, 1.14, 10, 0.3),
@@ -160,14 +157,14 @@ public class CapacityPolicies {
.getValue();
}
- // The lowest amount resources that can be exclusive allocated (i.e. a matching host flavor for this exists)
+ // The lowest amount of resources that can be exclusive allocated (i.e. a matching host flavor for this exists)
private NodeResources smallestExclusiveResources() {
return (zone.cloud().name().equals(CloudName.GCP))
? new NodeResources(1, 4, 50, 0.3)
: new NodeResources(0.5, 4, 50, 0.3);
}
- // The lowest amount resources that can be shared (i.e. a matching host flavor for this exists)
+ // The lowest amount of resources that can be shared (i.e. a matching host flavor for this exists)
private NodeResources smallestSharedResources() {
return (zone.cloud().name().equals(CloudName.GCP))
? new NodeResources(1, 4, 50, 0.3)