Install Contrail Support Service
Configure RabbitMQ.**Target Server: Contrail1-3
1.Set variables
HOST=10.84.50.131 ## Set IP address of an Installation server
HOSTNAME=contrail1 ## Set hostname of a target Server
COOKIES=AANIJMOJRKEOIUDWHAVA ## Set Cookies of RabbitMQ. Use same Cookies in all of Servers.
2.Stop unused proces and delete directory
pkill -9 beam
pkill -9 epmd
rm -rf /var/lib/rabbitmq/mnesia
3.Modify /etc/rabbitmq/rabbitmq-env.conf
echo "NODE_IP_ADDRESS=$HOST
NODENAME=rabbit@$HOSTNAME-ctrl" >/etc/rabbitmq/rabbitmq-env.conf
4.Modify /etc/rabbitmq/rabbitmq-env.conf
echo "[
{rabbit, [ {tcp_listeners, [{\"$HOST\", 5672}]}, {cluster_partition_handling, autoheal},{loopback_users, []},
{cluster_nodes, {['rabbit@contrail1-ctrl', 'rabbit@contrail2-ctrl', 'rabbit@contrail3-ctrl'], disc}},
{vm_memory_high_watermark, 0.4},
{disk_free_limit,50000000},
{log_levels,[{connection, info},{mirroring, info}]},
{heartbeat,10},
{delegate_count,20},
{channel_max,5000},
{tcp_listen_options,
[binary,
{packet, raw},
{reuseaddr, true},
{backlog, 128},
{nodelay, true},
{exit_on_close, false},
{keepalive, true}
]
},
{collect_statistics_interval, 60000}
]
},
{rabbitmq_management_agent, [ {force_fine_statistics, true} ] },
{kernel, [{net_ticktime, 30}]}
]." > /etc/rabbitmq/rabbitmq.config
5.Modify /var/lib/rabbitmq/.erlang.cookie
echo $COOKIES > /var/lib/rabbitmq/.erlang.cookie
6.Start process
service supervisor-support-service restart
7.Check RabbitMQ status
Execute "rabbitmqctl cluster_status" and confirm cluster.
rabbitmqctl cluster_status
Cluster status of node 'rabbit@contrail1-ctrl' ...
[{nodes,[{disc,['rabbit@contrail1-ctrl','rabbit@contrail2-ctrl',
'rabbit@contrail3-ctrl']}]},
{running_nodes,['rabbit@contrail3-ctrl','rabbit@contrail2-ctrl','rabbit@contrail1-ctrl']},
{cluster_name,<<"rabbit@contrail1">>},
{partitions,[]}]
Next topic is "Install Contrail Config Node".
No comments:
Post a Comment