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:
parent
54272c4096
commit
1ba7c271df
@ -19,3 +19,4 @@ AUTOCLUSTER_DELAY={{ .Values.autocluster.delay }}
|
|||||||
RABBITMQ_USE_LONGNAME=true
|
RABBITMQ_USE_LONGNAME=true
|
||||||
AUTOCLUSTER_LOG_LEVEL={{ .Values.autocluster.log_level }}
|
AUTOCLUSTER_LOG_LEVEL={{ .Values.autocluster.log_level }}
|
||||||
NODENAME="rabbit@${RABBITMQ_POD_IP}"
|
NODENAME="rabbit@${RABBITMQ_POD_IP}"
|
||||||
|
RABBITMQ_NODE_TYPE={{ .Values.autocluster.node_type }}
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
,{etcd_scheme, http}
|
,{etcd_scheme, http}
|
||||||
,{etcd_host, {{ .Values.endpoints.etcd.hosts.default }}}
|
,{etcd_host, {{ .Values.endpoints.etcd.hosts.default }}}
|
||||||
,{etcd_port, {{ .Values.endpoints.etcd.port }}}
|
,{etcd_port, {{ .Values.endpoints.etcd.port }}}
|
||||||
|
,{node_type, {{ .Values.autocluster.node_type }} }
|
||||||
]}
|
]}
|
||||||
].
|
].
|
||||||
% EOF
|
% EOF
|
||||||
|
@ -69,6 +69,7 @@ endpoints:
|
|||||||
autocluster:
|
autocluster:
|
||||||
log_level: info
|
log_level: info
|
||||||
delay: 15
|
delay: 15
|
||||||
|
node_type: disc
|
||||||
|
|
||||||
probes_delay: 180
|
probes_delay: 180
|
||||||
probes_timeout: 10
|
probes_timeout: 10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user