對不起,應該因爲不得不問這個問題而被拍攝,但這一天浪費了 - 感覺就像我已經閱讀了所有內容。RabbitMQ - AWS EC2 Clustering hell
我無法在分佈於三個不同區域的EC2實例(3)上創建羣集。主持人:
[email protected]
[email protected]
[email protected]
試圖使羣集前的初始狀態:
[email protected]:~$ sudo rabbitmqctl cluster_status
Cluster status of node '[email protected]' ...
[{nodes,[{disc,['[email protected]']}]},
{running_nodes,['[email protected]']},
{partitions,[]}]
[email protected]:~$ sudo rabbitmqctl cluster_status
Cluster status of node '[email protected]' ...
[{nodes,[{disc,['[email protected]']}]},
{running_nodes,['[email protected]']},
{partitions,[]}]
[email protected]:~$ sudo rabbitmqctl cluster_status
Cluster status of node '[email protected]' ...
[{nodes,[{disc,['[email protected]']}]},
{running_nodes,['[email protected]']},
{partitions,[]}]
當我試圖從一臺服務器檢查狀態另一個:
sudo rabbitmqctl status -n [email protected]
Status of node '[email protected]' ...
Error: unable to connect to node '[email protected]': nodedown
nodes in question: ['[email protected]']
hosts, their running nodes and ports:
- unable to connect to epmd on ip-172-31-1-82: timeout (timed out)
current node details:
- node name: '[email protected]'
- home dir: /var/lib/rabbitmq
- cookie hash: 0tsf/OyQZI7zobmv1Ia97w==
所有這三個服務器都相同的erlang cookie哈希。
我可以確認的主機名設置正確:
host ip-172-31-36-111
ip-172-31-36-111.us-west-2.compute.internal has address 172.31.36.111
我知道的端口是開放的:
netstat -plten | grep beam
因爲我打開的所有TCP和UDP在這一點上作爲一個試驗,無更改。
最後這是否會表現不同給出的故障:
sudo rabbitmqctl join_cluster --ram [email protected]
Clustering node '[email protected]' with '[email protected]' ...
Error: {cannot_discover_cluster,"The nodes provided are either offline or not running"}
請幫幫忙,這個驅動瘋狂。
你可以試着用sudo rabbitmq-server -detached啓動一個broker,並且如果從那裏 – silviud 2014-12-05 19:49:14