The role of MySQL Server-id

Source: Internet
Author: User

1, MySQL synchronization data is contained Server-id, to identify which server the statement was originally written from, so Server-id must have


2, each synchronization of the slave on the master has a master thread, the thread is identified by the slave Server-id, each slave on the master side has a maximum master thread, If the two slave have the same server-id, the last one will be kicked off when the connection succeeds. There's at least one consideration here.
Slave active Connection Master, if the slave above performs a slave stop, the connection is broken, but the corresponding thread on master does not exit, and when slave start, master can no longer create a thread and retain the original thread. There may be problems with that synchronization;


3, in MySQL master synchronization, a number of main needs to form a ring, but when synchronizing to ensure that a data does not fall into the cycle of death, here is to rely on Server-id to achieve

The role of MySQL Server-id

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.