angathan
02-25-2010, 09:56 PM
Hi,
How to load balance, the tomcat server?
How to load balance, the tomcat server?
![]() | View Full Version : Load Balance angathan 02-25-2010, 09:56 PM Hi, How to load balance, the tomcat server? SiberForum 02-26-2010, 05:27 AM Hi, How to load balance, the tomcat server? Can you please be more specific and let us know what exactly you have at the moment and what is needed to be done? barry[CoffeeSprout] 02-28-2010, 06:43 AM Hi, Your post leaves out some required details, but lets give this a try anyways. For a proper loadbalanced setup you need the following: 1 (or 2) loadbalancer nodes running either Apache (or other mod_jk/AJP frontend) or a session aware loadbalancer (HAProxy does fine, you can also use a reverse proxy) You can find more info here: -http://tomcat.apache.org/connectors-doc/ (general mod_jk info) -http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html (generic loadbalancer mod_jk setup) -http://haproxy.1wt.eu/ (look at their docs for examples) 2 (or more) Tomcat nodes Tomcat clustering is pretty easy to setup if you follow the instructions.. Please note your application must be built to support clustering, it must have the "distributable" tag set in web.xml and your session objects must be serializable Everything you might want to know is here: http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html Or in an easy to follow tutorial: http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html 1 or 2 Database nodes. You didn't specify, but you also need something on the backend tier that is preferably separate from the tomcat nodes. angathan 04-30-2010, 11:59 PM Thanks, for the links provided. |