Comments (4)
How do you want to take backups?
Where:
- Crashed master: If OS access is not possible (i.e. kernel panic), we can't take lvm snapshot here.
- Candidate master or other slaves?: At the time master crashes, there may be inconsistencies between candidate master and other slaves
When:
- Before starting recovery: If you can access to the crashed master via SSH, you can take backups by implementing "master_ip_failover_script --stopssh (http://code.google.com/p/mysql-master-ha/wiki/Parameters#master_ip_failover_script)" or "shutdown_script (http://code.google.com/p/mysql-master-ha/wiki/Parameters#shutdown_script)".
- After completing recovery (but before allowing writes on the new master): You can always take backups from the new master by implementing master_ip_failover_script --start.
from mha4mysql-manager.
sorry, i explain it bad. The backup is made before crash :)
the snapshot functionality of lvm is very good for this.
did you know multi-master-mysql? http://mysql-mmm.org/
from mha4mysql-manager.
As a backup solution, LVM snapshot has serious performance problems while taking backups so I don't like it. xtrabackup is much better. Taking backups with xtrabackup is easy so I don't think I need to provide utility tools in MHA to take regular backups.
BTW, every MySQL expert knows MMM and its fundamental issues. MMM can't always work as an HA software so that's one of the reasons why I developed MHA. Please read Baron's post (http://www.xaprb.com/blog/2011/05/04/whats-wrong-with-mmm/) if you haven't.
from mha4mysql-manager.
Closing this issue because I won't implement as a core module function.
from mha4mysql-manager.
Related Issues (20)
- There is no ssh_port parameter in the master_ip_failover template HOT 1
- Download problem
- Centos7.8 mha0.58 installation error reported
- MHA binlog setting check failed, need to set --start_file or --binlog_prefix HOT 1
- monitor lock released after re-connect when connection loss
- when i start mha mamanger node,i found the error Wed Sep 2 15:09:37 2020 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln424] Error happened on checking configurations. Failed to get IP address on host xxxxxx.
- MHA mysql command failed with rc 1:0! HOT 1
- Checking if super_read_only is defined and turned on..DBD::mysql::st execute failed: Unknown system variable 'super_read_only' at /usr/local/share/perl5/MHA/SlaveUtil.pm line 245.
- Failover might not work when Master_Log_File changed
- 能不能发布一版python 版本的 能不能不用root 免密登录 用mysql用户来做免密登录?
- can't find the MHA::slaveUtil file HOT 1
- Question about run mha on Ubuntu 20.04,mariadb 10.3.25 HOT 2
- socket leak with mha 0.56
- special character issue.
- 加入电源shutdown脚本报错
- Health check times when an error is detected
- MHA unknown variable 'default-character-set=utf8mb4'
- ssh check error
- ssh check failed if manager node deployed on a backup slave server
- [info] Executing SSH check script: exit 0 hanging HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mha4mysql-manager.