Get the App
SLTechnology News&Howtos  ›  Database  › 

MariaDB 10.3 master-slave semi-synchronous replication

Shulou Source: shulou.com Published: 2022-06-01 21:13:18 10月19日 Update

This article introduces MariaDB master-slave semi-synchronous replication, based on the previous article "MariaDB 10.3 master-slave replication," introducing master-slave semi-synchronous replication configuration.

1. profile

MariaDB has added semi-synchronous plug-ins to Server since 10.3.3, so there is no need to load plug-ins when configuring master-slave semi-synchronization. The MariaDB version used in this article is 10.3.7.

2. View semi-synchronous replication parameters

MariaDB01 Master

MariaDB02 from

3. Initiate semi-synchronous replication

MariaDB01

master enable command: SET GLOBAL rpl_semi_sync_master_enabled = 1;

MariaDB02

slave enable command: SET GLOBAL rpl_semi_sync_slave_enabled = 1;

restart slave thread: stop slave;

start slave;

4. View semi-synchronous status

MariaDB01 Master

SHOW GLOBAL VARIABLES LIKE '%semi%';

SHOW GLOBAL STATUS LIKE 'rpl_semi%';

MariaDB02 from

SHOW GLOBAL VARIABLES LIKE '%semi%';

SHOW GLOBAL STATUS LIKE 'rpl_semi%';

At this point, MariaDB master-slave semi-synchronous configuration is complete.

Tags: Synchronization master-slave configuration commands plug-ins parameters foundations used version status introduction threads so far previous Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Redmi Shulou Technology Xiaomi vpn