bottom line is writing a Java loadbalancer is like trying to cross the atlantic ocean with a canoe. there is no point.
Java simply can't handle enough concurrent connections, and then if you want session affinity you need introspection, which means you will be parsing the HTTP request coming in, Load balancing belongs to hardware, and in software (native code) on nothing but the smallest projects Filip ----- Original Message ----- From: "David Rees" <[EMAIL PROTECTED]> To: "Tomcat Developers List" <[EMAIL PROTECTED]> Sent: Thursday, October 02, 2003 11:17 AM Subject: RE: [next] What's next ? On Thu, October 2, 2003 at 8:56 am, Shapira, Yoav sent the following >>> 3. Provide a complete working configuration example for a cluster of >>> tomcat servers with a front-end tomcat as well, i.e. a pure >>> tomcat-only >>> solution. We already have the jvmRoute mechanism, but I think it >>> needs >>> more examples/documentation so that people start using it. >> >>So you want to do a HTTP load balancer ? I think this would be a really >>good project for the commons. > > I had something even simpler in mind: > - A cluster of backend tomcat servers > - A single tomcat front-end server, with one filter mapped to /* that > has configurable rules on how to direct requests to the backend servers. > (e.g. string match in URL rules, remote address rules, etc.) > > But as someone mentioned, I also think an HTTP load-balancer was > discussed as a future version of ajp1[3-4]. I should search the > archives for those threads. Going a bit further with what you said, it seems that all that is required is a load balancing filter and some documentation written to support it. The load balancing filter itself should probably go into the commons project as it should would work with any servlet container. -Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]