One of my sites is hosted via Amazon EC2 service. The problem starts happening when the site faces a heavy load which in turn spawns a new EC2 instance via AutoScaling. This is good but the issue is when these instances are killed (due to lack of load) the session information is also lost, and hence forcing the user to re-login in to the site.
What is the best way to approach this problem?
I have looked in to Memcached Session Manager & it works fine for Sticky sessions but causing problems when I try to use Non-sticky sessions since I make a lot of parallel requests to my server.
My current server is Apache+Tomcat
Any pointers helpful. Thanks.