Mongrel+Apacheのロードバランス設定

構成として一般的なのが、
mod_ssl + mod_proxy + mod_proxy_balancer + mongrel_cluster + Mongrel


設定として必要な手順として、
・/etc/init.d/mongrel_cluster
これは起動スクリプト
・${RAILS_TOP}/config/mongrel_cluster.yml
・/etc/httpd/conf.d/ssl.conf
あたりに、Include "${RAILS_TOP}/misc/httpd.conf"としてロードバランス設定を指定
・${RAILS_TOP}/misc/httpd.conf
には、ProxyPass,ProxyPassReverse,Proxyディレクティブを記載する。
あとBalancerMemberについてもここで記載する。


mongrel_cluster start
httpd restart
で動作を確認する