[GitHub] [hbase] apurtell commented on a change in pull request #1748: HBASE-22700 (addendum): Clarify ZK session timeout doc

2020-05-26 Thread GitBox


apurtell commented on a change in pull request #1748:
URL: https://github.com/apache/hbase/pull/1748#discussion_r430742337



##
File path: src/main/asciidoc/_chapters/schema_design.adoc
##
@@ -1142,7 +1142,11 @@ Disable Nagle’s algorithm. Delayed ACKs can add up to 
~200ms to RPC round trip
 Detect regionserver failure as fast as reasonable. Set the following 
parameters:
 
 * 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.

Review comment:
   What are these? Milliseconds? We have to assume it otherwise, so why not 
mention it? 





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [hbase] apurtell commented on a change in pull request #1748: HBASE-22700 (addendum): Clarify ZK session timeout doc

2020-05-20 Thread GitBox


apurtell commented on a change in pull request #1748:
URL: https://github.com/apache/hbase/pull/1748#discussion_r428293305



##
File path: src/main/asciidoc/_chapters/schema_design.adoc
##
@@ -1142,7 +1142,10 @@ Disable Nagle’s algorithm. Delayed ACKs can add up to 
~200ms to RPC round trip
 Detect regionserver failure as fast as reasonable. Set the following 
parameters:
 
 * 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

Review comment:
   You should also explain what `minSessionTimeout` and `maxSessionTimeout` 
offer in alternative. 





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org