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 ______________________________________________________________________ |
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, <[hidden email]> 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 > > > ______________________________________________________________________ |
In reply to this post by Neha Mehta
Hi Neha,
because OFBiz is using Tomcat V5 check on the internet how to load balance tomcat together with apache. there is a lot of text on that, an example: http://tomcat.apache.org/tomcat-5.5-doc/balancer-howto.html Regards, Hans On Tue, 2009-09-22 at 14:12 +0530, [hidden email] 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 > > > ______________________________________________________________________ Antwebsystems.com: Quality OFBiz services for competitive rates |
OFBiz uses Tomcat v6
Regards Scott On 22/09/2009, at 9:35 PM, Hans Bakker wrote: > Hi Neha, > > because OFBiz is using Tomcat V5 check on the internet how to load > balance tomcat together with apache. > > there is a lot of text on that, an example: > http://tomcat.apache.org/tomcat-5.5-doc/balancer-howto.html > > Regards, > Hans > > On Tue, 2009-09-22 at 14:12 +0530, [hidden email] 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 >> >> >> ______________________________________________________________________ > -- > Antwebsystems.com: Quality OFBiz services for competitive rates > smime.p7s (3K) Download Attachment |
In reply to this post by Brett
Hi Brett,
Thanx for your generosity. I have to load balance OFBiz on multiple servers. For this do i need to have replica of my OFBiz code running on multiple servers and run embedded OFBiz tomcat on all these servers??? Or do i need to have multiple tomcat instances on a single server?? ALso please let me know, is it better to use embedded tomcat or external tomcat for load balancing ?? All the forums that i have read talk about running multiple tomcat instances on same server.. I do not understand the reason behind this.. Kindly help me out. Thanks & Regards, Neha Mehta ______________________________________________________________________ |
1. We run one instance of ofbiz on a separate server but this is because we
are running a single application and want to scale by adding more machines. 2. It is easier to use the embedded ofbiz version rather than a standalone tomcat with ofbiz placed as a standard WAR file. From the Apache Web server perspective there isn't any difference. It is talking AJP protocol and can't tell if it is an embedded version of tomcat or standalone. 3. I'm not sure the reason some are running several version of ofbiz on the same machine. My guess is they have different customers or application and don't need the extra hardware to service these applications. We multiple instances of ofbiz on the same machine but this is so we can have a dev, testing, and production version running on the same machine. For maximum scalability you would put 1 instance of ofbiz on a single machine and load balance between these machines. We are using Amazon's EC2 servers so it is easy for us to shutdown to a single server at night and then start up several server during the days when the application is busy. Brett On Tue, Sep 22, 2009 at 10:45 PM, <[hidden email]> wrote: > Hi Brett, > > Thanx for your generosity. > I have to load balance OFBiz on multiple servers. For this do i need to > have replica of my OFBiz code running on multiple servers and run embedded > OFBiz tomcat on all these servers??? Or do i need to have multiple tomcat > instances on a single server?? ALso please let me know, is it better to > use embedded tomcat or external tomcat for load balancing ?? > > All the forums that i have read talk about running multiple tomcat > instances on same server.. I do not understand the reason behind this.. > Kindly help me out. > > > > Thanks & Regards, > Neha Mehta > > > ______________________________________________________________________ |
and Yes, you need to replicate the same code on all the different machines.
We have used subversion to do this as you only need to update each server to the version you want to run. Then manually modify some config files such as the jvm path that I indicated earlier and your up and running. Brett On Tue, Sep 22, 2009 at 11:30 PM, Brett Palmer <[hidden email]>wrote: > 1. We run one instance of ofbiz on a separate server but this is because > we are running a single application and want to scale by adding more > machines. > > 2. It is easier to use the embedded ofbiz version rather than a standalone > tomcat with ofbiz placed as a standard WAR file. From the Apache Web server > perspective there isn't any difference. It is talking AJP protocol and > can't tell if it is an embedded version of tomcat or standalone. > > 3. I'm not sure the reason some are running several version of ofbiz on > the same machine. My guess is they have different customers or application > and don't need the extra hardware to service these applications. We > multiple instances of ofbiz on the same machine but this is so we can have a > dev, testing, and production version running on the same machine. > > For maximum scalability you would put 1 instance of ofbiz on a single > machine and load balance between these machines. We are using Amazon's EC2 > servers so it is easy for us to shutdown to a single server at night and > then start up several server during the days when the application is busy. > > > Brett > > On Tue, Sep 22, 2009 at 10:45 PM, <[hidden email]> wrote: > >> Hi Brett, >> >> Thanx for your generosity. >> I have to load balance OFBiz on multiple servers. For this do i need to >> have replica of my OFBiz code running on multiple servers and run embedded >> OFBiz tomcat on all these servers??? Or do i need to have multiple tomcat >> instances on a single server?? ALso please let me know, is it better to >> use embedded tomcat or external tomcat for load balancing ?? >> >> All the forums that i have read talk about running multiple tomcat >> instances on same server.. I do not understand the reason behind this.. >> Kindly help me out. >> >> >> >> Thanks & Regards, >> Neha Mehta >> >> >> ______________________________________________________________________ > > > |
In reply to this post by Brett
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 <[hidden email]> 09/22/2009 03:01 PM Please respond to [hidden email] To [hidden email] 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, <[hidden email]> 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 > > > ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ |
If your Apache is 2.2.x, you should use mod_proxy rather than mod_jk.
在 2009-09-29二的 14:28 +0530,Neha.Mehta@lntinfotech.com写道: > 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 <[hidden email]> > 09/22/2009 03:01 PM > Please respond to > [hidden email] > > > To > [hidden email] > 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, <[hidden email]> 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 > > > > > > ______________________________________________________________________ > > > ______________________________________________________________________ > > > ______________________________________________________________________ |
Hi,
Thanx for your reply, i used mod_proxy but was completely unable to conenct Apache Server with OFBiz. So i switched to mod_jk to get an experience of load balncing first and then switch to mod_proxy again. Could you please provide me with an appropriate help that could lead me to get OFBiz load balnced using mod_proxy Thanks & Regards, Neha Mehta Shi Jinghai <[hidden email]> 09/29/2009 02:32 PM Please respond to [hidden email] To [hidden email] cc Subject Re: Load Balancing in OFbiz If your Apache is 2.2.x, you should use mod_proxy rather than mod_jk. 在 2009-09-29二的 14:28 +0530,Neha.Mehta@lntinfotech.com写道: > 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" > <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 <[hidden email]> > 09/22/2009 03:01 PM > Please respond to > [hidden email] > > > To > [hidden email] > cc > > Subject > Re: Load Balancing in OFbiz > > > > > > > Neha, > > Here is a configuration we use to do load balancing in ofbiz. Others > 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 > 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, <[hidden email]> 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 > > 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 > > > > > > ______________________________________________________________________ > > > ______________________________________________________________________ > > > ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ |
In reply to this post by Shi Jinghai
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 <[hidden email]> > If your Apache is 2.2.x, you should use mod_proxy rather than mod_jk. > > > 在 2009-09-29二的 14:28 +0530,Neha.Mehta@lntinfotech.com写道: > > 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 <[hidden email]> > > 09/22/2009 03:01 PM > > Please respond to > > [hidden email] > > > > > > To > > [hidden email] > > 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, <[hidden email]> 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 |
Hi,
Thanx a lot for the help.I have been able to load balance multiple OFBiz servers using Apache Httpd Server and mod_jk. But it is working with session stickiness. Can anybody help me in running load balanced servers in session replication mode. Thanks & Regards, Neha Mehta ______________________________________________________________________ |
Free forum by Nabble | Edit this page |