Expose aten poll interval in rabbitmq.conf

as `raft.adaptive_failure_detector.poll_interval`.

On systems under peak load, inter-node communication link congestion
can result in false positives and trigger QQ leader re-elections that
are unnecessary and could make the situation worse.

Using a higher poll interval would at least reduce the probability of
false positives.

Per discussion with @kjnilsson @mkuratczyk.
This commit is contained in:
Michael Klishin 2022-12-12 16:45:45 +04:00
parent a2533a6de2
commit 8326ec3983
No known key found for this signature in database
GPG Key ID: E80EDCFA0CDB21EE
2 changed files with 21 additions and 0 deletions

View File

@ -2312,6 +2312,20 @@ end}.
end
}.
{mapping, "raft.adaptive_failure_detector.poll_interval", "aten.poll_interval", [
{datatype, integer},
{validators, ["non_zero_positive_integer"]}
]}.
{translation, "aten.poll_interval",
fun(Conf) ->
case cuttlefish:conf_get("raft.adaptive_failure_detector.poll_interval", Conf, undefined) of
undefined -> cuttlefish:unset();
Val -> Val
end
end
}.
%%
%% Backing queue version
%%

View File

@ -844,6 +844,13 @@ credential_validator.regexp = ^abc\\d+",
]}],
[]},
{raft_adaptive_failure_detector_poll_interval,
"raft.adaptive_failure_detector.poll_interval = 10000",
[{aten, [
{poll_interval, 10000}
]}],
[]},
%%
%% Backing queue version
%%