Reasons for using gen_server to gather statictics with folsom

Zhemzhitsky Sergey Sergey_Zhemzhitsky at
Mon Aug 13 03:54:11 EDT 2012

Hi guys,

Any updates on these questions?

I’ve read the following blog entry and still haven’t found the answers.

As far as I understand riak_core_stat_cache caches stats using ets, so I’m wondering why statistics that is stored in ets is cached using ets?
Is it correct that calls to folsom_metrics are done via gen_server to decrease the possibility of losing ets tables that are bound to a concrete process?

Best Regards,

From: riak-users-bounces at [mailto:riak-users-bounces at] On Behalf Of Zhemzhitsky Sergey
Sent: Friday, August 10, 2012 6:33 PM
To: riak-users at
Subject: Reasons for using gen_server to gather statictics with folsom

Hi riak gurus,

Recently riak 1.2 has been released that uses folsom library to gather statistics.

I’d like to use the same library (folsom) in my application so could you answer the following questions:

1.       Why separate gen_servers (riak_api_stat, riak_core_stat, riak_kv_stat) were used to gather statistics instead of the direct calls to folsom_metrics through some more high-level api?

2.       What is the purpose of riak_core_stat_cache and what it is intended to do?

Best Regards,


The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia.

If you need assistance please contact our Contact Center (+7495) 258 0500 or go to<>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list