Setting disk_free_limit.relative = 1.0
does not work
#1739
Replies: 1 comment 1 reply
-
This is working as intended. See rabbitmq/rabbitmq-server#6535 In summary, absolute takes precedence over relative. Relative in container environments can lead to surprising results, since the memory available to RabbitMQ is given by the cgroups. The cgroup reported memory depends on the kubernetes It is safer to set by default an absolute value of 2GB, which is 20% of the default PVC capacity claim, 10GB. If you'd like to change the limit, setting the absolute value accordingly to your PV capacity is the way to go. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I am following the production-ready example for setting up a RabbitMQ cluster.
When I set the
disk_free_limit.relative = 1.0
config inrabbitmq.additionalConfig
, the low disk water mark remains 2GB.To Reproduce
Create a new cluster with the Operator. The relevant snippet of the manifest:
rabbitmqctl eval 'application:get_env(rabbit, disk_free_limit).'
returns{ok,"2GB"}
Expected behavior
rabbitmqctl eval 'application:get_env(rabbit, disk_free_limit).'
should return{ok, {mem_relative,1.0}}
Screenshots
If applicable, add screenshots to help explain your problem.
Version and environment information
Additional context
I think this is related to #412.
disk_free_limit.absolute
is set in10-operatorDefaults.conf
When I set
disk_free_limit.relative
in90-userDefinedConfiguration.conf
, the absolute value is preferred by RabbitMQ.The above behaviour is documented here:
Beta Was this translation helpful? Give feedback.
All reactions