Add total_memory_available_override_value support in 3.7
This commit is contained in:
parent
ede7f3f506
commit
dc9451b8f9
|
|
@ -285,8 +285,7 @@ if [ "$1" = 'rabbitmq-server' ] && [ "$shouldWriteConfig" ]; then
|
||||||
if [ -n "$memLimitB" ]; then
|
if [ -n "$memLimitB" ]; then
|
||||||
# if we have a cgroup memory limit, let's inform RabbitMQ of what it is (so it can calculate vm_memory_high_watermark properly)
|
# if we have a cgroup memory limit, let's inform RabbitMQ of what it is (so it can calculate vm_memory_high_watermark properly)
|
||||||
# https://github.com/rabbitmq/rabbitmq-server/pull/1234
|
# https://github.com/rabbitmq/rabbitmq-server/pull/1234
|
||||||
: # TODO rabbit_set_config 'total_memory_available_override_value' "$memLimitB"
|
rabbit_set_config 'total_memory_available_override_value' "$memLimitB"
|
||||||
# TODO https://github.com/rabbitmq/rabbitmq-server/issues/1445 (missing in 3.7.0)
|
|
||||||
fi
|
fi
|
||||||
# https://www.rabbitmq.com/memory.html#memsup-usage
|
# https://www.rabbitmq.com/memory.html#memsup-usage
|
||||||
if [ "${RABBITMQ_VM_MEMORY_HIGH_WATERMARK:-}" ]; then
|
if [ "${RABBITMQ_VM_MEMORY_HIGH_WATERMARK:-}" ]; then
|
||||||
|
|
|
||||||
|
|
@ -285,8 +285,7 @@ if [ "$1" = 'rabbitmq-server' ] && [ "$shouldWriteConfig" ]; then
|
||||||
if [ -n "$memLimitB" ]; then
|
if [ -n "$memLimitB" ]; then
|
||||||
# if we have a cgroup memory limit, let's inform RabbitMQ of what it is (so it can calculate vm_memory_high_watermark properly)
|
# if we have a cgroup memory limit, let's inform RabbitMQ of what it is (so it can calculate vm_memory_high_watermark properly)
|
||||||
# https://github.com/rabbitmq/rabbitmq-server/pull/1234
|
# https://github.com/rabbitmq/rabbitmq-server/pull/1234
|
||||||
: # TODO rabbit_set_config 'total_memory_available_override_value' "$memLimitB"
|
rabbit_set_config 'total_memory_available_override_value' "$memLimitB"
|
||||||
# TODO https://github.com/rabbitmq/rabbitmq-server/issues/1445 (missing in 3.7.0)
|
|
||||||
fi
|
fi
|
||||||
# https://www.rabbitmq.com/memory.html#memsup-usage
|
# https://www.rabbitmq.com/memory.html#memsup-usage
|
||||||
if [ "${RABBITMQ_VM_MEMORY_HIGH_WATERMARK:-}" ]; then
|
if [ "${RABBITMQ_VM_MEMORY_HIGH_WATERMARK:-}" ]; then
|
||||||
|
|
|
||||||
|
|
@ -285,8 +285,7 @@ if [ "$1" = 'rabbitmq-server' ] && [ "$shouldWriteConfig" ]; then
|
||||||
if [ -n "$memLimitB" ]; then
|
if [ -n "$memLimitB" ]; then
|
||||||
# if we have a cgroup memory limit, let's inform RabbitMQ of what it is (so it can calculate vm_memory_high_watermark properly)
|
# if we have a cgroup memory limit, let's inform RabbitMQ of what it is (so it can calculate vm_memory_high_watermark properly)
|
||||||
# https://github.com/rabbitmq/rabbitmq-server/pull/1234
|
# https://github.com/rabbitmq/rabbitmq-server/pull/1234
|
||||||
: # TODO rabbit_set_config 'total_memory_available_override_value' "$memLimitB"
|
rabbit_set_config 'total_memory_available_override_value' "$memLimitB"
|
||||||
# TODO https://github.com/rabbitmq/rabbitmq-server/issues/1445 (missing in 3.7.0)
|
|
||||||
fi
|
fi
|
||||||
# https://www.rabbitmq.com/memory.html#memsup-usage
|
# https://www.rabbitmq.com/memory.html#memsup-usage
|
||||||
if [ "${RABBITMQ_VM_MEMORY_HIGH_WATERMARK:-}" ]; then
|
if [ "${RABBITMQ_VM_MEMORY_HIGH_WATERMARK:-}" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue