MySQL Gtids-based replication

Source: Internet
Author: User

by Gtids "Global transaction Identifiers", each transaction can be identified and can be traced and applied to any slave once it is committed, so that it does not need to rely on log file and location like Binarylog replication. Gtids is completely transaction-based, so that data consistency between master and slave can be guaranteed as long as all transactions committed at master commit on slave. You can use SBR or RBR-based gtids to achieve this. It is recommended to use RBR "row-based Replication".

1 Gtid Introduction

The uniqueness of Gtid, not only in master but only in the whole cluster.

Gtid is composed of sourceid:transaction_id; SourceID is used to identify the source server, the server_uuid[system variable];transaction_id in master, which is a sequence number generated in the order of transaction commits. If the first commit is 1, then its gtid=xxxxxxxxxxxx:1.

The Gtid is stored in the mysql.gtid_executed when gtid_mode=on/on_permissive.

MySQL Gtids-based replication

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.