Hi All,
I have a question about the autodetection of Docker memory limits, which seems to work with RabbitMQ 3.8, but not with 3.9.
Previously, the docker images of RabbitMQ 3.8 were able to detect the Docker memory limits. For example, doing:
>> docker pull rabbitmq:3.8-management
>> docker create --name "rabbitmq_local" -p 5672:5672 -p 15672:15672 --memory "1g" rabbitmq:3.8-management
>> docker start rabbitmq_local
Would start RabbitMQ, and in the management interface, the high memory watermark would be nicely set to 410MB.
However, doing the above commands, but replacing 3.8 with 3.9, would set the high memory watermark to 12GB, which is 0.4 of my total machine memory. It seems like version 3.9 doesn't detect the correct (cgroup) memory limits (anymore ?). Since I cannot find anything about this in the release notes, I'm wondering if this is a bug.
My current workaround is to build the docker image with a custom configuration file, and setting 'total_memory_available_override_value'.
However, I quite dislike having the memory limits already hardcoded in my images, rather than the memory limits being set when the container is created. Is there any way to enable the detection of the correct memory limits for RabbitMQ 3.9?
Thanks in advance!
Best regards,
Tom Brouwer