diff options
author | Arne H Juul <arnej@yahooinc.com> | 2021-11-15 13:13:21 +0000 |
---|---|---|
committer | Arne H Juul <arnej@yahooinc.com> | 2021-11-15 13:13:21 +0000 |
commit | 159dc93308eccd375ea33f3bf6d3d6ab1f5813fc (patch) | |
tree | e243dc1104933301fb2778db41575c7741598373 /config-model | |
parent | 776f0ec4a9ddc44e492a7eeb9f82f914bbdf4709 (diff) |
ignore requested stack sizes
* for C++ threads only
* triggered by feature flag, by default use old behavior
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/ConfigSentinel.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/ConfigSentinel.java b/config-model/src/main/java/com/yahoo/vespa/model/ConfigSentinel.java index c86cda0bbd1..217f6cff778 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/ConfigSentinel.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/ConfigSentinel.java @@ -19,6 +19,7 @@ public class ConfigSentinel extends AbstractService implements SentinelConfig.Pr private final ApplicationId applicationId; private final Zone zone; + private final boolean ignoreRequestedStackSizes; /** * Constructs a new ConfigSentinel for the given host. @@ -31,6 +32,7 @@ public class ConfigSentinel extends AbstractService implements SentinelConfig.Pr super(host, "sentinel"); this.applicationId = applicationId; this.zone = zone; + this.ignoreRequestedStackSizes = featureFlags.ignoreThreadStackSizes(); portsMeta.on(0).tag("rpc").tag("admin"); portsMeta.on(1).tag("telnet").tag("interactive").tag("http").tag("state"); setProp("clustertype", "hosts"); @@ -73,6 +75,7 @@ public class ConfigSentinel extends AbstractService implements SentinelConfig.Pr @Override public void getConfig(SentinelConfig.Builder builder) { builder.application(getApplicationConfig()); + builder.ignoreRequestedStackSizes(ignoreRequestedStackSizes); for (Service s : getHostResource().getServices()) { if (s.getStartupCommand() != null) { builder.service(getServiceConfig(s)); |