Jakov Sosic
unread,Mar 19, 2015, 9:00:14 AM3/19/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rabbitm...@googlegroups.com
Hi guys,
I'm using automatic cluster via rabbitmq.config file, but when I create
new cluster, it's name is set automatically by the first node started.
Eg, this is newly spawned cluster:
# rabbitmqctl cluster_status
Cluster status of node 'rabbit@dev-c1n01-rabbitmq' ...
[{nodes,[{disc,['rabbit@dev-c1n01-rabbitmq','rabbit@dev-c1n02-rabbitmq',
'rabbit@dev-c1n03-rabbitmq']}]},
{running_nodes,['rabbit@dev-c1n03-rabbitmq','rabbit@dev-c1n02-rabbitmq',
'rabbit@dev-c1n01-rabbitmq']},
{cluster_name,<<"rab...@dev-c1n01-rabbitmq.examle.lan">>},
{partitions,[]}]
As you can figure it out, my domain is example.net...
Is there a way to set up cluster name to something specific, like for
example 'dev-rabbitmq', or something similar, so that it's autoset upon
first node startup?
I'm asking this because I'm spinning up clusters via Cobbler/Puppet and
would like to automate it.
This is my current rabbitmq.config:
[
{rabbit, [
{cluster_nodes, {['rabbit@dev-c1n01-rabbitmq',
'rabbit@dev-c1n02-rabbitmq', 'rabbit@dev-c1n03-rabbitmq'], disc}},
{cluster_partition_handling, pause_minority},
{heartbeat, 0},
{tcp_listen_options, [binary, {backlog, 1024}, {nodelay, true},
{keepalive, true} ]},
{vm_memory_high_watermark, 0.6},
{default_user, <<"admin">>},
{default_pass, <<"would_like_to_know_do_u">>}
]},
{kernel, [
]}
,
{rabbitmq_management, [
{listener, [
{port, 15672}
]}
]}
].