Seesion problem with Nignx load balancing mysql cluster load balancing load balancer activemq load balancing

WBOY
Release: 2016-07-29 08:49:45
Original
1631 people have browsed it

*When using weights or rotation to access the server, the sessions generated by the two visits are not on the same server, causing the session to not be found.
Solution:
1. You can temporarily use the ip_hash policy to bind the user to a certain server
2. Through session replication, server network broadcast (network review pressure is relatively high, as long as a key value in a session changes, session synchronization will be performed)
(1) Set the option to enable session replication in tomcat.xml

(2 ) In our application, set up support for distributed web. memcache/redis, etc.

The above introduces the seesion problems of Nignx load balancing, including load balancing and ign content. I hope it will be helpful to friends who are interested in PHP tutorials.

负载均衡,nginx负载均衡配置,f5 负载均衡,负载均衡解决方案,nginx 负载均衡,nginx tomcat负载均衡,mysql集群负载均衡,负载均衡器,activemq负载均

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!