Add --force switch to mmm_control move_role

Bug #381919 reported by Pascal Hofmann on 2009-05-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-mmm
Low
Pascal Hofmann

Bug Description

If the passive master is in state REPLICATION_FAIL/REPLICATION_DELAY it should be possible to move the active_master role to this host by using something like "mmm_control move_role --force ...".

A big warning message should be displayed!

(Idea from Istvan Podor in #mmm on irc.freenode.net)

description: updated
Changed in mysql-mmm:
importance: Undecided → Low
Changed in mysql-mmm:
assignee: nobody → Pascal Hofmann (pascalhofmann)
status: New → In Progress
Changed in mysql-mmm:
status: In Progress → Fix Committed
Walter Heck (walterheck) wrote :

Since it is very closely related I figured i'd add this here:

--force should also make it possible to move roles when you have a preferred role. currently you cannot move a writer role away from the preferred host, which should be possible, although accompanied by a big fat warning :)

Pascal Hofmann (pascalhofmann) wrote :

It is only possible if at least one of the replication checks has failed on each master hosts. Otherwise mmmd_mon would just move it backwards. Best way would be to remove the preferred host from the config file and restart the monitor.

Changed in mysql-mmm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers