[Kai-devel-ja] stats
Kai is a distributed key-value datastore
Status: Beta
Brought to you by:
takemaru
From: Takeru I. <tak...@gm...> - 2009-02-08 14:41:22
|
ざっと stats を実装してみました. 取得できる統計値は kai-users-ja を見てください. 以下は開発者向けのコメントと相談です. bytes (ローカルストレージのデータ量) についてです. ets では正確なデータ量を得ることができませんでした. これは,ets が管理しているデータ量が,大きなバイナリを含まないためです. とりあえず,ets が管理してるデータ量に,Erlang VM が管理している全バイナリデータ量を加算したものを返しています. かなり大きめの値が返ります. また,ガベージコレクションのタイミングによっては,古い値が消されても,データ量が減らなかったりするようです. 自前でデータ量を計算した方がいいですかねぇ.. とはいえ,ets/dets のオーバヘッド (key のためのインデックスなど) がよくわからないので,正確な値を計算することは困難だと思っているのですが. cooldaemon さま: curr_connections (kai_tcp_server のアクティブプロセス数) は,どういう風に得るのが適切だと思いますでしょうか. shino さま: 二つのバージョンが返ってしまった数の累計は,どういう風に得るのが適切だと思いますでしょうか. -- Takeru INOUE <tak...@gm...> |