Hello,
Is a failover possible with Apache Tomcat / Taskspace 6.7 SP2 possible?
We have a lot of customizations done on taskspace plus custom Java modules.
Thanks
It depends on what you expect. If you're expecting something like: user fills a form and whilst he submitting a form current node get failed and request goes to another one - that will not work (user will lose filled data) because of http protocol restriction - POST requests are idempotent. In the most cases the maximum profit you can get from failover setup is user stays logged-in during failover.
I guess this is fine.
I was thinking about setting up load balancing - failover via Nginx.
Do you have a better recommendation?
Failover has two parts in setup:
1. session replication: Apache Tomcat 6.0 (6.0.37) - Clustering/Session Replication HOW-TO
2. load balancing: it's very simple to setup apache httpd, but for nginx it could be a challenge, google for "nginx tomcat sticky sessions", like Nginx as http server and load balancer with tomcat | Java Thought
I just found this blog here on the forum:
http://xras3r.wordpress.com/2010/11/24/load-balancing-webtop-with-nginx/
I believe this is the proper way to setup Nginx. Thank you for your input!
that's not a best practice. Best practice is to use sticky sessions, not sticky ip addresses, and distribute clients between application servers randomly but not by ip address.
Why don't you use tomcat and apache httpd?
Hi Ahmad,
Have you successfully set up load balancing this way?
Would you be willing to share what to watch out for?
For load balancing feature you may also use hardware like F3.
Yes. You should be able to find all you need from apache website.
If you have any specific questions, let us know.