Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-flock / stx-openstack-armada-app / openstack-helm-infra / 0007-Add-io_thread_pool-for-rabbitmq.patch
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
5
6 Signed-off-by: Bin Yang <bin.yang@intel.com>
7 ---
8  rabbitmq/templates/statefulset.yaml | 8 ++++++++
9  rabbitmq/values.yaml                | 4 ++++
10  2 files changed, 12 insertions(+)
11
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 }}
23 +{{- end }}
24            volumeMounts:
25              - name: pod-tmp
26                mountPath: /tmp
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 }}
34 +{{- end }}
35            readinessProbe:
36              initialDelaySeconds: 10
37              timeoutSeconds: 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:
43    class_name: general
44    size: 256Mi
45  
46 +io_thread_pool:
47 +  enabled: false
48 +  size: 64
49 +
50  manifests:
51    configmap_bin: true
52    configmap_etc: true
53 -- 
54 2.7.4
55