update document

Jonathan Lee jonathan_lee at comcast.com
Thu Nov 12 10:53:54 EST 2009


>> 4. A pain in the butt to kill (I use config/riak-demo.erlenv)
>> I know about "killall heart", but sometimes I need to issue that
>> command twice and still then ps for erlang processes, having to kill
>> epmd as well. Failing to do so upon ./start-fresh will bring the
>> aforementioned 500 server errors.
>
> We agree!  We core devs have internalized the machinations needed to
> shut Riak down, but it's annoying even to us sometimes.  A much better
> start/stop script is planned for the next release of Riak.
>
> In the meantime, I'd recommend using init:stop/0 (through an
> rpc:call/4 on the riak node, if necessary).  It's supposed to have
> better behavior when heart is involved.

fwiw, until that release, here are scripts in the same vein as the
current start-*.sh scripts that I've been using to stop riak and check
if a node is alive.  Bryan, do you advise that we call
riak_connect:remove_from_cluster/1 before killing the node?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ping.sh
Type: application/x-sh
Size: 1006 bytes
Desc: not available
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20091112/e71525f9/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stop-remove.sh
Type: application/x-sh
Size: 987 bytes
Desc: not available
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20091112/e71525f9/attachment-0001.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stop.sh
Type: application/x-sh
Size: 886 bytes
Desc: not available
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20091112/e71525f9/attachment-0002.sh>


More information about the riak-users mailing list