Major faults caused by inconsistent Master/Slave Data! Please note!

Source: Internet
Author: User

Fault description: master-slave architecture. After the master node is down, it switches to the slave node. As a result, the data consistency is not verified before the master node is down, the database cannot be verified. As a result, a large number of users cannot log on, resulting in complaints.


I wrote a PPT to check whether the Master/Slave Data is consistent.

Normal master-slave synchronization does not mean master-slave data consistency. Why? Here is an example:
The master database has a user and the password is 123456. The slave database does not have this user. If user a does not update the password, you can use show slave status \ G from the database and find that there is no error message because this record is not triggered. Believe it or not, you can try it.

So the following tool exists: note! This tool locks the table. The larger the table, the longer the lock time)


650) this. width = 650; "src =" http://img1.51cto.com/attachment/201308/180425568.jpg "style =" float: none; "title =" 1.jpg"/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/220413HJ-1.jpg "style =" float: none; "title =" 2.jpg"/>


Note: The Master-slave architecture must ensure data consistency to avoid serious faults on my side today!


This article is from the "hechun's technical column" blog, please be sure to keep this source http://hcymysql.blog.51cto.com/5223301/1266203

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.