Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > by-pkgid > c27466c2a3fa3cf6008c3a485d00ce04 > files > 65

jetty5-manual-5.1.15-1.5.2mdv2010.0.noarch.rpm

SECTION: 700-Clustering
TITLE: Load Balancing
QUESTION: How can I perform load balancing with Jetty?

There are many load balancing options available with Jetty:<ul>
<li>Hardware load balancers can be used.  Many router level options exist.
</li>
<li>A simple load balancer (Java 1.4 only) is included in the Jetty extra package:
    org.mortbay.loadbalancer.Balancer.  This does sticky IP load balacing.
</li>
<li>The apache httpd server can be used as a load balancer, using mod_jk (AJP protocol)
to send load to individual Jetty servers.
</li>
<li>The apache httpd server can be used as a load balancer, using mod_proxy (HTTP protocol)
to send load to individual Jetty servers.  This is faster than mod_jk, but the balancing
is more primative and based on mod_rewrite.
</li>
</ul>
Remember that balancing the load over a cluster of Jetty servers is often only half
the problem.  The other key issue is what state is on each node and if/how it is 
replicated between nodes.