当前位置:网站首页>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 .
边栏推荐
- Clickhouse thread occupation troubleshooting and killing
- 2022年二级造价工程师备考攻略,你准备好了吗?
- How can the new generation of HTAP databases be reshaped in the cloud? Tidb V6 online conference will be announced soon!
- Kubernetes resource topology aware scheduling optimization
- IDC, Youshang cloud data on cloud (COS) best practices
- Application practice | Apache Doris integrates iceberg + Flink CDC to build a real-time federated query and analysis architecture integrating lake and warehouse
- Web penetration test - 5. Brute force cracking vulnerability - (5) SMB password cracking
- Summary of the activation function sigmoid relu tanh Gelu in machine learning and deep learning
- How to build a website for ECS is the price of ECS very expensive
- 博士申请 | 香港科技大学(广州)刘浩老师招收数据挖掘方向全奖博士/硕士
猜你喜欢

阿里云新一代云计算体系架构 CIPU 到底是啥?

微博国际版更名为微博轻享版

Openeuler kernel technology sharing issue 20 - execution entity creation and switching

Changjiang Dayong, director of openeuler community: jointly promote the new open source model of Euler and jointly build a new open source system
Summary of Android interview questions in 2020 (intermediate)

What is the data center
![Web technology sharing | [map] to realize customized track playback](/img/b2/25677ca08d1fb83290dd825a242f06.png)
Web technology sharing | [map] to realize customized track playback

Introduction to gradient descent method - black horse programmer machine learning handout

线性回归的损失和优化,机器学习预测房价

External network access SVN server (external network access SVN server deployed on the cloud)
随机推荐
Through the fog: location notes of Flink crash with a multi component timeout
Worthington胰蛋白酶的物化性质及特异性
梯度下降法介绍-黑马程序员机器学习讲义
近两周ACM之DP总结
Web penetration test - 5. Brute force cracking vulnerability - (5) SMB password cracking
Backup method of mysqldump
Final summary of freshman semester (supplement knowledge loopholes)
Facebook内部通告:将重新整合即时通讯功能
How to build a website for ECS is the price of ECS very expensive
mini-Web框架:装饰器方式的添加路由 | 黑马程序员
web渗透测试----5、暴力破解漏洞--(5)SMB密码破解
apipost接口断言详解
SAP MTS/ATO/MTO/ETO专题之八:ATO模式2 D+空模式策略用85
Abnova膜蛋白脂蛋白体解决方案
Web penetration test - 5. Brute force cracking vulnerability - (6) VNC password cracking
lldb常用命令
uni-app进阶之认证【day12】
数据库解答建标,按要求回答
How does ECS select bandwidth? What types of servers do you usually have?
Worthington脱氧核糖核酸酶I特异性和相关研究