03 2015 档案
Erlang tool -- lager overload protection
摘要:log 这个事, 说大不大说小又不小. 大点的, 可以用scribe flume 这样的系统去做, 小点的, 也就打印一个调试信息而已. 在Erlang 中, log 这事情确实比较伤, error_logger 是个单点, io:format 容易导致节点崩溃. 在开源社区, lager 算是使用... 阅读全文
posted @ 2015-03-17 23:38 _00 阅读(2221) 评论(0) 推荐(0)
Erlang ets -- something about cache continue
摘要:上一次说到了实现一个简单cache 的基本思路和想法,http://www.cnblogs.com/--00/p/erlang_ets_something_about_cache.html在文末, 说到了判断single record 内存占用量. 这次继续说说Erlang 数据项内存的相关问题.在... 阅读全文
posted @ 2015-03-06 15:24 _00 阅读(1714) 评论(0) 推荐(2)
Erlang ets -- something about cache
摘要:都说用ets 写一个cache 太简单, 那就简单的搞一个吧, 具体代码就不贴了, 就说说简要的需求和怎么做(说设计有点虚的慌).需求场景>> 查询系统,对于主存储而言,一次写入多次查询所以,cache 需要能实现:UserA 在查询 RecordA 时, UserB 也需要查询RecordA, 就... 阅读全文
posted @ 2015-03-02 18:44 _00 阅读(1500) 评论(0) 推荐(0)