Support recently introduced Ra WAL settings in rabbitmq.conf

This commit is contained in:
Michael Klishin 2020-09-10 19:50:53 +03:00
parent 931f7d4fbc
commit a6a73a8888
No known key found for this signature in database
GPG Key ID: E80EDCFA0CDB21EE
1 changed files with 28 additions and 0 deletions

View File

@ -1646,6 +1646,34 @@ end}.
end
}.
{mapping, "raft.wal_max_entries", "ra.wal_max_entries", [
{datatype, integer},
{validators, ["non_zero_positive_integer"]}
]}.
{translation, "ra.wal_max_entries",
fun(Conf) ->
case cuttlefish:conf_get("raft.wal_max_entries", Conf, undefined) of
undefined -> cuttlefish:unset();
Val -> Val
end
end
}.
{mapping, "raft.wal_hibernate_after", "ra.wal_hibernate_after", [
{datatype, integer},
{validators, ["non_zero_positive_integer"]}
]}.
{translation, "ra.wal_hibernate_after",
fun(Conf) ->
case cuttlefish:conf_get("raft.wal_hibernate_after", Conf, undefined) of
undefined -> cuttlefish:unset();
Val -> Val
end
end
}.
{mapping, "raft.wal_max_batch_size", "ra.wal_max_batch_size", [
{datatype, integer},
{validators, ["non_zero_positive_integer"]}