Uh oh!
There was an error while loading. Please reload this page.
HBASE-22700 (addendum): Clarify ZK session timeout doc - #1748
Conversation
bharathv
commented
May 20, 2020
I stumbled up on this because a colleague of mine got confused with the wording. I think its good to clarify this. I created an addendum commit since the change is minor and very much relevant to the original jira created for this purpose. Let me know if anyone thinks I should create a separate jira for this. |
Apache-HBase
commented
May 20, 2020
🎊 +1 overall
This message was automatically generated. |
Uh oh!
There was an error while loading. Please reload this page.
| * In `hbase-site.xml`, set `zookeeper.session.timeout` to 30 seconds or less to bound failure detection (20-30 seconds is a good start). | ||
| - Notice: the `sessionTimeout` of zookeeper is limited between 2 times and 20 times the `tickTime`(the basic time unit in milliseconds used by ZooKeeper.the default value is 2000ms.It is used to do heartbeats and the minimum session timeout will be twice the tickTime). | ||
| - Note: Zookeeper clients negotiate a session timeout with the server during client init. Server enforces this timeout to be in the | ||
| range of 2 times `tickTime` and 20 times `tickTime` unless `minSessionTimeout` and `maxSessionTimeout` are configured in the Zookeeper |
There was a problem hiding this comment.
You should also explain what minSessionTimeout and maxSessionTimeout offer in alternative.
There was a problem hiding this comment.
Reworded it slightly, LMKWYT.
Apache-HBase
commented
May 20, 2020
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
May 20, 2020
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
May 20, 2020
🎊 +1 overall
This message was automatically generated. |
HorizonNet
left a comment
There was a problem hiding this comment.
Fine with me after Andrews comment is addressed.
Apache-HBase
commented
May 21, 2020
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
May 21, 2020
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
May 21, 2020
🎊 +1 overall
This message was automatically generated. |
| * In `hbase-site.xml`, set `zookeeper.session.timeout` to 30 seconds or less to bound failure detection (20-30 seconds is a good start). | ||
| - Notice: the `sessionTimeout` of zookeeper is limited between 2 times and 20 times the `tickTime`(the basic time unit in milliseconds used by ZooKeeper.the default value is 2000ms.It is used to do heartbeats and the minimum session timeout will be twice the tickTime). | ||
| - Note: Zookeeper clients negotiate a session timeout with the server during client init. Server enforces this timeout to be in the | ||
| range [`minSessionTimeout`, `maxSessionTimeout`] and both these timeouts are configurable in Zookeeper service configuration. |
There was a problem hiding this comment.
What are these? Milliseconds? We have to assume it otherwise, so why not mention it?
The current wording gives an impression the session timeout range on the ZK side is forced to be in the range [2 * tickTime, 20 * tickTime]. This range is configurable on the ZK service side using minSessionTimeout and maxSessionTimeout. Clarified that.
Apache-HBase
commented
May 27, 2020
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
May 27, 2020
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
May 27, 2020
🎊 +1 overall
This message was automatically generated. |
The current wording gives an impression the session timeout range
on the ZK side is forced to be in the range [2 * tickTime, 20 * tickTime].
This range is configurable on the ZK service side using minSessionTimeout
and maxSessionTimeout. Clarified that.