Skip to content

total_memory_available_override_value missing from rabbit.schema #1445

Closed
@tianon

Description

@tianon

It appears that during the conversion to rabbit.schema (and the new cuttlefish config) that total_memory_available_override_value got lost (from #1234).

I believe the following is roughly the schema block necessary, but saying that my Erlang is rusty would be a massive understatement: 😅

{mapping, "total_memory_available_override_value", "rabbit.total_memory_available_override_value", [
    {datatype, [integer, string]}]}.

(With both integer and string because it supports both a raw bytes value or a unit-ed value like 100M, as noted in the PR which was merged and the docs snippet which describes this value: https://github.com/rabbitmq/rabbitmq-website/blob/12939a7168e268b6ad3df7330b427e7fa27d552f/site/configure.xml#L887-L902,

%% The total memory available can be calculated from the OS resources
%% - default option - or provided as a configuration parameter:
%% {total_memory_available_override_value, "5000MB"},
)

  • RabbitMQ version: 3.7.0
  • Erlang version: 20.1.7
  • RabbitMQ server and client application log files
BOOT FAILED
===========

Config file generation failed 02:01:54.539 [error] You've tried to set total_memory_available_override_value, but there is no setting with that name.
02:01:54.539 [error]   Did you mean one of these?
02:01:54.572 [error]     memory_monitor_interval
02:01:54.573 [error]     vm_memory_calculation_strategy
02:01:54.573 [error]     vm_memory_high_watermark.absolute
02:01:54.574 [error] Error generating configuration in phase transform_datatypes
02:01:54.574 [error] Conf file attempted to set unknown variable: total_memory_available_override_value


BOOT FAILED
===========

Error description:
    rabbit:start_it/1 line 458
    rabbit:boot_error/2 line 858
    rabbit_lager:log_locations/0 line 43
    rabbit_lager:ensure_lager_configured/0 line 144
    rabbit_lager:lager_configured/0 line 151
    lager:list_all_sinks/0 line 317
    lager_config:get/2 line 71
    ets:lookup(lager_config, {'_global',handlers})
exit:generate_config_file
Log file(s) (may contain more information):

{"init terminating in do_boot",generate_config_file}
init terminating in do_boot (generate_config_file)

Crash dump is being written to: /var/log/rabbitmq/erl_crash.dump...done
  • A runnable code sample, terminal transcript or detailed set of
    instructions that can be used to reproduce the issue
$ grep total /etc/rabbitmq/rabbitmq.conf
total_memory_available_override_value = 2147483648

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions