I'm going through the book Seven Databases in Seven Weeks (a good read so far), and I'm confused on a Riak detail that is passed over quickly in the book.
Riak is supposed to, by default, break the data up into 64 partitions. Each of these partitions are supposed to be split up between the nodes in the ring. (Correct me if I got the lingo wrong.)
I am using 4 dev nodes that come with the Riak source. All of them are started, but when I curl http://localhost:8091/stats | grep ring
, I see
"ring_ownership": "[{'[email protected]',64}]"
This is further confirmed with a $RIAK_INSTALL/dev/dev4/bin/riak-admin member-status
:
================================= Membership ==================================
Status Ring Pending Node
-------------------------------------------------------------------------------
joining 0.0% -- '[email protected]'
joining 0.0% -- '[email protected]'
joining 0.0% -- '[email protected]'
valid 100.0% -- '[email protected]'
-------------------------------------------------------------------------------
What's going on? Why has the dev1 node claimed all of the partitions, and how can I make it share?
Perhaps related
I edited app.config for each node (in RIAK_ROOT/dev/devN/etc/app.config
) to make the pb_ip 0.0.0.0
instead of 127.0.0.1
. This was so that I can access Riak from a browser in my host machine, even though I'm running Riak in a Vagrant VM. Even though I made this same change in each of them, I can only access dev1 from my host's browser (not dev2, dev3, or dev4).
If you think it would help, I can package up this VM and make it available to help you help me troubleshoot. (One of the many reasons VMs are awesome.)