This blog post explains benefits, features and limitations of the improved semi-sync replication in MySQL 5.7
The post Improved Semi-Sync Replication in MySQL 5.7 appeared first on Datavail.
This blog post explains benefits, features and limitations of the improved semi-sync replication in MySQL 5.7
The post Improved Semi-Sync Replication in MySQL 5.7 appeared first on Datavail.
I was interested to hear about semi-sync replication improvements in MySQL’s 5.7.4 DMR release and decided to check it out. I previously blogged about poor semi-sync performance and was pretty disappointed from semi-sync’s performance across WAN distances back then, particularly with many client threads.
The Test
The basic environment of these tests was:
This blog post shows how you can use the
Severalnines Configurator for MySQL
Replication to deploy a Multi-master replication setup, and
install ClusterControl.
You can also watch videos showing what is described below or
read an even more detailed tutorial.
When the deployment is finished you have a set of tools to manage
and monitor replication, as well as to add new slaves, and to
perform failover.
You can choose:
Read the detailed replication tutorial
instead.
This tutorial shows how you can use the Severalnines Configurator for MySQL Replication to
deploy a Multi-master replication setup, and install ClusterControl.
When the deployment is finished you have a set of tools to manage
and monitor replication, as well as to add new slaves, and to
perform failover.
You can choose:
A bit unorthodox, I normally just write about MySQL Cluster here,
but I just wanted to understand how much latency semi-sync
replication adds.
The test was very simple:
CREATE TABLE `t1` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`data` varchar(255) DEFAULT NULL,
`ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `ts` (`ts`)
) ENGINE=InnoDB
Test 1 - no replication
src/bencher -t1 -r 30 -q "insert into t1(b) …[Read more]