adding ec2 instance to wombat oam monitoring tool

旧时模样 提交于 2019-12-12 05:47:28

问题


I am trying to add erlang nodes running in amazon EC2 to wombat oam which is again running in EC2. When i am trying to add local nodes and other nodes not running in EC2 i am able to add it to wombat. but when i am trying to add any EC2 node it gives following errors

***node is not discoverable and some tNode riak@1**.**.**.**1 should be reachable.
Hints:
The Erlang node may have a different cookie from the one specified.
The Erlang node may have been registered addressing the host in a different way than specified.***

I tried telnet and they are able to communicate.


回答1:


Try:

epmd -names

This will give you nodes that the Erlang VM knows about. epmd is a daemon that runs in the background and keeps the nodes connected. It runs on a separate port 4369 and each VM has an additional port opened per node that it communicates with, e.g.:

g@someserv1:~ % epmd -names
epmd: up and running on port 4369 with data:
name hbd at port 22200

You would need to ensure that first of all the 4369 port is opened, e.g. that you can telnet to that port from the other box. Then you can try to ping that machine with net_adm:ping/1, e.g.:

(hbd@someserv1.somehost.com)17> net_adm:ping('hbd@someserv2.somehost.com').
pong

Of course both machines would need to use the same cookie to communicate with each other.

On the other hand Wombat uses a specific port to communicate with the monitored instances, so please also check if that port is opened by telneting to it.



来源:https://stackoverflow.com/questions/35713136/adding-ec2-instance-to-wombat-oam-monitoring-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!