Click here to load reader
Upload
takeshi-yabe
View
608
Download
1
Embed Size (px)
DESCRIPTION
渋谷.rb[:20131120] での発表資料です
Citation preview
「eye」でカジュアルに プロセス監視
渋谷.rb[:20131120] Takeshi Yabe / @tyabe
プロセス監視ツール 使ってますか?
プロセス監視ツール
• daemontools
• monit
• god
• bulepill
eye
kostya / eye• Buluepill と God をヒントに作られた
• 動作には MRI 1.9.3-p194 以上が必要 (gemspec は 1.9.2 以上ってなってる…)
• Celluloid と Celluloid::IO が使われていて、マルチスレッドで動く
• 現時点でのバージョンは 0.5
• MITライセンス
インストール
インストール
# watch がコマンドないと w オプションが動かないので # なければ入れる $ brew install watch
$ gem install eye
あとは設定ファイルを書いて eye コマンドを叩くだけ
$ eye Commands: eye break MASK[,...] # break chain executing eye check CONF # check config file syntax eye delete MASK[,...] # delete app,group or process eye explain CONF # explain config tree eye help [COMMAND] # Describe available commands or one specific command eye history [MASK,...] # processes history eye info [MASK] # processes info eye load [CONF, ...] # load config (start eye-daemon if not) (-f foreground start) eye match MASK[,...] # match app,group or process eye monitor MASK[,...] # monitor app,group or process eye oinfo # onelined info eye quit # eye-daemon quit eye restart MASK[,...] # restart app,group or process eye signal SIG MASK[,...] # send signal to app,group or process eye start MASK[,...] # start app,group or process eye status # processes info (deprecated) eye stop MASK[,...] # stop app,group or process eye trace [MASK] # tracing log(tail + grep) for app,group or process eye unmonitor MASK[,...] # unmonitor app,group or process eye version # version eye watch [MASK] # interactive processes info eye xinfo # eye-deamon info (-c show current config)
ためしてみる
ためしてみる
# Gitリポジトリにあるサンプルを動かす!$ cd ~/work!$ g clone [email protected]:kostya/eye.git!$ cd eye!$ bundle install --path vendor/gems
デモ
まとめ
• watch オプションがすてき
• ぎょーむで使うにはまだ早い…かも?
• こんとりびゅーとのチャンスですね