Kevin, First off I want to make sure when you say "public" you don't actually mean "public to the internet"? If so, we suggest keeping Riak behind a firewall or VPN and have your application(s) talk to it through those access points. Also, many people use a proxy like [HAProxy](http://haproxy.1wt.eu/) to load balance requests to all nodes of the cluster. This will share the load and also prevent the single point of failure of filtering all your requests to one node. Admittedly, you now just moved your SPoF to HAProxy, but that's outside of the scope of this reply at least! Right now it might be more than you need and will add initial complexity and setup. You can write and read happily to one node or pick a node at random, Riak nodes will pass along requests if they don't own the keys you are trying to access.
I'm glad to hear you got your three node cluster up, and thank the community for helping you get there. I know you have looked at the Azure docs and some of the Fast Track documents, but I highly recommend the [Concepts Section]( http://docs.basho.com/riak/latest/references/appendices/concepts/) as it gives a nice high-level overview on how Riak works. Knowing those will go a long way towards getting your head around not only how Riak works, but also some of the terms that get thrown around on the mailing-list. -Jared On Wed, Dec 12, 2012 at 10:04 AM, Kevin Burton <rkevinbur...@charter.net>wrote: > Looking at > > http://docs.basho.com/riak/latest/tutorials/installation/Installing-on-Windo > ws-Azure/ It looks like the setup is more of the later (one public IP, two > public ports) Although the documentation doesn't create a public port for > pb. So given this setup I am assuming that we only have this one public IP > address so all queries to this address are shared amount the nodes in the > cluster. Right? I will try this. > > -----Original Message----- > From: Antonio Rohman Fernandez [mailto:roh...@mahalostudio.com] > Sent: Wednesday, December 12, 2012 10:55 AM > To: Kevin Burton > Cc: Shane McEwan; <riak-users@lists.basho.com> > Subject: Re: Cluster setup > > Well, I don't work with VMs, for me 1 node = 1 full server > > Sent from my iPhone > > On 12/12/2012, at 17:43, "Kevin Burton" <rkevinbur...@charter.net> wrote: > > > But when setting up a cluster on VM's there is only one public > > address. So in your scenario there is only IP not IP1, IP2, IP3. So > > they are all equal including the IP address which addresses the > > cluster. The public ports direct traffic to individual machines. At > > least that is the way I understand it and the way I have been > > connecting with SSH. I haven't tried it but I suppose you could keep > > all of the ports private and the same and only expose one port. But I > > don't know how to do that so the public port is handled equally as the IP > address. > > > > -----Original Message----- > > From: Antonio Rohman Fernandez [mailto:roh...@mahalostudio.com] > > Sent: Wednesday, December 12, 2012 10:37 AM > > To: Kevin Burton > > Cc: Shane McEwan; riak-users@lists.basho.com > > Subject: Re: Cluster setup > > > > You have to understand that there is no master node in Riak, all nodes > > are equal, so you have as many entrypoint IPs as servers: > > > > http://IP1:8089/riak > > http://IP2:8089/riak > > http://IP3:8089/riak > > Etc... > > > > You can query data, put data, delete data, etc... In any node at any > > time > > > > Rohman > > > > Sent from my iPhone > > > > On 12/12/2012, at 17:18, "Kevin Burton" <rkevinbur...@charter.net> > wrote: > > > >> On last question. Since this is a cluster there is only one public IP > >> address. Doesn't that necessitate the ports being different values > >> (ie > >> 8088 > >> -> node1, 8089 -> node2, 8090 -> node3 or something like that)? > >> > >> -----Original Message----- > >> From: Shane McEwan [mailto:sh...@mcewan.id.au] > >> Sent: Wednesday, December 12, 2012 10:12 AM > >> To: Kevin Burton > >> Cc: riak-users@lists.basho.com > >> Subject: Re: Cluster setup > >> > >> Looks good to me! > >> > >> On 12/12/12 16:10, Kevin Burton wrote: > >>> So now I have > >>> > >>> [azureuser@bsicentos3 ~]$ sudo riak-admin member-status Attempting > >>> to restart script through sudo -H -u riak > >>> ================================= Membership > >>> ================================== > >>> Status Ring Pending Node > >>> -------------------------------------------------------------------- > >>> - > >>> - > >>> ------ > >>> --- > >>> valid 32.8% -- 'riak@10.79.108.25' > >>> valid 34.4% -- 'riak@10.79.110.52' > >>> valid 32.8% -- 'riak@10.79.90.11' > >>> -------------------------------------------------------------------- > >>> - > >>> - > >>> ------ > >>> --- > >>> Valid:3 / Leaving:0 / Exiting:0 / Joining:0 / Down:0 > >>> > >>> Does this look right? > >>> > >>> > >>> -----Original Message----- > >>> From: Shane McEwan [mailto:sh...@mcewan.id.au] > >>> Sent: Wednesday, December 12, 2012 9:58 AM > >>> To: Kevin Burton > >>> Cc: riak-users@lists.basho.com > >>> Subject: Re: Cluster setup > >>> > >>> Run the join commands on the OTHER machines . . . NOT the master. > >>> > >>> Use the master's IP address in the join commands but the actual > >>> command must be run on the non-master machines. You're telling the > > "slave" > >>> machines to join the cluster by telling them which machine they need > >>> to talk to to get the cluster information. > >>> > >>> On 12/12/12 15:51, Kevin Burton wrote: > >>>> *So again from the master I do 'sudo riak-admin cluster join > >>>> riak@10.79.90.11 <mailto:riak@10.79.90.11>' but I get:* > >>>> > >>>> [sudo] password for azureuser: > >>>> > >>>> Attempting to restart script through sudo -H -u riak > >>>> > >>>> Failed: This node is already a member of a cluster > >>>> > >>>> *Looking at the plan:* > >>>> > >>>> [azureuser@bsicentos1 ~]$ sudo riak-admin cluster plan > >>>> > >>>> Attempting to restart script through sudo -H -u riak > >>>> > >>>> =============================== Staged Changes > >>>> ================================ > >>>> > >>>> Action Nodes(s) > >>>> > >>>> ------------------------------------------------------------------- > >>>> - > >>>> - > >>>> - > >>>> --------- > >>>> > >>>> join 'riak@10.79.108.25' > >>>> > >>>> ------------------------------------------------------------------- > >>>> - > >>>> - > >>>> - > >>>> --------- > >>>> > >>>> NOTE: Applying these changes will result in 1 cluster transition > >>>> > >>>> ################################################################### > >>>> # > >>>> # > >>>> # > >>>> ######### > >>>> > >>>> After cluster transition 1/1 > >>>> > >>>> ################################################################### > >>>> # > >>>> # > >>>> # > >>>> ######### > >>>> > >>>> ================================= Membership > >>>> ================================== > >>>> > >>>> Status Ring Pending Node > >>>> > >>>> ------------------------------------------------------------------- > >>>> - > >>>> - > >>>> - > >>>> --------- > >>>> > >>>> valid 0.0% 50.0% 'riak@10.79.108.25' > >>>> > >>>> valid 100.0% 50.0% 'riak@10.79.110.52' > >>>> > >>>> ------------------------------------------------------------------- > >>>> - > >>>> - > >>>> - > >>>> --------- > >>>> > >>>> Valid:2 / Leaving:0 / Exiting:0 / Joining:0 / Down:0 > >>>> > >>>> WARNING: Not all replicas will be on distinct nodes > >>>> > >>>> Transfers resulting from cluster changes: 32 > >>>> > >>>> 32 transfers from 'riak@10.79.110.52' to 'riak@10.79.108.25' > >>>> > >>>> *I don't see riak@10.79.90.11 <mailto:riak@10.79.90.11> in the > >>>> cluster.* > >>>> > >>>> -----Original Message----- > >>>> From: Shane McEwan [mailto:sh...@mcewan.id.au] > >>>> Sent: Wednesday, December 12, 2012 9:43 AM > >>>> To: Kevin Burton > >>>> Cc: riak-users@lists.basho.com > >>>> Subject: Re: Cluster setup > >>>> > >>>> There's no need to join the "master" to itself. Just join the other > >>>> nodes to the master. > >> > >> > >> _______________________________________________ > >> riak-users mailing list > >> riak-users@lists.basho.com > >> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > > > > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com