Tuesday, October 6, 2009

JBoss Production Environment

In my humble opinion a JBoss production environment should be something like the one depicted in the following diagram

I recommend to use mod_proxy, mod_proxy_balancer and mod_proxy_ajp apache modules both for load balancing and request forwarding with directives like:

ProxyRequests Off
<Proxy balancer://webapp-cluster>
Order deny,allow
Allow from all
BalancerMember ajp://instance1:8009/webapp-name loadfactor=1
BalancerMember ajp://instance2:8009/webapp-name loadfactor=1
ProxySet lbmethod=bytraffic
ProxyPass /webapp-name balancer://webapp-cluster
ProxyPassReverse /webapp-name balancer://webapp-cluster
System dimensions and load can vary the numbers, but the architecture should be sufficient and enough scalable for many situations.

No comments: