Comments (12)
I submitted pull request #110 which adds optional check for errant transactions prior to manual failover (masterha_master_switch
). If any are found, failover is aborted and a fix is suggested using mysqlslavetrx
with the list of relevant GTIDs. Hope this helps.
from mha4mysql-manager.
+1
from mha4mysql-manager.
+2
from mha4mysql-manager.
👍
from mha4mysql-manager.
I think it's more important to prevent errand transactions. The best way to do this is with super_read_only
which is in PerconaServer/MariaDB (comes from webscalesql). look at mha-helper for implementation in MHA: https://github.com/grypyrg/mha-helper
from mha4mysql-manager.
Yep, super_read_only is nice, but it's not in upstream. Well, we switched to mysql-utilities based failover anyway...
from mha4mysql-manager.
mysql-utilities failover is a lot more limited than what MHA can do. It might work for you, but for many, it's just not good enough.
from mha4mysql-manager.
Hello @grypyrg,
If you have no GTID - yep, then you have no choice (maybe you can use Pseudo-GTID and https://github.com/outbrain/orchestrator) but otherwise I see no other limitation, though. Of course, you need to write some wrapper around it, but it's not really complicated.
From the point of current MySQL state (5.7) MHA looks quite outdated IMO.
from mha4mysql-manager.
MHA can ssh to all nodes including a mysqlbinlog stream
to fetch missing transactions from both binary and relay logs.
mysqlfailover
and/or mysqlrpladmin
only just changes the replication setup, it does not do anything like that.
from mha4mysql-manager.
IIRC if you using GTID - it will complete skipping all ssh stuff, it doesn't even check that -
mha4mysql-manager/lib/MHA/MasterMonitor.pm
Lines 370 to 389 in c6db3eb
So, if you using GTID everywhere - MHA is mostly overkill and easily can be replaced with mysql-utilities.
from mha4mysql-manager.
Yes, you're right in that.it skips most ssh stuff, but it does connect to binlog servers and get missing events from the masters binlog there (although buggy).
from mha4mysql-manager.
+1
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.