Ryan McElroy, software engineer at Facebook, introduces "mcrouter," software that the company has developed for turning standalone caches into a robust distributed system.
Memcache1.4.5を使用しているのだが、アプリケーションにとって不都合な点がでている・・・ 具体的に言うと、メモリは余裕があるのに、Evictionが発生してしまっているのだ。 検索したところ、ちょいと記事が古いがMemcachedのメモリ使用方法について詳しいものを見つけた。 memcachedを知り尽くす memcachedとRedisの生存戦略、というかmemory allocation戦略 ぼくらのLRU これらを見ると一度確保されたチャンクのページは、他のチャンクに割り振られることがないので、最初に容量を確保されてしまったら、開放されることがない模様。 しかし、 version 1.4.11からは「Slab Reassign」、「Slab Automove」と言う、使っていないチャンクのページを、頻繁に使っているチャンクに割り振り直す機能があるようなので、公式ページを見て
I think you're correct in your logic that stat curr_connections is the number of connections that are current. curr_connections - Number of open connections to this Memcached server, should be the same value on all servers during normal operation. This is something like the count of mySQL's "SHOW PROCESSLIST" result rows. Source: Memcached statistics (stats command) When I setup memcached I notice
Moxi is a memcached proxy that allows clients like PHP applications to connect to it instead of directly to memcached servers. It handles protocol conversion, failure handling, consistent hashing of keys, and GET deduplication to improve performance. Moxi can also act as a front cache and support configurable features like timeouts, blackhole mode, and fire-and-forget SET operations.Read less
memcachedのstats slabsの項目名は直感的でない。 例えば、 free_chunksは、delete等されて再利用可能なチャンク数 free_chunks_endが最後にアロケートされたページで一度もsetされていないチャンク数 とかは、memcachedのソースを読んでやっと意味がわかった。 また、チューニングの際に必要な、アラインメントによる無駄領域の合計がぱっと見でわからなかったりする。 とういことで、 memcachedのstats slabs統計情報を解析するRubyスクリプトを張り付けておく。 # テキストプロトコルにしか対応してません。 # バイナリプロトコル専用のmemachedへは、rubyのmemcachedライブラリを使うように改造すりゃできる。 起動オプションUsage: ./better_stats_slabs.rb -d /path_to_dir
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く