On 23.10.2009 00:04, Tsirkin Evgeny wrote: > Hi Rainer! > Thanks a lot for taking a time to answer . > However i failed to explained my configuration :). > I have 2 physical server each running httpd which connects (via mod_jk) to > one > tomcat that is running on the same host (2 tomcats). > The "6" in tomcat meant to say that i have tomcat of version 6 . > However you actually helped me, please see below. > > No, if your load balancer does not implement session stickyness >> correctly - as you noted above - you need to let both Apache servers >> connect to all 6 Tomcats to be able to correct the erros done by the >> load balancer. >> >> > Do i actually have to? > If my tomcat are same and the sessions are replicated then what does it > metter to which one the request goes?
Not necessarily but it is generally good practice. If you do session replication *and* throw away stickyness, then most requests will ump between servers and your app will rely on the stability and correctness of session replication all the time. If you do replication plus stickyness, then most of the time you actually do not care whether replication works. Only in case of failure it keeps your sessions alive. That seems more robust. Furthermore if you need to investigate a problem of one user, everything will usually be in the logs of one node and not split betwen two nodes. >> wA0.port=8009 >> wA0.route=nodeA >> wA1.port=8109 >> wA1.route=nodeA >> wA2.port=8209 >> wA2.route=nodeA >> >> wB0.port=8009 >> wB0.route=nodeB >> wB1.port=8109 >> wB1.route=nodeB >> wB2.port=8209 >> wB2.route=nodeB >> >> ... >> >> > Thanks! > The "w.route" was something that i missed. > > However my problem is different : > I have several applications that are configured to be on different worker > while those workers > are on the _same_ tomcat instance ! Yes, this is what the wAx where for. All of them would point to the same host name. > That is because those workers use different configurations (such as timeout > etc.). > All the applications are in the same Engine on different Contexts . > How do i configure cluster in that case? For cluster configuration (session replication) I suggest you open a new discussion thread including the word cluster in the subject. > What i was thinking is that since i have one httpd for each tomcat then > there is no > point in setting the jvmRoute anyway.But is jvmRoute optional? See above concerning replication and stickyness. Regards, Rainer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org