-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Gibu,
On 8/18/16 10:55 AM, Gibu George wrote: > I have setup a tomcat cluster that store the session information in > a mysql dB. I also have a load balancer in front of this cluster. > > I have noticed a delay, in few seconds, before the session > information is stored in the dB. Is there any way to reduce this > delay and get tomcat to store the session information, in the dB, > instantly? > > One of the threads in the tomcat archives talks about "synchronous > session replication" ( ( > https://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html#Cluster_Co nfiguration_for_ReplicationTransmitter_(_synchronous_-_mode) > > ) ) . Is this still a valid configuration for tomcat8.0 ? Are you wanting to speed-up replication across the cluster, or the writes to the database-backed store? Or both? > My setup works fine when the load balancer is configured with > sticky sessions. When sticky sessions are removed, i am facing > issues in logging into the application thats hosted on my tomcat > cluster. I believe this is due to the delay in storing the session > information in dB. Is this right? Is there a problem using sticky sessions? Sticky sessions are pretty much always a good idea since they solve many of these problems. Use of sticky sessions does not preclude fail-over-without-re-login. Can you post your existing configuration? - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJXtdiCAAoJEBzwKT+lPKRYkfEP/1KK1BNjDbE20L9pBS9i5NTV B2A7IxN0F7D14QmBVgEe1RO3uB+e2XyS6up4S2VOW1g+YMUj2p2VoBjs6zfiIeQX VlRkFbz9zyrHwhliR7BrM9fI510a9Tzq+upML1uwF23GUlPk1xKTo/fBI7CCs6He j4SZTVSmK8Theo3m3HBR3AqHWyA7a8ehqijMDUza9OO/ED2gY29crV9gqm7nR/// AaR4gNeEa+2I/ymyDyEJvQIDyWRpZFavkS2AXnu/IcHtxlJO96BIQsikdeNnI39E P4slRzWSvpnmTNABbCecPPaLmZSkhZMJKwuHKo4YAQsVCBRjlj3DlE5zGAhRV4xj jan4lhJjRDtvZHWXCOiGTxvnYtwl5uYjbef0XGeXz44AwoLWxxkRb1k7FmG2wJB+ dNrRh8SXOy/FnWtFaQjapksfbO8szMohV7nVIHB+InmLSeab/Ifs+azDiuMwdWEl 8iGkZPMn3AfbH593kD5oTy4qgBm+k+sUJ+/RmU7bLxu3JCDuuRce0U9cXHn7/12o BnfspJY7vq6iSSD282RCknjcsS0uy2pQfeHED+S6KIS/bw4mGAQXTj2acp07MIol pfes+scjVo+SJTRZiGLABpX+0VJgSaZI1OhWTVFWe8zQhCghXN+91/xT0XIQvNrH p0MoP6H4qRrfhdHFdPEB =ZLFO -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org