Metadata overhead alerting
Wed, 06/27/2012 - 09:12
Hi, I was wondering if it's possible to programmatically access the warning and error below, so that I can set up alerting on them. These messages appear in the log in the web console. I looked at mbstats but can't tell if that has all of the necessary information.
Metadata overhead warning. Over 75% of RAM allocated to bucket "membase" on node "xxx.xxx.xxx.xxx" is taken up by keys and metadata. (repeated 79 times)
Hard Out Of Memory Error. Bucket "membase" on node xxx.xxx.xxx.xxx is full. All memory allocated to this bucket is used for metadata. (repeated 85 times)
Supplemental note: I found in the web console's bucket monitoring -> vbucket resources that there's a "metadata in RAM" graph, which on hover says it gets derived from ep_ht_memory. However, this value does not get outputted by mbstats. There are other ep_* fields that do get outputted. There are also vb_*_ht_memory fields but those aren't the right ones.