diff options
author | Harald Musum <musum@oath.com> | 2018-09-20 10:50:20 +0200 |
---|---|---|
committer | olaaun <ola.aunroe@gmail.com> | 2018-09-20 10:50:20 +0200 |
commit | 88410610fdc766ecfdcbe3020f9ecdb335c1587e (patch) | |
tree | ddd2144b286567974843a2cca5c91f3643979209 /config-model/src/main/java/com/yahoo/config | |
parent | d94350c19c8e75c79405c967c427df9e832e0b6f (diff) |
Add feature flag for using dedicated node for logserver (#7023)
Diffstat (limited to 'config-model/src/main/java/com/yahoo/config')
-rw-r--r-- | config-model/src/main/java/com/yahoo/config/model/deploy/DeployProperties.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/config-model/src/main/java/com/yahoo/config/model/deploy/DeployProperties.java b/config-model/src/main/java/com/yahoo/config/model/deploy/DeployProperties.java index 53c70399e94..9d9a19bfbd6 100644 --- a/config-model/src/main/java/com/yahoo/config/model/deploy/DeployProperties.java +++ b/config-model/src/main/java/com/yahoo/config/model/deploy/DeployProperties.java @@ -27,6 +27,8 @@ public class DeployProperties { private final Version vespaVersion; private final boolean isBootstrap; private final boolean isFirstTimeDeployment; + private final boolean useDedicatedNodeForLogserver; + private DeployProperties(boolean multitenant, ApplicationId applicationId, @@ -37,7 +39,8 @@ public class DeployProperties { String athenzDnsSuffix, Version vespaVersion, boolean isBootstrap, - boolean isFirstTimeDeployment) { + boolean isFirstTimeDeployment, + boolean useDedicatedNodeForLogserver) { this.loadBalancerName = loadBalancerName; this.ztsUrl = ztsUrl; this.athenzDnsSuffix = athenzDnsSuffix; @@ -48,6 +51,7 @@ public class DeployProperties { this.hostedVespa = hostedVespa; this.isBootstrap = isBootstrap; this.isFirstTimeDeployment = isFirstTimeDeployment; + this.useDedicatedNodeForLogserver = useDedicatedNodeForLogserver; } public boolean multitenant() { @@ -89,6 +93,8 @@ public class DeployProperties { /** Returns whether this is the first deployment for this application (used during *prepare*, not set on activate) */ public boolean isFirstTimeDeployment() { return isFirstTimeDeployment; } + public boolean useDedicatedNodeForLogserver() { return useDedicatedNodeForLogserver; } + public static class Builder { private ApplicationId applicationId = ApplicationId.defaultId(); @@ -101,6 +107,7 @@ public class DeployProperties { private Version vespaVersion = Version.fromIntValues(1, 0, 0); private boolean isBootstrap = false; private boolean isFirstTimeDeployment = false; + private boolean useDedicatedNodeForLogserver = false; public Builder applicationId(ApplicationId applicationId) { this.applicationId = applicationId; @@ -152,9 +159,15 @@ public class DeployProperties { return this; } + public Builder useDedicatedNodeForLogserver(boolean useDedicatedNodeForLogserver) { + this.useDedicatedNodeForLogserver = useDedicatedNodeForLogserver; + return this; + } + public DeployProperties build() { return new DeployProperties(multitenant, applicationId, configServerSpecs, loadBalancerName, hostedVespa, - ztsUrl, athenzDnsSuffix, vespaVersion, isBootstrap, isFirstTimeDeployment); + ztsUrl, athenzDnsSuffix, vespaVersion, isBootstrap, isFirstTimeDeployment, + useDedicatedNodeForLogserver); } } |