Comments on: Comparing Percona XtraDB Cluster with Semi-Sync replication Cross-WAN https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/ Wed, 06 Sep 2023 20:37:31 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Kenny Gryp https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/#comment-10968531 Mon, 09 Oct 2017 11:42:58 +0000 https://www.percona.com/blog/?p=9867#comment-10968531 In MySQL 5.7, Semi-sync does not longer suffer serialization in with +1 thread

When there is 100ms between master and semi-sync slave:

[root@perconaserver vagrant]# sysbench –db-ps-mode=disable –mysql-host=localhost –mysql-user=root –mysql-db=semi –num-threads=32 –report-interval=1 /usr/share/sysbench/oltp_insert.lua run
[ 1s ] thds: 32 tps: 256.22 qps: 256.22 (r/w/o: 0.00/256.22/0.00) lat (ms,95%): 211.60 err/s: 0.00 reconn/s: 0.00
[ 2s ] thds: 32 tps: 286.30 qps: 286.30 (r/w/o: 0.00/286.30/0.00) lat (ms,95%): 114.72 err/s: 0.00 reconn/s: 0.00
[ 3s ] thds: 32 tps: 289.18 qps: 289.18 (r/w/o: 0.00/289.18/0.00) lat (ms,95%): 112.67 err/s: 0.00 reconn/s: 0.00
[ 4s ] thds: 32 tps: 290.83 qps: 290.83 (r/w/o: 0.00/290.83/0.00) lat (ms,95%): 112.67 err/s: 0.00 reconn/s: 0.00
[ 5s ] thds: 32 tps: 319.08 qps: 319.08 (r/w/o: 0.00/319.08/0.00) lat (ms,95%): 110.66 err/s: 0.00 reconn/s: 0.00
[ 6s ] thds: 32 tps: 286.84 qps: 286.84 (r/w/o: 0.00/286.84/0.00) lat (ms,95%): 112.67 err/s: 0.00 reconn/s: 0.00
[ 7s ] thds: 32 tps: 289.76 qps: 289.76 (r/w/o: 0.00/289.76/0.00) lat (ms,95%): 112.67 err/s: 0.00 reconn/s: 0.00
[ 8s ] thds: 32 tps: 289.30 qps: 289.30 (r/w/o: 0.00/289.30/0.00) lat (ms,95%): 110.66 err/s: 0.00 reconn/s: 0.00

]]>
By: James https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/#comment-10966074 Wed, 06 Apr 2016 11:50:03 +0000 https://www.percona.com/blog/?p=9867#comment-10966074 Hi Jay,
My stand-alone server (bing log enabled) on VMWare with 2.6.32-504.23.4.el6.x86_64, 4G RAM and 4CPU can achieve > 62k writes/s

Thanks

]]>
By: james https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/#comment-10966053 Thu, 31 Mar 2016 15:21:44 +0000 https://www.percona.com/blog/?p=9867#comment-10966053 shall set up Galera on WAN for testing soon. Just wonder if you guys have already done the bench marking for RTT 10ms. Thanks

]]>
By: james https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/#comment-10966052 Thu, 31 Mar 2016 15:05:06 +0000 https://www.percona.com/blog/?p=9867#comment-10966052 also, if RTT = 10ms, max writes = 856 – (856 – 244)/10 = 793?

]]>
By: james https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/#comment-10966047 Thu, 31 Mar 2016 10:45:29 +0000 https://www.percona.com/blog/?p=9867#comment-10966047 Thanks a lot, Jay.

Any updated figures for newer MySQL (e.g. 5.7) please?
Oracle claimed that 5.7 largely improved replication.

Also, does the new “Codership’s recommended tuning” make any differences please?

Thanks

]]>
By: Vincent van Scherpenseel https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/#comment-10525410 Fri, 13 Feb 2015 15:03:44 +0000 https://www.percona.com/blog/?p=9867#comment-10525410 Hi,

The link for label “Codership’s recommended tuning” is outdated. It should be changed to http://galeracluster.com/documentation-webpages/configurationtips.html.

]]>
By: Peter Zaitsev https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/#comment-951439 Fri, 15 Jun 2012 21:36:31 +0000 https://www.percona.com/blog/?p=9867#comment-951439 Henrik,

Sometimes people miss the “game changers” which change performance picture completely. WAN vs LAN is one of such as round trip can be 100+ times longer. Other one is HDD without Raid with BBU compared to one with, the difference would be some 200 fsync/sec vs 10.000+ again close to 100x difference. Similar numbers apply to SSD vs HDD

The point is if you’re testing on LAN I would not make any assumptions about WAN performance because it is likely to be a lot different.

Interesting to see though what Group Commit essentially does not work with Semi-Sync in 5.5 I wounder if it is going to be resolved in 5.6 as it can be a serious bottleneck.

]]>
By: Jay Janssen https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/#comment-951196 Fri, 15 Jun 2012 12:22:34 +0000 https://www.percona.com/blog/?p=9867#comment-951196 To be honest, I was a little surprised too, but the math makes sense for binary log serialization.

Justin: 5.5.24, yes 🙂 Risk in my my opinion is based on the likelihood of all nodes going offline at once.

Andy: sync_binlog was off in all tests. innodb_support_xa was ON in the tests where I was using log-bin.

]]>
By: Henrik Ingo https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/#comment-951045 Fri, 15 Jun 2012 06:59:51 +0000 https://www.percona.com/blog/?p=9867#comment-951045 Interesting. On the codership mailing list Erkan has also made tests where semi-sync proved unsuitable for WAN replication: https://groups.google.com/forum/#!msg/codership-team/Qfjg4VL2OEY/Swkwb2dCoCUJ

Seems like it is true then.

]]>
By: Andy https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/#comment-950950 Fri, 15 Jun 2012 04:01:42 +0000 https://www.percona.com/blog/?p=9867#comment-950950 Jay,

For the control what settings did you use for sync_binlog and innodb_support_xa?

]]>
By: Henrik Ingo https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/#comment-950869 Thu, 14 Jun 2012 22:25:25 +0000 https://www.percona.com/blog/?p=9867#comment-950869 Jay: Really surprised about the semi-sync result. I never tested it over WAN, but over LAN I’ve found it to be really fast. (http://openlife.cc/blogs/2011/may/drbd-and-semi-sync-shootout-large-server) Only on disk-bound of course you get the same slave-lag issues as with the async MySQL replication.

Justin: There are no risk other than what you already know: If a node crashes, some transactions may not have been written to disk. However, when the node comes back up, it will do whatever is necessary to sync up with the other nodes anyway, including the option of wiping out its own data and taking a full copy from another node. Or to put it another way, once a crashed node comes back up, it is out of sync anyway, so it doesn’t matter at which point the data on disk has gotten out of sync.

So relaxing InnoDB flushing is essentially based on the idea that a commit is durable due to the replication, not due to flushing to disk. (MySQL NDB Cluster has the same approach.)

]]>
By: Justin Swanhart https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/#comment-950848 Thu, 14 Jun 2012 20:49:39 +0000 https://www.percona.com/blog/?p=9867#comment-950848 I think you have a typo. You tested 5.5.24 right? Not 5.1.24?

Are there risks of innodb_flush_log_at_trx_commit=2 on XtraDB cluster? Can data get out of sync?

]]>
By: Alex https://www.percona.com/blog/comparing-percona-xtradb-cluster-with-semi-sync-replication-cross-wan/#comment-950845 Thu, 14 Jun 2012 20:41:10 +0000 https://www.percona.com/blog/?p=9867#comment-950845 Hi Jay,

About 2ms latency in the first test: in us-east-1 zone ping RTT seems to be ~0.5 ms, so it is really hard to improve on that 2ms result when running PXC in EC2. You probably can’t go below 1ms.

Regards,
Alex

]]>