You should only issue the join command once - when you create the cluster. 
After that happens, the nodes will join the cluster at start.

---
Jeremiah Peschka
Founder, Brent Ozar Unlimited

On Nov 7, 2012, at 8:13 AM, "Kevin Burton" <rkevinbur...@charter.net> wrote:

> Thank you. This is very helpful. Two more questions. One, my dev[1234] has
> about 6Mb of data in the directory. What are the bare minimum required files
> and directories? Two, would I issue the 'join' command here also to form the
> cluster?
> 
> -----Original Message-----
> From: riak-users [mailto:riak-users-boun...@lists.basho.com] On Behalf Of
> Shane McEwan
> Sent: Wednesday, November 07, 2012 9:54 AM
> To: riak-users@lists.basho.com
> Subject: Re: Cluster on startup.
> 
> If you edit /etc/init.d/riak you should see a line like:
> 
>         su - riak -c "$DAEMON $DAEMON_ARGS" || return 2
> 
> in the "do_start" function.
> 
> If you change that line into the following 4 lines:
> 
>         su - riak -c "/path/to/your/riak/dev1/bin/riak $DAEMON_ARGS" ||
> return 2
>         su - riak -c "/path/to/your/riak/dev2/bin/riak $DAEMON_ARGS" ||
> return 2
>         su - riak -c "/path/to/your/riak/dev3/bin/riak $DAEMON_ARGS" ||
> return 2
>         su - riak -c "/path/to/your/riak/dev4/bin/riak $DAEMON_ARGS" ||
> return 2
> 
> it should start all your Riak nodes on boot.
> 
> On 07/11/12 15:28, Kevin Burton wrote:
>> The problem I see is that since this script is just functions if I run 
>> it then it will do nothing as the functions are not called. Is there 
>> some kind of "include" that I am missing?
>> 
>> Thank you for the link for the tutorial. I am still not sure what the 
>> sequence should be for calling your script on startup. All of the 
>> examples that I have seen startup a single executable. It looks like I 
>> need to either include your script into another script and start it or .
>> . . .
> 
> 
> _______________________________________________
> 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

Reply via email to