Progress indicator for Xtrabackup SST

Bug #1193215 reported by Raghavendra D Prabhu
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Fix Released
Undecided
Unassigned
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Fix Released
Medium
Raghavendra D Prabhu

Bug Description

Should be easy to add with du and pv on the joiner side. (for
both rsync and xtrabackup SSTs)

Changed in percona-xtradb-cluster:
milestone: none → 5.5.31-25
assignee: nobody → Raghavendra D Prabhu (raghavendra-prabhu)
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

However, note that, when using compression, it won't be accurate. For an accurate progress, xtrabackup has to implement it.

Revision history for this message
Alex Yurchenko (ayurchen) wrote :

IMO there are several more principal issues:
1 - initially joiner may not know the total amount of data to be transferred (at least with rsync)
2 - when clobbering files in-place the percentage may be simply jumping back and forth around 90% or so (at least with rsync).
3 - with xtrabackup joiner needs to undergo prepare stage which also needs to be reflected somehow in the overall progress, with rsync it actually does a similar thing on startup.
4 - in general the joiner cannot be accessed by mysql client, so the only place it can report the progress is error log.

On donor this must be easier, but it can only reflect donor progress.

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

a) Yes, this is only for donor progress (ie. progress of data
transfer with xtrabackup or rsync). The total amount is roughly
calculated based on ibd/ibdata1/MYD/MYI sizes (from du).

b) The clobbering shouldn't matter since we are only measuring on
donor.

c) Regarding the prepare stage, xtrabackup itself prints some
progress to the error log (like 10 20 30 ... 100). However, there
may be a few stages after transfer but before prepare like
decompression which won't be counted here.

d) For #4, yes, the error log is only place for joiner.

Since a major chunk of SST time is spent with transfer it is better to
print this (also this progress is what affects both donor and joiner,
whereas after transfer, only joiner is affected).The prepare stage of
xtrabackup is currently serial (though it may be parallelized in future
by xtrabackup), hence can be slow as well (for very big databases), but
even then the transfer duration will be higher.

Revision history for this message
Jay Janssen (jay-janssen) wrote : Re: [Bug 1193215] Progress indicator for SST

On Jun 23, 2013, at 3:32 AM, Raghavendra D Prabhu <email address hidden> wrote:

> a) Yes, this is only for donor progress (ie. progress of data
> transfer with xtrabackup or rsync). The total amount is roughly
> calculated based on ibd/ibdata1/MYD/MYI sizes (from du).

I presume then that this would only appear on the Donor side (in the Donor's logs somewhere). Make sure it's clearly labeled something like:

"Donor data transfer progress"

and not

"SST progress"

Since there obviously may be other steps on the joiner unaccounted for.

Jay Janssen, MySQL Consulting Lead, Percona
http://about.me/jay.janssen

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote : Re: Progress indicator for SST
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Based on #5, I will raise a similar request for PXB.

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Regarding progress, it can also be added on joiner if the size is communicated to joiner beforehand.

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

There is also a lp:1079336 for progress, however, that deals with only a certain component of backup and not the entire streaming procedure.

Changed in codership-mysql:
milestone: none → 5.5.32-23.7.6
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Note, this progress indication is being added for xtrabackup SST for now. For other SST methods - rsync (for whom should be simpler with --progress initially) and mysqldump, it will be added separately.

summary: - Progress indicator for SST
+ Progress indicator for Xtrabackup SST
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Created lp:1197014 for that.

Changed in percona-xtradb-cluster:
status: Triaged → Fix Committed
Changed in codership-mysql:
milestone: 5.5.33-23.7.6 → 5.5.34-24.9
Changed in percona-xtradb-cluster:
status: Fix Committed → Fix Released
Changed in codership-mysql:
milestone: 5.5.34-25.9 → 5.5.34-25.10
Revision history for this message
Alex Yurchenko (ayurchen) wrote :

fixed by porting Percona changes

Changed in codership-mysql:
status: New → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1072

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.