1 From f4c56def0797f093f626720871bd5e525227685e Mon Sep 17 00:00:00 2001
2 From: Bin Yang <bin.yang@intel.com>
3 Date: Tue, 13 Aug 2019 10:15:14 +0800
4 Subject: [PATCH] add io_thread_pool for rabbitmq
6 Signed-off-by: Bin Yang <bin.yang@intel.com>
8 rabbitmq/templates/statefulset.yaml | 8 ++++++++
9 rabbitmq/values.yaml | 4 ++++
10 2 files changed, 12 insertions(+)
12 diff --git a/rabbitmq/templates/statefulset.yaml b/rabbitmq/templates/statefulset.yaml
13 index 41dc198..e0e61e6 100644
14 --- a/rabbitmq/templates/statefulset.yaml
15 +++ b/rabbitmq/templates/statefulset.yaml
16 @@ -105,6 +105,10 @@ spec:
17 key: RABBITMQ_ADMIN_PASSWORD
18 - name: RABBITMQ_DEFINITION_FILE
19 value: "{{ index $envAll.Values.conf.rabbitmq "management.load_definitions" }}"
20 +{{- if $envAll.Values.io_thread_pool.enabled }}
21 + - name: RABBITMQ_IO_THREAD_POOL_SIZE
22 + value: {{ $envAll.Values.io_thread_pool.size | quote }}
27 @@ -191,6 +195,10 @@ spec:
28 value: "{{ tuple "oslo_messaging" "internal" "amqp" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}"
29 - name: PORT_CLUSTERING
30 value: "{{ add (tuple "oslo_messaging" "internal" "amqp" . | include "helm-toolkit.endpoints.endpoint_port_lookup") 20000 }}"
31 +{{- if $envAll.Values.io_thread_pool.enabled }}
32 + - name: RABBITMQ_IO_THREAD_POOL_SIZE
33 + value: {{ $envAll.Values.io_thread_pool.size | quote }}
36 initialDelaySeconds: 10
38 diff --git a/rabbitmq/values.yaml b/rabbitmq/values.yaml
39 index 6c95787..9cd3a91 100644
40 --- a/rabbitmq/values.yaml
41 +++ b/rabbitmq/values.yaml
42 @@ -334,6 +334,10 @@ volume: