Hi Shi, allow me to point at:
- http://blog.jboss.org/blog/mturk/2007/07/16/Comparing_mod_proxy_and_mod_jk.txt - http://anilsaldhana.blogspot.com/2006/04/modjk-versus-modproxy.html (and that's just the first two hits from Google using "apache mod_jk vs mod_proxy") So as a summary, your statement sounds too easy to reflect reality. If you are performance (=production?) oriented, there is still very good reasons to stay with mod_jk, despite the fact that it requires more configuration work. Further (just as a hint): Sites which are subject to PCI DSS scans, will be required to run at Apache 2.2.11 at least (unless they chose to go the WAF-way for web security). As this entire thread is addressing topics that I have repeatedly tried to "tweak" out of the community, I will take all this and club the info together for a HOWTO page in the wiki. Thanks all for the information provided. I knew there are folks out there running horizontally scaled OFBizes. Regards Carsten 2009/9/29 Shi Jinghai <[email protected]> > If your Apache is 2.2.x, you should use mod_proxy rather than mod_jk. > > > 在 2009-09-29二的 14:28 +0530,[email protected]写道: > > Hi, > > > > I need to load balance OFBiz among multiple servers. > > For this i have used Apache Http server in front of OFBiz. I have done > the > > necessary changes in apache http server: > > 1. In httpd.conf : > > LoadModule jk_module modules/mod_jk.so > > JkWorkersFile conf/workers.properties > > JkShmFile logs/mod_jk.shm > > JkLogFile logs/mod_jk.log > > JkLogLevel info > > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > > JkMount /* worker1 > > 2. In workers.properties : > > worker.list=worker1 > > worker.worker1.type=ajp13 > > worker.worker1.host=172.17.88.52 > > worker.worker1.port=8009 > > > > The server is listening on port 80. > > > > On OFBiz side, i have set jvm route in ofbiz-containers.xml : > > <container name="catalina-container" class= > > "org.ofbiz.catalina.container.CatalinaContainer"> > > <!-- static configuration for tomcat --> > > <property name="delegator-name" value="default"/> > > <property name="use-naming" value="false"/> > > <property name="debug" value="0"/> > > <property name="catalina-runtime-home" value="runtime/catalina"/> > > <property name="apps-context-reloadable" value="false"/> > > <property name="apps-cross-context" value="false"/> > > <property name="apps-distributable" value="false"/> > > <!-- one or more tomcat engines (servers); map to this + host --> > > <property name="default-server" value="engine"> > > <property name="default-host" value="0.0.0.0"/> > > <property name="jvm-route" value="jvm1"/> > > <property name="access-log-pattern"> > > > > OFBiz' embedded tomcat runs ajp on port 8009. > > > > I am trying to access the OFBiz application using : > > http://172.17.88.52/ecommerce/control/main > > I am not able to get the required page. > > Can you please let me know the step i am missing... > > > > > > > > Thanks & Regards, > > Neha Mehta > > > > > > > > > > Brett Palmer <[email protected]> > > 09/22/2009 03:01 PM > > Please respond to > > [email protected] > > > > > > To > > [email protected] > > cc > > > > Subject > > Re: Load Balancing in OFbiz > > > > > > > > > > > > > > Neha, > > > > Here is a configuration we use to do load balancing in ofbiz. Others may > > do > > something else. > > > > 1. One machine is running an Apache Web server with mod_jk setup to > > communicate with different instances of ofbiz. The mod_jk is setup to > > load > > balance between the different ofbiz instances. Here is a document that > > helps you get setup: > > > > http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html > > > > > > 2. Then we start multiple boxes running ofbiz server - all pointing to > the > > same database. The servers are setup to communicate using mod_jk's AJP > > protocol. You need to set the "jvm-route" in the > > framework/base/config/ofbiz-containers.xml file to insure the load > > balancer > > maintains sessions between requests. Here is a snippet of that > > configuration file. > > > > <container name="catalina-container" > > class="org.ofbiz.catalina.container.CatalinaContainer"> > > <!-- static configuration for tomcat --> > > <property name="delegator-name" value="default"/> > > <property name="use-naming" value="false"/> > > <property name="debug" value="0"/> > > <property name="catalina-runtime-home" value="runtime/catalina"/> > > <property name="apps-context-reloadable" value="false"/> > > <property name="apps-cross-context" value="false"/> > > <property name="apps-distributable" value="false"/> > > <!-- one or more tomcat engines (servers); map to this + host --> > > <property name="default-server" value="engine"> > > <property name="default-host" value="0.0.0.0"/> > > *<property name="jvm-route" value="jvm1"/>* > > <property name="access-log-pattern"> > > ..... > > > > > > 3. One large box is running our database server. > > > > > > We've been please with how well the Apache load balancing module works > > with > > ofbiz. > > > > > > Brett > > > > On Tue, Sep 22, 2009 at 2:42 AM, <[email protected]> wrote: > > > > > Hi, > > > > > > I want to load balance OFBiz requests using multiple servers(server > > > cluster). Do i need to use multiple tomcat instances for that?? Is > there > > > any other efficient way to go for the same.. > > > > > > I need to set up session replication using embedded tomcat but i am not > > > able to get any concrete steps to go ahead. Do i need multiple tomcat > > > instances running on different servers respective to same OFBiz code > > base > > > ?? or different OFBiz deployed on different application servers? > > > > > > > > > Thanks & Regards, > > > Neha Mehta > > > > > > > > > ______________________________________________________________________ > > > > > > ______________________________________________________________________ > > > > > > ______________________________________________________________________ > > -- Best Carsten Schinzer Waisenhausstr. 53a 80637 München Germany
