The test server needs to be load balanced, using Nginx+tomcat.
After the load balancer configuration is successful, the session synchronization is configured with memcached. A total of 4 servers, three servers successfully configured successful, the last server can not be shared.
The process of solving this problem is tortuous and is not limited to the following operations.
Rebooting the system
Check the rational configuration countless times
Redeploy an app
Replicate normal host application to native
Copy normal host Tomcat to native
。。
Intermittent, add up to engage at least for a day of time, still no effect.
Application and application server are consistent, the basic can be queued is the problem of the program, it can only be host problems, I almost want to restart the host. However, a remote host restart can be very cumbersome and give up.
Looking for ah, in the Internet search a lot of information, in the end, in the process of finding, found a word in an article, the point woke me.
A consistent timestamp between servers is also important, because time inconsistency will directly cause the session to expire.
Check it out, sure enough. Three servers are the right time, and a machine's time is 9 hours late.
Workaround:
:xx
Try again, it's normal.
Inconsistent system time causes memcached session to not share