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インストールできるようになったので、 いつものように

   1  # gem install ebb

でインストールできます。 ただし、EbbはRuby拡張でglib2のヘッダファイルに依存しているため、 あらかじめそちらもインストールしておく必要があります。 以下はDebianの場合。

   1  # apt-get install libglib2.0-dev

インストールが完了したら、RAILS_ROOTで以下のようなMongrel ライクなコマンドを実行すると、Ebbが立ち上がります。

   1  % ebb_rails start 

また、ebb_railsコマンドのオプションは以下の通り

   1  Usage: ebb_rails [options] start|stop
   2  
   3  Server options:
   4    -p, --port PORT      use PORT (default: 3000)
   5    -e, --env ENV        Rails environment
   6                         (default: development)
   7    -c, --chdir PATH     Rails root dir
   8                         (default: current dir)
   9    -d, --daemonize      Daemonize
  10    -l, --log-file FILE  File to redirect output
  11    -P, --pid-file FILE  File to store PID
  12    -t, --timeout SEC    Request or command timeout in sec
  13                         (default: 60)
  14  
  15  Common options:
  16    -h, --help           Show this message
  17    -v, --version        Show version

とりあえず、単純なアプリケーションでテストした限りでは、 問題なく動いている模様です。 楽しみなプロジェクトですね。

See Also

posted by Png genki on Wed 5 Mar 2008 at 08:56

Comments:

or Preview
Social Bookmarks
  • Delicious
  • B_entry412
  • Clip_16_12_w
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ