MySQL database high availability MHA about MySQL Learning

Source: Internet
Author: User
Tags failover mysql in

MHA is currently a relatively mature solution for MySQL high availability, developed by the Japanese Dena company Youshimaton, and is an excellent set of highly available software for failover and master-slave upgrading in MySQL high-availability environments. During the MySQL failover process, MHA can automatically complete the failover operation of the database within 0-30 seconds, and in the process of failover, MHA can ensure the consistency of the data to the maximum extent, in order to achieve a true sense of high availability.

MHA also provides the ability to switch between the main library and the current running main library to a new primary library (by upgrading from the library to the primary library) in about 0.5-2 seconds.

? Automatic fault detection and automatic failover

MHA is capable of monitoring MySQL in an existing replication environment, enabling automatic failover after a master failure is detected, by identifying the "new" Salve relay log and applying it to all slave, This allows MHA to ensure data consistency across slave, even if some slave have not received the latest relay log event when the main library crashes. Whether a slave node can become a candidate master node can be prioritized by configuring it in the configuration file. Because master guarantees data consistency across slave, all slave nodes have the hope of becoming the primary node. Data consistency issues that are very easy to produce due to replication disruption in a typical replication environment will not occur in MHA.

? Interactive (manual) failover

MHA can manually implement failover without having to ignore the master state, i.e. not monitoring the master state, confirming that the fault can be manually switched by MHA after the failure occurs

? Switch master to a different host online

MHA can switch between 0.5 and 2 seconds, and 0.5-2 seconds of write blocking is usually acceptable, so you can even switch master online during non-maintenance. Things like upgrading to a higher version, upgrading to a faster server, and so on, will become easier.

August 1, 2018, the old boy Education Knight program officially launched, only in Shenzhen campus, is committed to the Internet name enterprises specificity custom talent, only talk dry, do not play virtual, a large number of real project actual combat, 100,000 lines of code graduation standard, dug out a new channel into the bat.



MySQL database high availability MHA about MySQL Learning

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.