2017-06-05 1 views
-4

Bonjour,Apache 2.4 load balancing avec 3 tomcats non fonctionnel

J'ai configuré apache 2.4 pour repartir la charge entre 3 Tomcat en utilisant le mod_jk mais après l'authentification à l'application hébergée dans les 3 Tomcat apache recharge la page d'authentification en changent le tomcat connecté.

Veuillez trouver ci apres le fichier worker properties :

worker.list=balancer,tomcat1,tomcat2,tomcat3 
worker.tomcat1.type=ajp13 
worker.tomcat1.port=8009 
worker.tomcat1.host=192.16.26.138 
worker.tomcat1.lbfactor=1 
worker.tomcat1.cachesize=10 
worker.tomcat2.type=ajp13 
worker.tomcat2.port=8009 
worker.tomcat2.host=192.16.26.139 
worker.tomcat2.lbfactor=1 
worker.tomcat2.cachesize=10 
worker.tomcat3.type=ajp13 
worker.tomcat3.port=8009 
worker.tomcat3.host=192.16.26.140 
worker.tomcat3.lbfactor=1 
worker.tomcat3.cachesize=10 
worker.balancer.type=lb 
worker.balancer.balance_workers=tomcat1,tomcat2,tomcat3 
worker.balancer.sticky_session=false 
worker.balancer.method=Busyness 
+0

Hello! Welcome to StackOverflow! Please, write yuor questions in English. –

Répondre

-1

Bonjour,

Le probleme est resolue il faut juste ajouter dans le fichier server.tomcat la ligne suivante :

<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat1"> 

Le probleme etait dans jvmRoute.