Setting up cluster on Amazon environment

Hello, community.

I have run 2-node cluster in Amazon Web Service environment. This is Computing Cloud, which give access to virtual servers hosted on XEN. Each server have unique internal DNS name, like these:

node1 is node1@domU-12-31-39-00-68-A1.compute-1.internal
node2 is node2@domU-12-31-39-00-85-26.compute-1.internal

both of nodes have external IPs, which configured for site: chat.example.com
DNS provide give us roundrobin balancing, but all xmpp client are connected to first node (as its IP less then for second one). There is why I need in interconnection of nodes and balancing by ejabberd tools.

When I try to make interconnection I receive next error:

#erl -sname node1 -remsh node2@domU-12-31-39-00-85-26.compute-1.internal

Erlang (BEAM) emulator version 5.6.3 [source] [async-threads:0] [hipe] [kernel-poll:false]
{error_logger,{{2009,2,16},{15,1,59}},"** System NOT running to use fully qualified hostnames **~n** Hostname ~s is
illegal **~n",["domU-12-31-39-00-85-26.compute-1.internal"]}
*** ERROR: Shell process terminated! (^G to start new job) ***

=ERROR REPORT==== 16-Feb-2009::15:01:59 ===
** System NOT running to use fully qualified hostnames **
** Hostname domU-12-31-39-00-85-26.compute-1.internal is illegal **

How can I run interconnection for cluster nodes?

I think the reason of failed is in naming of instances.

What do community think about this situation?

Regards,
Max

Related: mailing list

The same question was posted in the ejabberd mailing list, and got some responses: [ejabberd] Setting up cluster at Amazon environment

?

Did you have any success with this? I just started looking into doing the same thing with Amazon's EC2.

Syndicate content