将ec2实例添加到wombat oam监控工具 [英] adding ec2 instance to wombat oam monitoring tool

查看:176
本文介绍了将ec2实例添加到wombat oam监控工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图添加运行在亚马逊EC2中的erlang节点,再次运行在EC2中的wombat oam。当我尝试添加本地节点和其他不在EC2中运行的节点时,我可以将其添加到wombat。但是当我试图添加任何EC2节点时,它会产生以下错误

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.

推荐答案

尝试:

epmd -names

这将给你Erlang VM知道的节点。 epmd 是在后台运行并保持节点连接的守护程序。它运行在单独的端口 4369 ,每个虚拟机都有一个额外的端口打开每个节点,它通信,例如:

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

您需要确保首先打开4369端口,例如您可以从另一个框中telnet到该端口。那么你可以尝试用 net_adm:ping / 1 来ping该机器,例如:

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

当然,两台机器都需要使用相同的cookie来相互通信

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

另一方面,Wombat使用特定端口与受监控的实例进行通信,因此请检查该端口是否通过telneting打开。

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.

这篇关于将ec2实例添加到wombat oam监控工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆