13. The problem and solution of MySQL master-slave synchronization delay

Source: Internet
Author: User

Issue 1: Too many pilot replication delays from the library

Workaround: Reduce the From library to three to five


Issue 2: Hardware configuration of Master and slave machine is inconsistent, slave hardware configuration is lower than main hardware configuration

WORKAROUND: Increase the hardware configuration of the slave machine to match the hardware configuration of the master


Issue 3: Too many statements for slow SQL

Workaround: Refine the slow query statement


Issue 4: Master-slave replication design Issues

Workaround: Master-slave replication single-threaded, if the main library write concurrency too large, too late to transfer to the slave library, will cause delay, using a higher version of the database with multithreading to copy


Issue 5: Network latency between master and slave libraries

Workaround: Increase network bandwidth


Issue 6: High reading and writing pressure in the main library

Workaround: Add buffer and cache to the front-end of the schema



Note: Gao said no matter how much delay, as long as not affect the business is OK

The Master never synchronizes:

First hardware and network and master-slave single-threaded copy is we can not immediately change, so ignore

1. The first thing we have to do is to check how many of our libraries, if more than five, to see if it is the cause of the delay

2. Check to see if there are slow query statements, and if so, we'll optimize him.

3. See if buffer and cache are added to the front end

This article is from the "Wsyht blog" blog, make sure to keep this source http://wsyht2015.blog.51cto.com/9014030/1789148

13. The problem and solution of MySQL master-slave synchronization delay

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.