diff options
author | Jon Bratseth <bratseth@gmail.com> | 2019-10-08 15:28:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-08 15:28:10 +0200 |
commit | 1aff2b05c62c10669d6f8a5c2a0680ad8a334311 (patch) | |
tree | 04f9db6b24ac9a4a4a6d67a8f23a9ac35ef7c38c /container-core/src | |
parent | 0514a2a133a194f5e9454fcc60e56d01730f9019 (diff) |
Revert "Bratseth/instances in deployment xml rebased take 2"
Diffstat (limited to 'container-core/src')
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java b/container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java index eceffb379aa..a37255436ca 100644 --- a/container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java +++ b/container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java @@ -31,12 +31,16 @@ import com.yahoo.vespa.defaults.Defaults; */ public final class VipStatusHandler extends ThreadedHttpRequestHandler { + private static final Logger log = Logger.getLogger(VipStatusHandler.class.getName()); + private static final String NUM_REQUESTS_METRIC = "jdisc.http.requests.status"; private final boolean accessDisk; private final File statusFile; private final VipStatus vipStatus; + private volatile boolean previouslyInRotation = true; + // belongs in the response, but that's not a static class static final String OK_MESSAGE = "<title>OK</title>\n"; static final byte[] VIP_OK = Utf8.toBytes(OK_MESSAGE); @@ -158,7 +162,6 @@ public final class VipStatusHandler extends ThreadedHttpRequestHandler { * out of capacity. This is the default behavior. */ @Inject - @SuppressWarnings("unused") // injected public VipStatusHandler(VipStatusConfig vipConfig, Metric metric, VipStatus vipStatus) { // One thread should be enough for status handling - otherwise something else is completely wrong, // in which case this will eventually start returning a 503 (due to work rejection) as the bounded |