Skip to content

Commit b1a4874

Browse files
Add config schema entry for total_memory_available_override_value
Closes #1445. [#153501620] (cherry picked from commit 314f68b)
1 parent ce6c812 commit b1a4874

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

docs/rabbitmq.conf.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@
295295
##
296296
# memory_monitor_interval = 2500
297297

298+
## The total memory available can be calculated from the OS resources
299+
## - default option - or provided as a configuration parameter.
300+
# total_memory_available_override_value = 2GB
301+
298302
## Set disk free limit (in bytes). Once free disk space reaches this
299303
## lower bound, a disk alarm will be set - see the documentation
300304
## listed above for more details.

priv/schema/rabbit.schema

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,11 @@ end}.
713713
{mapping, "vm_memory_calculation_strategy", "rabbit.vm_memory_calculation_strategy",
714714
[{datatype, {enum, [rss, erlang, allocated, legacy]}}]}.
715715

716+
%% The total memory available can be calculated from the OS resources
717+
%% (default option) or provided as a configuration parameter
718+
{mapping, "total_memory_available_override_value", "rabbit.total_memory_available_override_value", [
719+
{datatype, [integer, string]}]}.
720+
716721
%% Set disk free limit (in bytes). Once free disk space reaches this
717722
%% lower bound, a disk alarm will be set - see the documentation
718723
%% listed above for more details.

test/config_schema_SUITE_data/rabbit.snippets

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,14 @@ tcp_listen_options.exit_on_close = false",
151151
[{rabbit,
152152
[{vm_memory_calculation_strategy, legacy}]}],
153153
[]},
154+
{total_memory_available_override_value,
155+
"total_memory_available_override_value = 1000000000",
156+
[{rabbit,[{total_memory_available_override_value, 1000000000}]}],
157+
[]},
158+
{total_memory_available_override_value_units,
159+
"total_memory_available_override_value = 1024MB",
160+
[{rabbit,[{total_memory_available_override_value, "1024MB"}]}],
161+
[]},
154162
{connection_max,
155163
"connection_max = 999",
156164
[{rabbit,[{connection_max, 999}]}],

0 commit comments

Comments
 (0)