aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValerij Fredriksen <valerijf@vespa.ai>2024-03-15 15:22:25 +0100
committerValerij Fredriksen <valerijf@vespa.ai>2024-03-15 15:22:25 +0100
commit5947543251cc684999ee32a1f491da9d1ef3b76d (patch)
tree38667fe43f4ce86a8b7559b90129decd334747f6
parent7fff3201b289b274038894f9144de8f68410772f (diff)
Define logserver resources for Azure
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/CapacityPolicies.java9
1 files changed, 6 insertions, 3 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 c78ad2b0da6..4337d2ac28b 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,7 +138,10 @@ public class CapacityPolicies {
}
private NodeResources logserverResources(Architecture architecture) {
- if (zone.cloud().name().equals(CloudName.GCP))
+ if (zone.cloud().name() == CloudName.AZURE)
+ return new NodeResources(2, 4, 50, 0.3);
+
+ if (zone.cloud().name() == CloudName.GCP)
return new NodeResources(1, 4, 50, 0.3);
return architecture == Architecture.arm64
@@ -161,14 +164,14 @@ public class CapacityPolicies {
// 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))
+ return zone.cloud().name() == CloudName.GCP
? new NodeResources(2, 8, 50, 0.3)
: new NodeResources(0.5, 8, 50, 0.3);
}
// 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))
+ return zone.cloud().name() == CloudName.GCP
? new NodeResources(1, 4, 50, 0.3)
: new NodeResources(0.5, 2, 50, 0.3);
}