statistics per object
Thu, 09/15/2011 - 03:39
Hi,
How do I get per object statistics stored in vbucket?
I now the REST api call -> GET /pools/default/stats
would give me 10 most "hot_keys" based on ops.
I need more than just 10 :)
Whar what time frame are the ops calculated?
Is there a way to see total get's per object?
Also I'd like to get ops for just specific object, is it possible?
And is there way to get a list of objects that are soon to be expired?
Thanks
Alex
Hi Alex, to get more "hot_keys" you can query each individual server with:
"/opt/membase/bin/mbstats :11210 raw topkeys []"
That will print out the top 100 keys...more than that will require a bit more work.
The ops are calculated over the lifetime of the running process.
There is not currently a way to see the total gets or operations per object or for a specific object unfortunately...too much CPU and RAM overhead in tracking all of those stats.
Nor is there a list of objects that are soon to expire since nothing actually keeps track of the expiration time. When an object expires, nothing happens until a process explicitly comes along and looks at the object. This is either done when you access an item (its expiration time is checked then) or when our hourly process runs to find all of the already expired objects. Other than that, there is no "list" of objects based upon their expiration time.
With Couchbase Server 2.0, you will have the ability to create an index based upon expiration time, so that would give you at least some view into this.
Perry
Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!