agsyafaat / mysql-master-ha

Automatically exported from code.google.com/p/mysql-master-ha
0 stars 0 forks source link

alert-only mode instead of failover #113

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

Very happy with MHA.  I've been using masterha_master_switch for error-free 
slave promotions, and it works great!  Now I'm slowly moving toward automated 
failover with masterha_manager.  As a first step in automation, I'd like to 
implement an alert-only mode for masterha_manager.  When master failure is 
detected, send alerts, but don't take action.

I can use `master_ip_failover_script` to generate alerts.  However, in "Phase 
2: Dead Master Shutdown Phase", MHA stops slave IO threads before calling 
`master_ip_failover_script`.  This is not desirable for alert-only mode.

Is it possible to disable this action?  Is there a better way to implement 
alert-only mode?

Currently using the following versions:
mha4mysql-node 0.53
mha4mysql-manager 0.53

Dane

Original issue reported on code.google.com by dmil...@twilio.com on 8 May 2015 at 9:43