Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Keepalived+Nginx to achieve high availability (HA)

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

There are 2 ways of high availability.

1. Nginx+keepalived master-slave configuration

In this scheme, one vip address is used, and two machines are used at the front end, one is the master and the other is ready, but only one machine is working at the same time, and the other backup machine is always in a state of waste when the master machine does not malfunction. For websites with few servers, this scheme is not economical.

2. Nginx+keepalived dual master configuration http://blog.csdn.net/caicongyang/article/details/46468397

In this scheme, two vip addresses are used, two machines are used in the front end, which are active and standby to each other, and two machines are working at the same time. When one machine fails, the request of the two machines is transferred to the burden of one machine, which is very suitable for the current architecture environment and uses DNS polling.

Http://blog.csdn.net/lexang1/article/details/52386909

The HA of keepalived is divided into preemptive mode and non-preemptive mode. When the MASTER recovers from the fault, it will preempt the VIP from the BACKUP node. Non-preemptive mode, that is, after MASTER is restored, it does not preempt the VIP after BACKUP is upgraded to MASTER. The configuration methods of preemptive mode and non-preemptive mode under CentOS7 are described below:

Http://blog.csdn.net/qq_27968607/article/details/60141007

Nginx+Keepalived High availability Cluster

Reference link: https://blog.51cto.com/superpcm/2095395

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report