add node type option to rabbitmq clustering

Currently, rabbitmq clustering is using the autocluster plugin,
and NODE_TYPE is set to disc in default. so every nodes join cluster as disc node.
However, since there is a need for disc + ram clustering for the performance.
if change node_type from disc to ram, clustering configured as [disc + ram + ram].

Change-Id: Ie83689b0554f0f993bdffac666f0f56db8082992
This commit is contained in:
Jawon Choo 2017-05-12 10:42:57 +09:00
parent 54272c4096
commit 1ba7c271df
3 changed files with 3 additions and 0 deletions

View File

@ -19,3 +19,4 @@ AUTOCLUSTER_DELAY={{ .Values.autocluster.delay }}
RABBITMQ_USE_LONGNAME=true
AUTOCLUSTER_LOG_LEVEL={{ .Values.autocluster.log_level }}
NODENAME="rabbit@${RABBITMQ_POD_IP}"
RABBITMQ_NODE_TYPE={{ .Values.autocluster.node_type }}

View File

@ -36,6 +36,7 @@
,{etcd_scheme, http}
,{etcd_host, {{ .Values.endpoints.etcd.hosts.default }}}
,{etcd_port, {{ .Values.endpoints.etcd.port }}}
,{node_type, {{ .Values.autocluster.node_type }} }
]}
].
% EOF

View File

@ -69,6 +69,7 @@ endpoints:
autocluster:
log_level: info
delay: 15
node_type: disc
probes_delay: 180
probes_timeout: 10