logu Posted May 17, 2014 Posted May 17, 2014 Hi, I have deployed jasperserver with my web application in the environment like Clustered two Tomcat sharing same database in Microsoft Azure Load Balanced Virtual Machines. But the problem is jasperserver strictly requires session affinity which is not possible in Microsoft Azure Load Balanced Virtual Machines. 1) If you have any other solution/suggestion which is suitable for my environment, please guide me. 2) Which one is best suitable for my environment and why ? on comparing Azure load balanced Virtual Machines and Apache httpd load balancing. Environment : 1) Jasperserver 5.5 Commercial edition with session replication. 2) Two apache-tomcat-6.0.36 clustered instance sharing same database (Mysql 5.5). 3) Linux Machine - Ubuntu 13.10 Server in Azure load balanced Virtual Machines. Thanks in advance for reading and answering my question. Every comment/idea is highly appreciated.
marianol Posted May 19, 2014 Posted May 19, 2014 I'm not sure about performance comparison since i;m not familiar with Azure load Balancers.But you are correct, JasperServer needs sticky (pinned) sessions to work in a cluster. You can find info on designing a cluster in the JasperServer Ultimate Guide.You can use Apache HTTPD with mod_jk in front of your tomcat cluste as a load balancer, remember to set sticky_session=True in your workers configuration. I found this tutorial on clustering Tomcat that explains the setup and is prettly helpful.
logu Posted May 20, 2014 Author Posted May 20, 2014 Hi Marianol, Thanks for your suggestion. I have configured load balancing using apache httpd and working fine. In Azure also with Kemp load balancer we can achieve session affinity.
logu Posted May 21, 2014 Author Posted May 21, 2014 Is there any other hotfix/solution to this problem in jasperserver side in azure load balanced environament ?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now