Hi All,
Does any one have experiences with a multi server setup (High Availability - Fail Over) with either the embedded tomcat server or using external servers? I am seeing some erratic behaviour in a 3 server installation, and I don't know whether this is due to specific hot-deploy apps or otherwise. Please share your experiences. Regards, Pierre Smits *ORRTIZ.COM <http://www.orrtiz.com>* Services & Solutions for Cloud- Based Manufacturing, Professional Services and Retail & Trade http://www.orrtiz.com |
You should post "some erratic behaviour"
|
In reply to this post by Pierre Smits
It might help to be more specific about the problem. What do you mean by
"erratic behavior?" What version of OFBiz? How is the cluster configured? Adrian Crum Sandglass Software www.sandglass-software.com On 1/2/2014 4:01 AM, Pierre Smits wrote: > Hi All, > > Does any one have experiences with a multi server setup (High Availability > - Fail Over) with either the embedded tomcat server or using external > servers? I am seeing some erratic behaviour in a 3 server installation, and > I don't know whether this is due to specific hot-deploy apps or otherwise. > > Please share your experiences. > > Regards, > > Pierre Smits > > *ORRTIZ.COM <http://www.orrtiz.com>* > Services & Solutions for Cloud- > Based Manufacturing, Professional > Services and Retail & Trade > http://www.orrtiz.com > |
In a test environment we have setup the following configuration:
- Apache http server in front with mod_jk configured for load balancing pointing via ajp to: - 3 OFBiz spokes based on trunk (embedded tomcat version) on linux, each set with own unique.instanceId (ofbiz1, ofbiz2, ofbiz3) and each with own jvm-route (ofbiz1, ofbiz2, ofbiz3 - DCC implemented (activemq lib installed - as per JIRA OFBIZ-5448), connecting to Apache Servicemix. This works - demo loaded in default - setup of a few test tenants (tenantA, tenantB, tenantC) with seed, seed-initial and seed-ext data, plus specific product data tenant users (with proper permissions and roles) for each tenant The erratic behaviours we are seeing are: 1) In the backend, when having logged in a tenant, we experience that when having logged in e.g. the catalog or contant and having accessed a screen (meaning screen is loaded and shown properly), when going to another screen in the same application the user is required to login again. This happens very regularly. 2) In a hot-deploy copy of the ecommerce application (re-using services and groovy script files, but pointers to menu, screens and forms (including ftl files) are to the objects in the (own) hot-deploy copy, we see that when having loaded (and properly shown) the main screen (with promotions overview) and going to e.g. a specific product in the promotions overview we experience the display of a blank screen. This also happens frequently. After reloading the screen in the browser the correct screen is loaded and shown. 3) In above mentioned hot-deploy copy of the ecommerce app when trying to display products in a category from the tree we regularly get following message: An error occured loading content!: [object Object] Regards, Pierre Smits *ORRTIZ.COM <http://www.orrtiz.com>* Services & Solutions for Cloud- Based Manufacturing, Professional Services and Retail & Trade http://www.orrtiz.com |
In the second situation described in my previous post, I meant to say that
the pointers to groovy scripts and services (when and where applicable) aren't modified and point to the locations in the special-purpose ecommerce application. Pierre Smits *ORRTIZ.COM <http://www.orrtiz.com>* Services & Solutions for Cloud- Based Manufacturing, Professional Services and Retail & Trade http://www.orrtiz.com On Thu, Jan 2, 2014 at 1:16 PM, Pierre Smits <[hidden email]> wrote: > In a test environment we have setup the following configuration: > > - Apache http server in front with mod_jk configured for load balancing > pointing via ajp to: > - 3 OFBiz spokes based on trunk (embedded tomcat version) on linux, each > set with own unique.instanceId (ofbiz1, ofbiz2, ofbiz3) and each with own > jvm-route (ofbiz1, ofbiz2, ofbiz3 > - DCC implemented (activemq lib installed - as per JIRA OFBIZ-5448), > connecting to Apache Servicemix. This works > - demo loaded in default > - setup of a few test tenants (tenantA, tenantB, tenantC) with seed, > seed-initial and seed-ext data, plus specific product data tenant users > (with proper permissions and roles) for each tenant > > > The erratic behaviours we are seeing are: > > 1) > In the backend, when having logged in a tenant, we experience that when > having logged in e.g. the catalog or contant and having accessed a screen > (meaning screen is loaded and shown properly), when going to another screen > in the same application the user is required to login again. This happens > very regularly. > > 2) > In a hot-deploy copy of the ecommerce application (re-using services and > groovy script files, but pointers to menu, screens and forms (including ftl > files) are to the objects in the (own) hot-deploy copy, we see that when > having loaded (and properly shown) the main screen (with promotions > overview) and going to e.g. a specific product in the promotions overview > we experience the display of a blank screen. This also happens frequently. > After reloading the screen in the browser the correct screen is loaded and > shown. > > 3) > In above mentioned hot-deploy copy of the ecommerce app when trying to > display products in a category from the tree we regularly get following > message: An error occured loading content!: [object Object] > > Regards, > > > > Pierre Smits > > *ORRTIZ.COM <http://www.orrtiz.com>* > Services & Solutions for Cloud- > Based Manufacturing, Professional > Services and Retail & Trade > http://www.orrtiz.com > > |
In reply to this post by Pierre Smits
You probably have to define "sticky sessions" in your mod_jk Config.
Sent from my BlackBerry® PlayBook™ www.blackberry.com ------------------------------ *From:* "Pierre Smits" <[hidden email]> *To:* "[hidden email]" <[hidden email]> *Sent:* January 2, 2014 4:17 AM *Subject:* Re: Multiple server setup (HAFO) In a test environment we have setup the following configuration: - Apache http server in front with mod_jk configured for load balancing pointing via ajp to: - 3 OFBiz spokes based on trunk (embedded tomcat version) on linux, each set with own unique.instanceId (ofbiz1, ofbiz2, ofbiz3) and each with own jvm-route (ofbiz1, ofbiz2, ofbiz3 - DCC implemented (activemq lib installed - as per JIRA OFBIZ-5448), connecting to Apache Servicemix. This works - demo loaded in default - setup of a few test tenants (tenantA, tenantB, tenantC) with seed, seed-initial and seed-ext data, plus specific product data tenant users (with proper permissions and roles) for each tenant The erratic behaviours we are seeing are: 1) In the backend, when having logged in a tenant, we experience that when having logged in e.g. the catalog or contant and having accessed a screen (meaning screen is loaded and shown properly), when going to another screen in the same application the user is required to login again. This happens very regularly. 2) In a hot-deploy copy of the ecommerce application (re-using services and groovy script files, but pointers to menu, screens and forms (including ftl files) are to the objects in the (own) hot-deploy copy, we see that when having loaded (and properly shown) the main screen (with promotions overview) and going to e.g. a specific product in the promotions overview we experience the display of a blank screen. This also happens frequently. After reloading the screen in the browser the correct screen is loaded and shown. 3) In above mentioned hot-deploy copy of the ecommerce app when trying to display products in a category from the tree we regularly get following message: An error occured loading content!: [object Object] Regards, Pierre Smits *ORRTIZ.COM * Services & Solutions for Cloud- Based Manufacturing, Professional Services and Retail & Tradehttp://www.orrtiz.com |
Thanks Mike,
But I have following in my workers.properties file for mod_jk configuration: worker.test-LB.sticky_session=True Regards, Pierre Smits *ORRTIZ.COM <http://www.orrtiz.com>* Services & Solutions for Cloud- Based Manufacturing, Professional Services and Retail & Trade http://www.orrtiz.com On Thu, Jan 2, 2014 at 8:54 PM, Mike Z <[hidden email]> wrote: > You probably have to define "sticky sessions" in your mod_jk Config. > > Sent from my BlackBerry® PlayBook™ > www.blackberry.com > > ------------------------------ > *From:* "Pierre Smits" <[hidden email]> > *To:* "[hidden email]" <[hidden email]> > *Sent:* January 2, 2014 4:17 AM > *Subject:* Re: Multiple server setup (HAFO) > > In a test environment we have setup the following configuration: > > - Apache http server in front with mod_jk configured for load balancing > pointing via ajp to: > - 3 OFBiz spokes based on trunk (embedded tomcat version) on linux, each > set with own unique.instanceId (ofbiz1, ofbiz2, ofbiz3) and each with own > jvm-route (ofbiz1, ofbiz2, ofbiz3 > - DCC implemented (activemq lib installed - as per JIRA OFBIZ-5448), > connecting to Apache Servicemix. This works > - demo loaded in default > - setup of a few test tenants (tenantA, tenantB, tenantC) with seed, > seed-initial and seed-ext data, plus specific product data tenant users > (with proper permissions and roles) for each tenant > > > The erratic behaviours we are seeing are: > > 1) > In the backend, when having logged in a tenant, we experience that when > having logged in e.g. the catalog or contant and having accessed a screen > (meaning screen is loaded and shown properly), when going to another screen > in the same application the user is required to login again. This happens > very regularly. > > 2) > In a hot-deploy copy of the ecommerce application (re-using services and > groovy script files, but pointers to menu, screens and forms (including ftl > files) are to the objects in the (own) hot-deploy copy, we see that when > having loaded (and properly shown) the main screen (with promotions > overview) and going to e.g. a specific product in the promotions overview > we experience the display of a blank screen. This also happens frequently. > After reloading the screen in the browser the correct screen is loaded and > shown. > > 3) > In above mentioned hot-deploy copy of the ecommerce app when trying to > display products in a category from the tree we regularly get following > message: An error occured loading content!: [object Object] > > Regards, > > > > Pierre Smits > > *ORRTIZ.COM * > Services & Solutions for Cloud- > Based Manufacturing, Professional > Services and Retail & Tradehttp://www.orrtiz.com > |
In reply to this post by Pierre Smits
Check that resource URLs aren't html encoded, some browsers fail to send cookie information in that situation which causes a new session to be created.
Scott On 2/01/2014, at 12:16 PM, Pierre Smits wrote: > 1) > In the backend, when having logged in a tenant, we experience that when > having logged in e.g. the catalog or contant and having accessed a screen > (meaning screen is loaded and shown properly), when going to another screen > in the same application the user is required to login again. This happens > very regularly. |
Thanks Scot,
Given that I use trunk as the basis and its data (with a few modifications regarding the test tenants) I don't expect this to be the case. But I will have it looked into. Regards, Pierre Smits *ORRTIZ.COM <http://www.orrtiz.com>* Services & Solutions for Cloud- Based Manufacturing, Professional Services and Retail & Trade http://www.orrtiz.com On Thu, Jan 2, 2014 at 11:34 PM, Scott Gray <[hidden email]>wrote: > Check that resource URLs aren't html encoded, some browsers fail to send > cookie information in that situation which causes a new session to be > created. > > Scott > > On 2/01/2014, at 12:16 PM, Pierre Smits wrote: > > > 1) > > In the backend, when having logged in a tenant, we experience that when > > having logged in e.g. the catalog or contant and having accessed a screen > > (meaning screen is loaded and shown properly), when going to another > screen > > in the same application the user is required to login again. This happens > > very regularly. > > |
Free forum by Nabble | Edit this page |