当前位置:网站首页>Customer disaster recovery case - a MySQL database migration scheme
Customer disaster recovery case - a MySQL database migration scheme
2022-06-24 04:40:00 【dongdonglin】
During the construction of customer disaster recovery plan , The customer migrates the database instance to the cloud MySQL Is a very common need . At present, the most commonly used general migration scheme is a more mature one , This scheme can be adopted in the general migration process ; But there is an inconvenient point in the general scheme : Business switching in the migration process is a difficult point , Adjust the business database connection configuration , Switch the read / write data source to CDB Example of IP. The step of adjusting the connection configuration of the business database is likely to store the missing information , The front-end business has been developing for a long time , There are multiple sources that connect to the database , It is difficult to adjust the access source to the target at one time .
General switching scheme :
In the figure, No 3 Step , The business side is required to modify the direction MySQL Of IP.
This scheme provides a migration scheme : By directly modifying the database connection IP, Realize fast business switching , Avoid business front-end redirection IP.
This plan :
HHA yes MySQL Relatively mature solutions for high availability , This article illustrates with examples , Create a database on behalf of the customer .
Switch preconditions :
at present MySQL The console provides modification " Connect VIP" The function of :
This address is MySQL Connection provided VIP, this VIP It can be modified to any unoccupied in the subnet of this instance IP Address . Based on this principle , Require previous source data VIP In the same subnet as the target instance . This is guaranteed by resource planning .
Switching steps :
- Pre check . Check that the data synchronization is complete and as expected .
- Close target MySQL read-only , Open source MySQL read-only .
- Put the source library's MHA Of VIP Release .
- The target MySQL Of VIP Change to source VIP.
- Log in to the source library ,kill The process of deleting non system accounts .
- Observe the business situation , To complete the migration .
matters needing attention : A fallback strategy should be made during the switching process ,3,4 There are certain risks in the process , Careful evaluation is required before operation .
边栏推荐
- Digital transformation practice of Zheshang Bank
- Clickhouse thread occupation troubleshooting and killing
- Are you ready for the exam preparation strategy of level II cost engineer in 2022?
- 梯度下降法介紹-黑馬程序員機器學習講義
- What is etcd and its application scenarios
- 英特尔 XTU 官方超频工具已支持 Win11 22H2 和 13 代酷睿 Raptor Lake 处理器
- What does IIS mean and what is its function? How does IIS set the size of the web site space on the server?
- Web penetration test - 5. Brute force cracking vulnerability - (8) PostgreSQL password cracking
- Two most practical methods for cadence OrCAD capture to batch modify network names graphic tutorial and video demonstration
- web渗透测试----5、暴力破解漏洞--(5)SMB密码破解
猜你喜欢

Abnova多肽设计和合成解决方案

Opengauss version 3.0 source code compilation and installation guide

梯度下降法介紹-黑馬程序員機器學習講義

What is the data center

Are you ready for the exam preparation strategy of level II cost engineer in 2022?

Recognize workplus again, not only im but also enterprise mobile application management expert

apipost接口断言详解

How does the compiler put the first instruction executed by the chip at the start address of the chip?

Final summary of freshman semester (supplement knowledge loopholes)

编译器是如何将芯片执行的第一个指令放到芯片起始地址的?
随机推荐
How to install software on ECs is it expensive to rent ECS
外网访问svn服务器(外网访问部署在云上的svn服务器)
What is an ECS? What is the difference between ECs and traditional servers?
Advanced authentication of uni app [Day12]
事件
Worthington脱氧核糖核酸酶I特异性和相关研究
ribbon
ribbon
Worthington胰蛋白酶的物化性质及特异性
I have an agreement with IOT
Abnova多肽设计和合成解决方案
The results of the 2022 open source summer were announced, and 449 college students will contribute to open source projects
What are the advantages of ECS? Is ECS better than VM?
How to operate ECs and what types of system configuration schemes can be supported
High availability architecture design to deal with network failure of operators
Introduction to C language custom types (structure, enumeration, union, bit segment)
What is Ping? How can the server disable Ping?
华为云GaussDB(for Redis)揭秘第19期:GaussDB(for Redis)全面对比Codis
What is etcd and its application scenarios
What are the differences between ECs and virtual hosts? Which is better, ECS or VM?