Reasons for using gen_server to gather statictics with folsom
Sergey_Zhemzhitsky at troika.ru
Mon Aug 13 03:54:11 EDT 2012
Any updates on these questions?
I’ve read the following blog entry http://basho.com/blog/technical/2012/07/02/folsom-backed-stats-riak-1-2/ 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?
From: riak-users-bounces at lists.basho.com [mailto:riak-users-bounces at lists.basho.com] On Behalf Of Zhemzhitsky Sergey
Sent: Friday, August 10, 2012 6:33 PM
To: riak-users at lists.basho.com
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?
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 www.troika.ru/eng/Contacts/system.wbp<http://www.troika.ru/eng/Contacts/system.wbp>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the riak-users