Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Percona XtraDB Cluster write performance
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nikola Savić  
View profile  
 More options Oct 23 2012, 3:04 pm
From: Nikola Savić <nik...@osic.rs>
Date: Tue, 23 Oct 2012 12:04:17 -0700 (PDT)
Local: Tues, Oct 23 2012 3:04 pm
Subject: Percona XtraDB Cluster write performance

Hi all,

Since XtraDB cluster supports synchronous replication, is there any impact
on write query performance?

We plan to use XtraDB cluster with 3 nodes, with only one node used for
writing. Would we see any write performance change compared to standard
replication using one master and two slave (read-only) servers?

Thanks,
Nikola


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Swanhart  
View profile  
 More options Oct 23 2012, 4:09 pm
From: Justin Swanhart <justin.swanh...@percona.com>
Date: Tue, 23 Oct 2012 13:09:08 -0700
Local: Tues, Oct 23 2012 4:09 pm
Subject: Re: [percona-group] Percona XtraDB Cluster write performance

Hi,

Write performance will be impacted by using synchronous replication at the
COMMIT phase of a transaction.   Keep in mind that Galera uses parallel
apply.  This improves performance since all slaves apply the changes in
parallel and concurrent requests can commit in parallel without blocking
each other.

Geographically distributed replication will also work just fine as long as
your clients can deal with additional latency on commit.

MySQL semi-sync replication won't work in a geographically distributed
system because commits are serialized (not true for XtraDB cluster with
Galera replication).

--Justin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikola Savić  
View profile  
 More options Oct 23 2012, 4:59 pm
From: Nikola Savić <nik...@osic.rs>
Date: Tue, 23 Oct 2012 13:59:03 -0700 (PDT)
Local: Tues, Oct 23 2012 4:59 pm
Subject: Re: [percona-group] Percona XtraDB Cluster write performance

Hi Justin,

Thank you for prompt reply!

How big is this performance drop?

We'll run all 3 nodes over private dedicated 1Gbit network.

Thanks,
Nikola


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[percona-group] Percona XtraDB Cluster write performance" by Yves Trudeau
Yves Trudeau  
View profile  
 More options Oct 23 2012, 5:36 pm
From: Yves Trudeau <y...@percona.com>
Date: Tue, 23 Oct 2012 17:36:05 -0400
Local: Tues, Oct 23 2012 5:36 pm
Subject: Re: [Experts] Re: [percona-group] Percona XtraDB Cluster write performance

Hi,
   so basically, it is a bit like NDB, it benefits from a higher
concurrency to overcome the network latency.  What's a sane setting for the
parallel apply concurrency?

Regards,

Yves

On Tue, Oct 23, 2012 at 4:09 PM, Justin Swanhart <

--
Regards,

Yves
skype: y.trudeau
aim: ytrudeaumysql
gtalk/Jabber: trudea...@gmail.com
email: y...@percona.com
Phone: (408) 457-0699
Percona Live in NYC Oct 1-2nd: http://www.percona.com/live/nyc-2012/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Percona XtraDB Cluster write performance" by Jay Janssen
Jay Janssen  
View profile  
 More options Oct 23 2012, 6:11 pm
From: Jay Janssen <jay.jans...@percona.com>
Date: Tue, 23 Oct 2012 17:11:39 -0500
Local: Tues, Oct 23 2012 6:11 pm
Subject: Re: [percona-group] Percona XtraDB Cluster write performance

On Oct 23, 2012, at 3:59 PM, Nikola Savić <nik...@osic.rs> wrote:

> How big is this performance drop?

The proper question is "how slow will the COMMITs get?"

The answer is: approximately 1 packet RTT from the node your commit on to the furthest node.  

http://www.mysqlperformanceblog.com/2012/06/14/comparing-percona-xtra...

Jay Janssen, Senior MySQL Consultant, Percona Inc.
http://about.me/jay.janssen
Percona Live in London, UK Dec 3-4th: http://www.percona.com/live/london-2012/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[percona-group] Percona XtraDB Cluster write performance" by Jay Janssen
Jay Janssen  
View profile  
 More options Oct 23 2012, 6:14 pm
From: Jay Janssen <jay.jans...@percona.com>
Date: Tue, 23 Oct 2012 17:14:15 -0500
Local: Tues, Oct 23 2012 6:14 pm
Subject: Re: [Experts] [percona-group] Percona XtraDB Cluster write performance

On Oct 23, 2012, at 4:36 PM, Yves Trudeau <y...@percona.com> wrote:

>    so basically, it is a bit like NDB, it benefits from a higher concurrency to overcome the network latency.  What's a sane setting for the parallel apply concurrency?

There are some issues with parallel apply, so the current default is 1 thread.  There is a show status variable called wsrep_cert_deps_distance which helps you determine what an optimal amount of parallel threads might be by measuring the: "Average distance between highest and lowest seqno that can be possibly applied in parallel (potential degree of parallelization)."

Source: http://www.codership.com/wiki/doku.php?id=galera_status_0.8

Jay Janssen, Senior MySQL Consultant, Percona Inc.
http://about.me/jay.janssen
Percona Live in London, UK Dec 3-4th: http://www.percona.com/live/london-2012/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Yurchenko  
View profile  
 More options Oct 24 2012, 2:04 pm
From: Alex Yurchenko <alexey.yurche...@codership.com>
Date: Wed, 24 Oct 2012 21:03:58 +0300
Local: Wed, Oct 24 2012 2:03 pm
Subject: Re: [Experts] Re: [percona-group] Percona XtraDB Cluster write performance
On 2012-10-24 00:36, Yves Trudeau wrote:

> Hi,
>    so basically, it is a bit like NDB, it benefits from a higher
> concurrency to overcome the network latency.  What's a sane setting
> for the
> parallel apply concurrency?

Hi Yves,

You're absolutely right that one way to counter COMMIT latency is
increasing client concurrency (the other is making transactions longer -
fewer commits). However in this case it is client concurrency and is
unrelated to apply concurrency. The latter is to overcome IO and single
core bottlenecks on a slave.

The issues with parallel applying that Jay mentioned happen with
DELETEs on tables without primary/unique keys which people seem to love
so much nowadays. There also have been issues with foreign key
constraints, but they have been fixed as of the current source head.
Other than that there is a 64K limit on a number of parallel slave
threads. The sane setting depends on the load and you won't know it
until you run it and check wsrep_cert_deps_distance. So as rule of thumb
we'd recommend 4 per proper CPU core. Another consideration is that if
your cluster has N nodes each serving M clients then you may want to
have (N-1)*M slave threads per node to make sure it can handle all of
the load. At least thats a clear upper bound.

Regards,
Alex

--
Alexey Yurchenko,
Codership Oy, www.codership.com
Skype: alexey.yurchenko, Phone: +358-400-516-011


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »