Skip to content

Instantly share code, notes, and snippets.

@PharkMillups
Created April 23, 2010 13:51
Show Gist options
  • Save PharkMillups/376558 to your computer and use it in GitHub Desktop.
Save PharkMillups/376558 to your computer and use it in GitHub Desktop.
adamhunter # i have three nodes in a cluster, how do i remove a node from a cluster?
seancribbs # adamhunter: I had one hang on me earlier, thought it was just Ruby
jlee # adamhunter: are you trying to simulate a failure, or scale the cluster down to two node permanently?
adamhunter # i am trying to figure out if the other two nodes are messing up the first
seancribbs # adamhunter: 0.9?
adamhunter # yeah
seancribbs # use riak_connect:remove_from_cluster/1 in the console, then wait for the handoff to finish
Damm joined #riak
Apr 22 14:52
adamhunter # i clearly must have done something wrong when i installed :) it doesn't work on any of my three nodes, tks
seancribbs # :(
production?
adamhunter # yeah
though its a different cluster
the first one i did for my first app works awesome
i am setting up a little cluster to do datamining with, but i seem to be having some trouble. /mapred comes right up but /riak/anybucket takes a good 2-4 minutes
seancribbs # what's the quantity of data?
adamhunter # none right now
seancribbs # wow
adamhunter # i can't put anything in the buckets
seancribbs # can you "fake" it
roidrage # when you remove a node, what happens to clients only knowing that node. is it assumed that clients know several of the nodes in a cluster and just try connecting to a different one?
seancribbs # roidrage: ideally yes
roidrage # right
makes sense
adamhunter # seancribbs: what do you mean fake it?
seancribbs # roidrage: we usually suggest a load-balancer or round-robin DNS or something like that
Apr 22 14:57
seancribbs # by fake it i mean, not requesting the bucket, but creating the object that represents i
*it
adamhunter # in ruby?
or in the console
seancribbs # in ruby
adamhunter # yeah, i can create objects in ruby, and they save *eventually*
seancribbs # because of the bucket issue
adamhunter # yeah
idk if there is anything wrong with this: i have riak in /usr/local/riak
seancribbs # should be fine
using innostore?
adamhunter # permissions are rwxr-xr-x (755?) user:user
yes
seancribbs # smp turned on?
adamhunter # user is the boxes only user
think so
seancribbs # '-smp enable' in vm.args will tell you
we found about a month ago that innostore doesn't work right without that
adamhunter # you're my hero :)
seancribbs # that fix it?
Apr 22 15:02
adamhunter # yep
justinsheehy joined #riak
adamhunter # i compiled with export ERL_FLAGS="-smp enable"
seancribbs # awesome :D
adamhunter # but i guess that doesn't set it
seancribbs # nope, it's a runtime flag
adamhunter # i didn't see anything in the innostore setup wiki page, is it not there or am i a tard?
seancribbs # will add
adamhunter # ah cool
tks again!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment