Riak Cluster Setup on EC2

Abhishek Kona abhishek.kona at gmail.com
Mon Feb 7 06:28:05 EST 2011


Thanks a  lot for the help folks.
And sorry for the late reply.

I could set the ports up after including
  {kernel, [
          {inet_dist_listen_min, 8000},
          {inet_dist_listen_max, 8088}
          ]}

in my app.config.

It would be great if there could be a page to guide ec2 setup of riak on 
the wiki.

Thanks
Abhishek Kona

On 03/02/11 1:51 AM, John D. Rowell wrote:
> You need to open the extra erlang ports in your security group. We do 
> the following:
>
> In the security group, open up TCP port 4369 to 10.0.0.0/8 
> <http://10.0.0.0/8>, and ports 8000-8089 (or other range) to 
> 10.0.0.0/8 <http://10.0.0.0/8> also. This would allow any instance 
> (even those that are not yours) to access those ports, so we block 
> those outside of our cluster in our firewall script:
>
>   # epmd from other replicas
>   allow_tcp_in_from 4369 "$CLUSTER"
>   allow_tcp_in_from "8000:8089" "$CLUSTER"
>
> Then in app.config we redefine the erlang ports:
>
>  {kernel, [
>          {inet_dist_listen_min, 8000},
>          {inet_dist_listen_max, 8088}
>          ]}
>
> You need to make sure that all machines in your cluster have these 
> same settings (firewall and app.config).
>
> Hope this helps.
>
> -jd
>
> 2011/2/2 Abhishek Kona <abhishek.kona at gmail.com 
> <mailto:abhishek.kona at gmail.com>>
>
>     Hey,
>
>     epmd -name gives the following on the nodes.
>
>     #node1
>
>     ubuntu at node2:~$ sudo epmd -names
>
>     epmd: up and running on port 4369 with data:
>
>     name riak at port 34358
>
>     #node2
>
>     ubuntu at node1:~$ sudo epmd -names
>
>     epmd: up and running on port 4369 with data:
>
>     name riak at port 42643
>
>
>     I can telnet to the 4369 port on both the machines (from each other).
>
>     Any ideas.
>
>     Thanks
>     -Abhishek Kona
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110207/a23fa531/attachment.html>


More information about the riak-users mailing list