Thinよりさらに高速と謳われているEbbを使ってみる
Ebbは以前にも紹介しましたが
(ポストMongrel時代のWebサーバ参照)、
Thinより高速といわれている軽量・高速なWebサーバです。
Ebb aims to be a small and fast web server specifically for hosting web frameworks like Rails, Merb, and in the future Django.
こちらでも紹介されています。
Ebb: C-Powered Web Server That Uses Rack - Faster than Mongrel and Thin
非常に興味深いですね。
ということで、ちょっと使ってみました。
先日からgemインストールできるようになったので、
いつものように
sh>>
gem install ebb
<<--
でインストールできます。
ただし、EbbはRuby拡張でglib2のヘッダファイルに依存しているため、
あらかじめそちらもインストールしておく必要があります。
以下はDebianの場合。
sh>>
apt-get install libglib2.0-dev
<<--
インストールが完了したら、RAILS_ROOTで以下のようなMongrel
ライクなコマンドを実行すると、Ebbが立ち上がります。
sh>>
% ebb_rails start
<<--
また、ebb_railsコマンドのオプションは以下の通り
pre>>
Usage: ebb_rails [options] start|stop
Server options:
-p, --port PORT use PORT (default: 3000)
-e, --env ENV Rails environment
(default: development)
-c, --chdir PATH Rails root dir
(default: current dir)
-d, --daemonize Daemonize
-l, --log-file FILE File to redirect output
-P, --pid-file FILE File to store PID
-t, --timeout SEC Request or command timeout in sec
(default: 60)
Common options:
-h, --help Show this message
-v, --version Show version
<<--
とりあえず、単純なアプリケーションでテストした限りでは、
問題なく動いている模様です。
楽しみなプロジェクトですね。
See Also