add config fields
This commit is contained in:
parent
29d7d63d65
commit
13a37f512b
|
@ -2472,6 +2472,25 @@ end}.
|
||||||
{mapping, "quorum_queue.compute_checksums", "rabbit.quorum_compute_checksums", [
|
{mapping, "quorum_queue.compute_checksums", "rabbit.quorum_compute_checksums", [
|
||||||
{datatype, {enum, [true, false]}}]}.
|
{datatype, {enum, [true, false]}}]}.
|
||||||
|
|
||||||
|
|
||||||
|
%%
|
||||||
|
%% Runtime parameters
|
||||||
|
%%
|
||||||
|
|
||||||
|
{mapping, "runtime_parameters.limits.$category", "rabbit.runtime_parameters.limits", [
|
||||||
|
{datatype, integer},
|
||||||
|
{validators, ["non_negative_integer"]}
|
||||||
|
]}.
|
||||||
|
|
||||||
|
{translation, "rabbit.runtime_parameters.limits",
|
||||||
|
fun(Conf) ->
|
||||||
|
case cuttlefish_variable:filter_by_prefix("runtime_parameters.limits", Conf) of
|
||||||
|
[] -> cuttlefish:unset();
|
||||||
|
Ss -> [ {list_to_binary(Category), Limit} || {[_, _, Category], Limit} <- Ss ]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
}.
|
||||||
|
|
||||||
% ===============================
|
% ===============================
|
||||||
% Validators
|
% Validators
|
||||||
% ===============================
|
% ===============================
|
||||||
|
|
|
@ -898,6 +898,21 @@ credential_validator.regexp = ^abc\\d+",
|
||||||
]}],
|
]}],
|
||||||
[]},
|
[]},
|
||||||
|
|
||||||
|
%%
|
||||||
|
%% Runtime parameters
|
||||||
|
%%
|
||||||
|
|
||||||
|
{runtime_parameters_limits,
|
||||||
|
"
|
||||||
|
runtime_parameters.limits.b = 2
|
||||||
|
runtime_parameters.limits.a = 1
|
||||||
|
",
|
||||||
|
[{rabbit, [{runtime_parameters, [{limits, [
|
||||||
|
{<<"a">>, 1},
|
||||||
|
{<<"b">>, 2}
|
||||||
|
]}]}]}],
|
||||||
|
[]},
|
||||||
|
|
||||||
%%
|
%%
|
||||||
%% Deprecated features
|
%% Deprecated features
|
||||||
%%
|
%%
|
||||||
|
|
Loading…
Reference in New Issue