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:
parent
04757e5864
commit
61df174e8b
@ -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";
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user