Is it possible to change instance type of Percona role without downtime?

Viet Pham's Avatar

Viet Pham

25 Oct, 2016 10:56 AM

Is it possible to change instance type of Percona role without downtime?
My idea is to:
- change the instance type in farm settings
- launch new slaves with new instance type
- promote one of the new slaves into master (I don't know how to do it in Scalr)

  1. Support Staff 1 Posted by Marat Komarov on 25 Oct, 2016 11:03 AM

    Marat Komarov's Avatar

    There is no way to manually say Scalr which Slave it should promote to Master. Decision is based on an internal algorithm.

    The above method is valid, but will work with one extra step - replace all Slaves to new instance type before terminating Master

    Regards,
    Marat

  2. 2 Posted by Viet Pham on 26 Oct, 2016 04:31 AM

    Viet Pham's Avatar

    Hi Marat,

    Is there a way to mark the Master server as "unhealthy" without actually terminate it? I would like to make sure that one of the Slaves is promoted to master, and Scalr update its DNS record before terminating the old Master.

  3. Support Staff 3 Posted by Marat Komarov on 27 Oct, 2016 02:40 PM

    Marat Komarov's Avatar

    As per Skype call:

    22366 - Normally promoted.
    22614 - Promotion didn't work. Then Master server was restarted, and restart fixed inconsistency in the FarmRole configuration. Further promotions will work.

    Regards,
    Marat

  4. Marat Komarov closed this discussion on 27 Oct, 2016 02:40 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac