mod_proxy_balancer + mongrel_clusterにしてみた

Apacheの設定がこんな感じ。

#ProxyRequest Off
ProxyPass /sticky_plus balancer://sticky_plus
ProxyPassReverse /sticky_plus balancer://sticky_plus

<Proxy balancer://sticky_plus>
  BalancerMember http://localhost:3000/sticky_plus loadfactor=10
  BalancerMember http://localhost:3001/sticky_plus loadfactor=10
  BalancerMember http://localhost:3002/sticky_plus loadfactor=10
  BalancerMember http://localhost:3003/sticky_plus loadfactor=10
  BalancerMember http://localhost:3004/sticky_plus loadfactor=10
</Proxy>


一応、並列リクエストに強くなったように見える。


~$ ab2 -c 10 -n 100 http://storehouse.quickvps.net/sticky_plus | head -n 25 | tail -n 11
Concurrency Level: 10
Time taken for tests: 2.188000 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 908040 bytes
HTML transferred: 877942 bytes
Requests per second: 45.70 [#/sec] (mean)
Time per request: 218.800 [ms] (mean)
Time per request: 21.880 [ms] (mean, across all concurrent requests)
Transfer rate: 404.94 [Kbytes/sec] received