feature request: parallel rsync for sst
Bug #1167331 reported by
Mrten
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL patches by Codership |
Fix Released
|
Medium
|
Alex Yurchenko | ||
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
Fix Released
|
Undecided
|
Raghavendra D Prabhu |
Bug Description
If an SST is needed, the manual states that rsync is the fastest way to get all the data.
However, I noticed that there is only one rsync running for the whole SST, which easily gets CPU-bound on my hardware (IBM x3550 with hardware raid). When this happens, sysstat shows IO as only 10% busy.
Could the rsync be parallelized in some way that is useful for speeding up the SST?
Perhaps like this for three rsyncs at a time, for just the databases:
find /var/lib/mysql -type d -print0 | xargs -P 3 -0 rsync [rsync-options]
and a separate rsync for the files in /var/lib/mysql with --no-recurse
Should speed things up a bit...
Related branches
Changed in percona-xtradb-cluster: | |
milestone: | none → 5.5.30-24.8 |
status: | New → Triaged |
Changed in codership-mysql: | |
assignee: | nobody → Alex Yurchenko (ayurchen) |
importance: | Undecided → Medium |
milestone: | none → 5.5.30-24.8 |
status: | New → Confirmed |
Changed in percona-xtradb-cluster: | |
status: | Triaged → Fix Committed |
Changed in codership-mysql: | |
milestone: | 5.5.30-24.8 → 5.5.31-23.7.4 |
Changed in percona-xtradb-cluster: | |
status: | Fix Committed → Fix Released |
Changed in codership-mysql: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
A first stab at a patch. This makes my SST at least four times faster, uses my disks at 80% instead of 10, but I'm not quite sure it is fully OK.