MySQL architecture ~mha Frequently asked questions

Source: Internet
Author: User

A brief introduction: Today to talk about MHA related issues

Two questions brocade set

1 MHA Architecture If it hangs from the library, does it affect the process?

The default is to cause the process to exit unexpectedly.

Add parameter ignore_fail=1 from library even if hanging off will not affect MHA monitoring process

2 MHA Default detection mechanism

1 its own detection mechanism MHA service periodic detection of the main library, periodic select per second

2 provides additional script detection originating from the specified IP address

3 MHA Switching process

1. Get the Binlog event from the down master.

2, determine the latest (most complete) from the library.

3. Apply different relay log events to other slave libraries, respectively.

4. Apply the Binlog event obtained from the main library (event at the time of failure).

5. Upgrade one from the library to the new main library (this time from the library has been consistent).

4 MHA Switching failure scenarios

1 MHA The default latency tolerance is 0, so there is a delay that can cause the switching time to increase or even fail

2 A problem with the configuration file can also cause a switchover to fail

6. Reassign other libraries from the main library

MySQL architecture ~mha Frequently asked questions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.