diff options
author | Nick Vatamaniuc <vatamane@apache.org> | 2017-12-08 11:47:56 -0500 |
---|---|---|
committer | Nick Vatamaniuc <vatamane@apache.org> | 2017-12-08 11:47:56 -0500 |
commit | edb7aeae1084fe659dfaf8ed7365035be64f0bc5 (patch) | |
tree | 7bcbe4b1858a56b3bcf9a95854a131aef56642f3 | |
parent | ac7a00cd9f654825e4a3bb39b7a07871598ecef6 (diff) | |
download | couchdb-configurable-cluster-stability-period.tar.gz |
Make rexi cluster stability timeout configurableconfigurable-cluster-stability-period
Also increase it to 5 minutes. This stability perioud was designed to clear
rexi buffers for nodes that are permanenlty gone. 15 seconds turns out can be
too short of a time say rolling upgrade of a cluster takes a while to restart
the nodes.
-rw-r--r-- | src/rexi/src/rexi_server_mon.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rexi/src/rexi_server_mon.erl b/src/rexi/src/rexi_server_mon.erl index 86fecaff6..e8e519187 100644 --- a/src/rexi/src/rexi_server_mon.erl +++ b/src/rexi/src/rexi_server_mon.erl @@ -67,7 +67,7 @@ cluster_stable(Server) -> init(ChildMod) -> {ok, _Mem3Cluster} = mem3_cluster:start_link(?MODULE, self(), - ?CLUSTER_STABILITY_PERIOD_SEC, ?CLUSTER_STABILITY_PERIOD_SEC), + cluster_stability_period(), cluster_stability_period()), {ok, ChildMod}. @@ -172,3 +172,7 @@ stop_server(ChildMod, ChildId) -> sup_module(ChildMod) -> list_to_atom(lists:concat([ChildMod, "_sup"])). + + +cluster_stability_period() -> + config:get_integer("rexi", "cluster_stability_period", 300). |