Riak Cluster Setup on EC2

Sean Cribbs sean at basho.com
Mon Feb 7 07:50:02 EST 2011


This has been there all along (albeit not named "EC2" specifically):

http://wiki.basho.com/Network-Security-and-Firewall-Configurations.html

Sean Cribbs <sean at basho.com>
Developer Advocate
Basho Technologies, Inc.
http://basho.com/

On Feb 7, 2011, at 6:28 AM, Abhishek Kona wrote:

> 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, and ports 8000-8089 (or other range) to 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>
>> 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
>> 
>> 
> 
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

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


More information about the riak-users mailing list