From 5947543251cc684999ee32a1f491da9d1ef3b76d Mon Sep 17 00:00:00 2001 From: Valerij Fredriksen Date: Fri, 15 Mar 2024 15:22:25 +0100 Subject: Define logserver resources for Azure --- .../vespa/hosted/provision/provisioning/CapacityPolicies.java | 9 ++++++--- 1 file 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); } -- cgit v1.2.3