HBASE-1997 zk tick time bounds maximum zk session time

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@883190 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-11-22 23:39:18 +00:00
parent 41bfe09a49
commit e7ee750f6c
2 changed files with 13 additions and 6 deletions

View File

@ -116,6 +116,7 @@ Release 0.21.0 - Unreleased
Purtell)
HBASE-1999 When HTable goes away, close zk session in shutdown hook or
something...
HBASE-1997 zk tick time bounds maximum zk session time
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -386,10 +386,15 @@
<property>
<name>zookeeper.session.timeout</name>
<value>60000</value>
<description>ZooKeeper session timeout. This option is not used by HBase
directly, it is for the internals of ZooKeeper. HBase merely passes it in
whenever a connection is established to ZooKeeper. It is used by ZooKeeper
for hearbeats. In milliseconds.
<description>ZooKeeper session timeout.
HBase passes this to the zk quorum as suggested maximum time for a
session. See http://hadoop.apache.org/zookeeper/docs/current/zookeeperProgrammers.html#ch_zkSessions
"The client sends a requested timeout, the server responds with the
timeout that it can give the client. The current implementation
requires that the timeout be a minimum of 2 times the tickTime
(as set in the server configuration) and a maximum of 20 times
the tickTime." Set the zk ticktime with hbase.zookeeper.property.tickTime.
In milliseconds.
</description>
</property>
<property>
@ -472,9 +477,10 @@
-->
<property>
<name>hbase.zookeeper.property.tickTime</name>
<value>2000</value>
<value>3000</value>
<description>Property from ZooKeeper's config zoo.cfg.
The number of milliseconds of each tick.
The number of milliseconds of each tick. See
zookeeper.session.timeout description.
</description>
</property>
<property>