In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to use Redware, Nginx and Keepalive to achieve load balancing. The article is rich in content and analyzes and describes it from a professional point of view. I hope you can get something after reading this article.
Load balancing with Redware, Nginx and Keepalive
First of all, there are two types of architecture:
The first kind: stand-alone active and standby
The upper layer redware for distribution, two Nginx for active and standby, and Keepalive for VIP
Usually, the data from redware is distributed to the downstream tomcat,nginx2 through nginx1 as a standby. When Nginx1 is down or something goes wrong, keepalive automatically distributes the data to Nginx2.
[disadvantages]: if the downtime of Nginx1 is caused by too many requests, the problem still exists when switching to Nginx2.
Architecture diagram:
The second kind: dual computer hot standby
Redware provides VIP directly, and both Nginx are alive to distribute data. If one Nginx is down, the other can survive.
The third kind: active and standby mode
The two Nginx point to tomcat1,tomcat2 that the slave is not put into use. When the tomca1 is down, Nginx points to tomcat2.
The fourth kind: polling
Each request of Nginx1 and Nginx2 is allocated to Tomcat1 and Tomcat2 one by one in chronological order. When the backend server Tomcat1 goes down, it can be automatically eliminated and distributed to Tomcat2 sequentially.
IP_hush
The above is what the editor shares with you how to achieve load balancing with Redware, Nginx and Keepalive. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.