diff options
author | Harald Musum <musum@verizonmedia.com> | 2021-07-10 16:02:04 +0200 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2021-07-10 16:02:04 +0200 |
commit | 68157c66225055e7e36248afc8a2c3ba1f5ab26a (patch) | |
tree | 8eb9f01e49e36bf8eb523f522b9dc8fc9169d4a3 /zkfacade | |
parent | 5376fe6a6d8b8b875f272f1fba131a847ac6a65c (diff) |
Increase session timeout
30 seconds seem to be too little with heavily loaded servers and/or
slow disks
Diffstat (limited to 'zkfacade')
-rw-r--r-- | zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java b/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java index 9a6ef3f74f1..44a2d0ad29d 100644 --- a/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java +++ b/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java @@ -1,4 +1,4 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.curator; import com.google.inject.Inject; @@ -54,7 +54,7 @@ public class Curator implements VespaCurator, AutoCloseable { private static final Logger LOG = Logger.getLogger(Curator.class.getName()); private static final File ZK_CLIENT_CONFIG_FILE = new File(Defaults.getDefaults().underVespaHome("conf/zookeeper/zookeeper-client.cfg")); - private static final Duration ZK_SESSION_TIMEOUT = Duration.ofSeconds(30); + private static final Duration ZK_SESSION_TIMEOUT = Duration.ofSeconds(60); private static final Duration ZK_CONNECTION_TIMEOUT = Duration.ofSeconds(30); private static final Duration BASE_SLEEP_TIME = Duration.ofSeconds(1); private static final int MAX_RETRIES = 10; |