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

Primary and primary replication in passive mode

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Primary and primary replication in passive mode

It means that two servers have the same status, but one of them is read-only, and only one server is written in the business.

Method, add read-only=1 to the configuration of one of them:

Benefit: if the server for writing fails, it can quickly switch to the slave server.

Or for maintenance and other purposes, it is more convenient to switch the write function to another server.

There are many master replicas of slave servers in practical applications.

Ring structure ()

That is, three servers, each of which forms a master/slave relationship with its front / back server.

The downside: any server is broken, affecting the other 2. Not as stable as the master replication formed by 2 sets.

In practical use, it is not much.

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

Database

Wechat

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

12
Report