Enable addition of default consumer prefetch count

Change-Id: Ib1e29be00ec6accf78a01c4931d62fadf1ea28a3
Signed-off-by: Anselme, Schubert (sa246v) <sa246v@att.com>
This commit is contained in:
Anselme, Schubert (sa246v) 2023-12-22 09:28:36 -05:00
parent d7a45a864a
commit 7532c7700e
No known key found for this signature in database
GPG Key ID: 4E0F7ECFE90D344C
5 changed files with 21 additions and 1 deletions

View File

@ -15,6 +15,6 @@ apiVersion: v1
appVersion: v3.9.0
description: OpenStack-Helm RabbitMQ
name: rabbitmq
version: 0.1.31
version: 0.1.32
home: https://github.com/rabbitmq/rabbitmq-server
...

View File

@ -65,6 +65,16 @@ data:
{{ include "rabbitmq.utils.to_rabbit_config" $envAll.Values.conf.rabbit_additonal_conf | indent 4 }}
{{- end }}
{{- if .Values.conf.rabbit_advanced_config.enabled }}
advanced.config: |
[
{rabbit, [
{default_consumer_prefetch, {false,{{ .Values.conf.rabbit_advanced_config.default_consumer_prefetch }}}}
]
}
].
{{- end }}
{{- $erlvm_scheduler_num := include "get_erlvm_scheduler_num" .Values.pod.resources.server.limits.cpu }}
{{- $erlvm_scheduler_conf := printf "+S %s:%s" $erlvm_scheduler_num $erlvm_scheduler_num }}
{{- if .Values.manifests.config_ipv6 }}

View File

@ -280,6 +280,12 @@ spec:
mountPath: /etc/rabbitmq/rabbitmq.conf
subPath: rabbitmq.conf
readOnly: true
{{- if .Values.conf.rabbit_advanced_config.enabled }}
- name: rabbitmq-etc
mountPath: /etc/rabbitmq/advanced.config
subPath: advanced.config
readOnly: true
{{- end }}
- name: rabbitmq-etc
mountPath: /etc/rabbitmq/rabbitmq-env.conf
subPath: rabbitmq-env.conf

View File

@ -212,6 +212,9 @@ conf:
# This confinguration is used for non TLS deployments
management.listener.ip: "::"
management.listener.port: null
rabbit_advanced_config:
enabled: false
default_consumer_prefetch: 250
rabbitmq_exporter:
rabbit_timeout: 30
# Feature Flags is introduced in RabbitMQ 3.8.0

View File

@ -31,4 +31,5 @@ rabbitmq:
- 0.1.29 Add build-in prometheus plugin and disable external exporter
- 0.1.30 Add labels to rabbitmq service
- 0.1.31 Support management api metrics collection
- 0.1.32 Enable addition of default consumer prefetch count
...