HADOOP-15449. Increase default timeout of ZK session to avoid frequent NameNode failover

Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
Karthik Palanisamy 2018-05-28 19:41:07 +09:00 committed by Akira Ajisaka
parent 04757e5864
commit 61df174e8b
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public abstract class ZKFailoverController {
public static final String ZK_QUORUM_KEY = "ha.zookeeper.quorum"; public static final String ZK_QUORUM_KEY = "ha.zookeeper.quorum";
private static final String ZK_SESSION_TIMEOUT_KEY = "ha.zookeeper.session-timeout.ms"; private static final String ZK_SESSION_TIMEOUT_KEY = "ha.zookeeper.session-timeout.ms";
private static final int ZK_SESSION_TIMEOUT_DEFAULT = 5*1000; private static final int ZK_SESSION_TIMEOUT_DEFAULT = 10*1000;
private static final String ZK_PARENT_ZNODE_KEY = "ha.zookeeper.parent-znode"; private static final String ZK_PARENT_ZNODE_KEY = "ha.zookeeper.parent-znode";
public static final String ZK_ACL_KEY = "ha.zookeeper.acl"; public static final String ZK_ACL_KEY = "ha.zookeeper.acl";
private static final String ZK_ACL_DEFAULT = "world:anyone:rwcda"; private static final String ZK_ACL_DEFAULT = "world:anyone:rwcda";

View File

@ -2168,7 +2168,7 @@
<property> <property>
<name>ha.zookeeper.session-timeout.ms</name> <name>ha.zookeeper.session-timeout.ms</name>
<value>5000</value> <value>10000</value>
<description> <description>
The session timeout to use when the ZKFC connects to ZooKeeper. The session timeout to use when the ZKFC connects to ZooKeeper.
Setting this value to a lower value implies that server crashes Setting this value to a lower value implies that server crashes