Skip to content

Commit

Permalink
Revert "content/en/docs/18.0: rework vtbackup DurationByPhase into bi…
Browse files Browse the repository at this point in the history
…nary valued Phase (#1452)"

This reverts commit 62df8c7.
  • Loading branch information
shlomi-noach authored Aug 2, 2023
1 parent d2e75c1 commit c782ea6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions content/en/docs/18.0/reference/backup-and-restore/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ _restore_duration_seconds_ times the duration of a restore. This metric is depre

Vtbackup exports some metrics which are not available elsewhere.

#### Phase
#### DurationByPhaseSeconds

Vtbackup fetches the last backup, restores it to an empty mysql installation, replicates recent changes into that installation, and then takes a backup of that installation.

_Phase_ a binary-valued gauge that reports the currently active phase.
_DurationByPhaseSeconds_ exports timings for these individual phases.

<hr style="border-top: 2px dashed brown">

Expand Down Expand Up @@ -91,11 +91,11 @@ _Phase_ a binary-valued gauge that reports the currently active phase.
"BackupEngine.Builtin.Destination:Close": 17144630,
"BackupStorage.File.File:Write": 10743169
},
"Phase": {
"InitialBackup": 0,
"RestoreLastBackup": 0,
"CatchUpReplication": 0,
"TakeNewBackup": 0
"DurationByPhaseSeconds": {
"InitMySQLd": 2,
"RestoreLastBackup": 6,
"CatchUpReplication": 1,
"TakeNewBackup": 4
},
"RestoreBytes": {
"BackupEngine.Builtin.Source:Read": 1095,
Expand Down Expand Up @@ -131,6 +131,6 @@ _Phase_ a binary-valued gauge that reports the currently active phase.
Some notes to help understand these metrics:

* `BackupBytes["BackupStorage.File.File:Write"]` measures how many bytes were read from disk by the `file` Backup Storage implementation during the backup phase.
* `Phase["CatchUpReplication"]` reports whether the catch-up replication phase is active (1) or not (0).
* `Phase["RestoreLastBackup"]` reports whether the restore last backup phase is active (1) or not (0).
* `DurationByPhaseSeconds["CatchUpReplication"]` measures how long it took to catch-up replication after the restore phase.
* `DurationByPhaseSeconds["RestoreLastBackup"]` measures to the duration of the restore phase.
* `RestoreDurationNanoseconds["-.-.Restore"]` also measures to the duration of the restore phase.

0 comments on commit c782ea6

Please sign in to comment.