[
https://issues.apache.org/jira/browse/HELIX-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13634291#comment-13634291
]
Shi Lu commented on HELIX-32:
-----------------------------
The user code can set _flappingTimeWindowMs and _maxDisconnectThreshold using
environment variable "helixmanager.flappingTimeWindow" and
"helixmanager.maxDisconnectThreshold".
Default values are 300000 millisec and 5 times. It means that if a helix
manager will disconnect itself from zookeeper if it has become disconnected 5
times in 5 minutes.
related code snippets in ZkHelixManager.java:
_flappingTimeWindowMs =
Integer.parseInt(System.getProperty("helixmanager.flappingTimeWindow", ""
+ FLAPPING_TIME_WINDIOW));
_maxDisconnectThreshold =
Integer.parseInt(System.getProperty("helixmanager.maxDisconnectThreshold", ""
+ MAX_DISCONNECT_THRESHOLD));
> Flapping detection: if a helix manager starts connect/disconnect frequently
> it should be disconnected
> -----------------------------------------------------------------------------------------------------
>
> Key: HELIX-32
> URL: https://issues.apache.org/jira/browse/HELIX-32
> Project: Apache Helix
> Issue Type: Improvement
> Affects Versions: 0.6.0-incubating
> Reporter: kishore gopalakrishna
> Assignee: Shi Lu
> Fix For: 0.6.1-incubating
>
>
> Now each helix manager created will remember its connect/disconnect history
> and if in certain time T, n disconnects has happened it will automatically
> disconnect from zookeeper.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira