Number of replica for Luwak

Ryan Zezeski rzezeski at
Fri Feb 18 19:34:20 EST 2011

I realized what I just said is confusing.  I start out saying there is no
N/W/R in Luwak and end by saying essentially the opposite.  Maybe I
shouldn't reply on my iPhone while drinking a beer on my front stoop?  Such
a nice night in Baltimore.

Luwak has no _direct_ notion of N/W/R.  You can't call a Luwak specific URL
or Luwak Erlang API and pass it those properties.  No.  However, underneath
the surface, Luwak uses two Riak buckets to store all it's data.  They are
'luwak_tld' and 'luwak_node'.  Without getting into much detail, the first
stores the file metadata object (Top Level Document), and the later stores
the actual data chunks.  That said, if you want all objects stored in Luwak
to have a N=4 then you should first set the bucket props accordingly on the
two luwak buckets.

Maybe it would be nice to have these properties available via the app.config
to make it more obvious?  Then again, I've been drinking.


On Fri, Feb 18, 2011 at 6:44 PM, Ryan Zezeski <rzezeski at> wrote:

> Hi Aditya,
> There are no concepts of N, W, or R in Luwak.  This is because Luwak is
> built _on top_ of Riak.  To be more specific, Luwak takes a large file and
> chunks it into smaller pieces.  These smaller pieces are then hashed, and
> stored under a key equal to the hash value.  That is, Luwak uses something
> called a hash tree to store data.  This has the nice benefit that you don't
> take a storage hit for redundant data because Luwak files will share data
> they have in common.  However, it has the drawback that deleting something
> is non-trivial, and currently Luwak does not actually remove the data when
> you delete a file.
> If you want to change the N/W/R props of Luwak (as a whole) then you can do
> so by setting the luwak_node and luwak_tld bucket props appropriately.
> -Ryan
> [Sent from my iPhone]
> On Feb 18, 2011, at 4:31 PM, Aditya Patadia <adityapatadia at> wrote:
> > How can I set the number of replica for the Luwak ?? I want to store
> atleast 4 replica of my files uploaded to luwak. One more thing.. how to set
> 'r' value and 'w' value for the luwak??
> >
> > _______________________________________________
> > riak-users mailing list
> > riak-users at
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list