1. Server planning Master: 192.168.0.152 Slave: 192.168.0.153 192.168.0.154 Monitoring server: 192.168.0.154 Note: In the real production environment, it is best to have a separate server to monitor database Replication. Here I will use a Salve directly. The server is used as a monitoring server. 2. Install MySQL Utilities and MySQL Connectors. Download MySQL Utilities and MySQL Connectors and install them on the 192.168.0.154 (monitoring server) server. Execute the following commands to install the downloaded MySQL Utilities and MySQL Connectors. Syum install&
1. MySQL-Detailed analysis of Replication monitoring and automatic failover
##Introduction: 1. Server Planning Master: 192.168.0.152 Slave: 192.168.0.153 192.168.0.154 Monitoring server: 192.168.0.154 Note: It is best to have a separate server to monitor the database Replication in the real production environment. Here I will directly use a Salve server as the monitoring server. 2. Install MySQL Utilities and MySQL
2. MySQL automatic failover tool--mysqlfailover
Introduction: mysqlfailover is an important high-availability command included in the MySQL utilities toolkit, which is used to perform health testing on the master-slave replication architecture and implement automatic failover. It will regularly detect the health status of each node at specified intervals. Once it captures that the master node is unavailable, it will trigger failover-related actions and automatically perform failover to the best slave server at the moment. At the same time, other slave nodes in the entire master-slave architecture will point to the new master node, automatically completing the master-slave topology update.
3. Mongo server cluster configuration learning two
##Introduction: The so-called replica set is a master-slave cluster with automatic failure recovery function. The biggest difference between the master-slave replication and the replica set in Learning No. 1 is that the replica set does not have a fixed master node, and the entire cluster structure will dynamically elect one. When the master node is broken, it will be dynamically changed to other nodes, and master-slave replication must be manually switched. The nodes of the replica set are called active nodes and backups
4.
MongoDB replica set automatic failover
Introduction: Election plays a very important role in the operation of the replica set. The election takes a lot of time. During the election process, the replica set does not have a master node. Unable to accept read requests from clients
5.
MongoDB replica set construction to achieve read and write sharing
Introduction: A replica set is a master-slave cluster with automatic failure recovery function. The most obvious difference between a master-slave cluster and a replica set is that the replica set does not have a fixed master node. You can think of a replica set as a set
6.
MySQL dual-machine hot standby + Heartbeat cluster + automatic failover (2 seconds)
Introduction: Environment description: This environment consists of two mysql databases and heartbeat. The IP of one is 192.168.10.197 and the other is 192.168.10.198. The VIP that provides external services is7.
MHA official document translation
Introduction: Overview MHA can achieve automatic fault detection and failover in a short period of time, usually within 10-30 seconds; in the replication framework, MHA can well solve the data consistency during the replication process Sexual problem, since there is no need to add additional servers to the existing replication, only one manager node is needed, and one Manager can manage multiple sets of replication, so #Introduction: MHA can realize automatic fault detection and failover within 10 to 30 seconds. It is suitable for high availability and data integrity requirements. occasion. To achieve seamless switching, you also need to rely on VI Introduction: MHA provides three ways to implement failover, namely automatic failover, which requires enabling MHA monitoring; manual failover without monitoring, and online manual switching. 10. Initial connection of Sqlserver2008 database mirroring session Introduction: After the sqlserver2008 database mirroring service configuration is completed, everyone You will find that we have two database services. These two services can achieve automatic failover. So how can our program automatically connect to a normal database? This question is very simple. Use ADO.NET or SQL Native Client to automatically connect to the failed partner [Related Q&A recommendations]:
The above is the detailed content of Recommended 10 tutorials on automatic failure examples. For more information, please follow other related articles on the PHP Chinese website!