Venki, Regarding your original question about size of individual buckets/keys within that data directory -- that cannot be done without directly manipulating the storage engine or other components of Riak. One of the benefits of Riak's consistent hashing is that you get a really even spread among nodes and you don't really know (without digging into the Erlang console) where specific keys live. That said, we have done it for customers who have had specific production issues related to large keys, but this is not something we recommend doing in general.
On Wed, Nov 28, 2012 at 1:59 AM, Venki Yedidha <venkatesh.yedi...@gmail.com>wrote: > Thanks Mark, > > Now when I performed du -h on the eleveldb directory in my local: It > showed me some thing like: > > 4.9M ./1370157784997721485815954530671515330927436759040 > 2.7M ./776422744832042175295707567380525354192214163456 > 2.7M ./525227150915793236229449236757414210188850757632 > 2.7M ./959110449498405040071168171470060731649205731328 > 3.3M ./1073290264914881830555831049026020342559825461248 > 2.7M ./1438665674247607560106752257205091097473808596992 > 2.8M ./91343852333181432387730302044767688728495783936 > 2.8M ./1324485858831130769622089379649131486563188867072 > 2.7M ./228359630832953580969325755111919221821239459840 > 2.9M ./890602560248518965780370444936484965102833893376 > 2.8M ./913438523331814323877303020447676887284957839360 > 2.6M ./639406966332270026714112114313373821099470487552 > 2.7M ./159851741583067506678528028578343455274867621888 > 177M . > > So, It occupied 177MB in total.. Now, My interest is I would like to know > the space occupied by a particular bucket/key, Can I extract that > information form the above? > > and how are these numbers like > "776422744832042175295707567380525354192214163456" generated? > > Thanks, > Venkatesh > > > > On Wed, Nov 21, 2012 at 5:24 AM, Mark Phillips <m...@basho.com> wrote: > >> Hi Venki >> >> On Sun, Nov 18, 2012 at 10:11 PM, Venki Yedidha >> <venkatesh.yedi...@gmail.com> wrote: >> > Hi All, >> > I would like to know the data storage of my riak database till >> date. >> > Also, I would like to know the space occupied on a riak cluster by a >> > bucket/key's data inserted. am running all the nodes(in the cluster) on >> > eleveldb backend. >> > >> >> The easiest way to do this would be to run some flavor of "du" on the >> backend directory that lives under /data of each of your Riak nodes. >> The sum of all of the nodes should give you the total replicated data >> set. Divide it by your n_val to get the actual data set size. >> >> Hope that helps. >> >> Mark >> >> > >> > Thanks, >> > Venkatesh >> > >> > >> > >> > _______________________________________________ >> > 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 > > -- Sean Cribbs <s...@basho.com> Software Engineer Basho Technologies, Inc. http://basho.com/
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com