diff options
author | kjnilsson <knilsson@pivotal.io> | 2020-09-18 09:39:52 +0100 |
---|---|---|
committer | kjnilsson <knilsson@pivotal.io> | 2020-09-18 09:39:52 +0100 |
commit | 2f6fe72e6395f466d489ce2cf8c1383915f6945e (patch) | |
tree | 1dd636847c605c6cc8d040af5cf46e2dfa79089c | |
parent | 8f75eb5e984dea13ceaff075b40712e5ac1ace84 (diff) | |
download | rabbitmq-server-git-aten-poll-interval.tar.gz |
Increase aten poll intervalaten-poll-interval
A longer interval will reduce the likely hood that unnecessary leader
elections are triggered in quorum queues due to transient network
issues. This increases it from the default of 1s to 5s which increases
the time it takes to detect genuine network partitions somewhat. Ra still uses
monitors so connection failures will not have to wait this additional
time.
-rw-r--r-- | apps/rabbitmq_prelaunch/src/rabbit_prelaunch_conf.erl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/rabbitmq_prelaunch/src/rabbit_prelaunch_conf.erl b/apps/rabbitmq_prelaunch/src/rabbit_prelaunch_conf.erl index 4e19547229..732c04dbaa 100644 --- a/apps/rabbitmq_prelaunch/src/rabbit_prelaunch_conf.erl +++ b/apps/rabbitmq_prelaunch/src/rabbit_prelaunch_conf.erl @@ -90,6 +90,15 @@ set_default_config() -> {wal_max_size_bytes, 536870912}, %% 5 * 2 ^ 20 {wal_max_batch_size, 4096} ]}, + {aten, + [ + %% a greater poll interval has shown to trigger fewer false + %% positive leader elections in quorum queues. The cost is slightly + %% longer detection time when a genuine network issue occurs. + %% Ra still uses erlang monitors of course so whenever a connection + %% goes down it is still immediately detected + {poll_interval, 5000} + ]}, {sysmon_handler, [{process_limit, 100}, {port_limit, 100}, |