docs: VictoriaLogs backup, which partitions change from night to night, measured (#541) #365

Merged
sophie merged 1 commit from pixel/541-docs-victorialogs-backup-which-5 into main 2026-12-04 08:48:01 +11:00
Collaborator

Replaces the reasoning in docs/monitoring.md (Backups, VictoriaLogs, Measured) with what the first three nightly runs of victoria-logs-backup on gw5 showed, and says how the 4-hour deadline compares. Docs only.

What was seen

Run Started (Sydney) Since the run before Partitions with changes Uploaded / deleted Run
Nightly Wed 2026-12-02 03:30 5 h 49 min 1 of 251: 20261201 628 / 746 121 s
Nightly Thu 2026-12-03 03:30 24 h 2 of 252: 20261201, 20261202 2,252 / 419 209 s
By hand (#602) Fri 2026-12-04 00:59 21 h 30 min 2 of 253: 20261202, 20261203 1,808 / 1,099 318 s
Nightly Fri 2026-12-04 03:30 2 h 30 min 1 of 253: 20261203 775 / 366 230 s
  • A run about a day after the last one changed the current UTC day and the day before, and no older partition. Only one of the two such runs follows a nightly run by 24 h: the run by hand of #602 came 2.5 h before the third night's.
  • The second night's first pod failed (snapshot/create took 60.1 s against the 60 s timeout of then); the retry succeeded. #602 has fixed that. The other two nights completed on their first pod.
  • The deadline (14,400 s) is 45 to 120 times the run times seen: no change proposed.

Checked

Read-only on gw5 (kubectl get and logs of the Jobs, VictoriaLogs' own log for the failed pod, the store's /metrics): every run ended with deleted the snapshots; none left, 0 partitions pruned, and vl_snapshots was 0 with vl_partitions 253 on 2026-12-04 at 04:15 Sydney. Nothing to verify after the merge.

🤖 Generated with Claude Code

Replaces the reasoning in `docs/monitoring.md` (Backups, VictoriaLogs, Measured) with what the first three nightly runs of `victoria-logs-backup` on gw5 showed, and says how the 4-hour deadline compares. Docs only. ## What was seen | Run | Started (Sydney) | Since the run before | Partitions with changes | Uploaded / deleted | Run | |---|---|---|---|---|---| | Nightly | Wed 2026-12-02 03:30 | 5 h 49 min | 1 of 251: `20261201` | 628 / 746 | 121 s | | Nightly | Thu 2026-12-03 03:30 | 24 h | 2 of 252: `20261201`, `20261202` | 2,252 / 419 | 209 s | | By hand (#602) | Fri 2026-12-04 00:59 | 21 h 30 min | 2 of 253: `20261202`, `20261203` | 1,808 / 1,099 | 318 s | | Nightly | Fri 2026-12-04 03:30 | 2 h 30 min | 1 of 253: `20261203` | 775 / 366 | 230 s | - A run about a day after the last one changed the current UTC day and the day before, and no older partition. Only one of the two such runs follows a nightly run by 24 h: the run by hand of #602 came 2.5 h before the third night's. - The second night's first pod failed (`snapshot/create` took 60.1 s against the 60 s timeout of then); the retry succeeded. #602 has fixed that. The other two nights completed on their first pod. - The deadline (14,400 s) is 45 to 120 times the run times seen: no change proposed. ## Checked Read-only on gw5 (`kubectl get` and `logs` of the Jobs, VictoriaLogs' own log for the failed pod, the store's `/metrics`): every run ended with `deleted the snapshots; none left`, 0 partitions pruned, and `vl_snapshots` was 0 with `vl_partitions` 253 on 2026-12-04 at 04:15 Sydney. Nothing to verify after the merge. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The first three nightly runs (2 to 4 Dec 2026) and the run by hand of #602:
a run a day after the last changes the current UTC day and the day before,
no older one; 121 to 318 s a run against the 4-hour deadline.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
pixel-board left a comment

Docs-only change. It does what #541 asks: the reasoning in the VictoriaLogs Measured paragraph is replaced by what three nightly runs and the #602 run by hand showed. That covers the days that changed, files and seconds per night, the retry on night 2, vl_snapshots 0, and whether the 4-hour deadline is enough.

Checked read-only against gw5 (kubectl get jobs and the logs of every pod still there):

  • Matches the doc: start and finish times, Job durations (5 min 12 s, 5 min 24 s, 4 min 0 s), the copied: and done in lines (2,252/419 in 209 s; 1,808/1,099 in 318 s; 775/366 in 230 s), the partition lists and the bucket totals.
  • Night 2: the failed pod's FAILED (exit 1) after 81 s, and snapshotted about 25.7 s after wrote IN_PROGRESS in the retried pod.
  • The intervals (21 h 29 min and 2 h 30 min), the weekdays, and the UTC arithmetic (03:30 AEDT is 16:30 UTC, 7.5 h left in the UTC day; 6.5 h in AEST).

Not checked: night 1 (Job 29935710 is no longer kept, so its row rests on the author's reading) and the /metrics values.

Nothing must change. Three line comments, none blocking:

  • Step 4's list of snapshot/create times (24, 25, 30, 60.1 s) now disagrees with the new figures (24, 25, 49, 65 s).
  • The table has two columns called Run.
  • The deadline ratio uses run time, but activeDeadlineSeconds counts Job time. That gives about 44 to 112 times instead of 45 to 120; the conclusion holds.

Review by pixel: task #616, round 1 of 3, commit 95d97c87ce.

Docs-only change. It does what #541 asks: the reasoning in the VictoriaLogs Measured paragraph is replaced by what three nightly runs and the #602 run by hand showed. That covers the days that changed, files and seconds per night, the retry on night 2, `vl_snapshots` 0, and whether the 4-hour deadline is enough. Checked read-only against gw5 (`kubectl get jobs` and the logs of every pod still there): - Matches the doc: start and finish times, Job durations (5 min 12 s, 5 min 24 s, 4 min 0 s), the `copied:` and `done in` lines (2,252/419 in 209 s; 1,808/1,099 in 318 s; 775/366 in 230 s), the partition lists and the bucket totals. - Night 2: the failed pod's `FAILED (exit 1) after 81 s`, and `snapshotted` about 25.7 s after `wrote IN_PROGRESS` in the retried pod. - The intervals (21 h 29 min and 2 h 30 min), the weekdays, and the UTC arithmetic (03:30 AEDT is 16:30 UTC, 7.5 h left in the UTC day; 6.5 h in AEST). Not checked: night 1 (Job `29935710` is no longer kept, so its row rests on the author's reading) and the `/metrics` values. Nothing must change. Three line comments, none blocking: - Step 4's list of `snapshot/create` times (24, 25, 30, 60.1 s) now disagrees with the new figures (24, 25, 49, 65 s). - The table has two columns called `Run`. - The deadline ratio uses run time, but `activeDeadlineSeconds` counts Job time. That gives about 44 to 112 times instead of 45 to 120; the conclusion holds. Review by pixel: task #616, round 1 of 3, commit 95d97c87ce55a916ccc3268ed8bf19fa6b2fa3ca.
Collaborator

Not changed by this PR, but it now disagrees with the new Measured paragraph (line 3269). Step 4 gives snapshot/create as "24, 25 and 30 s, and once 60.1 s". The Measured paragraph gives 24, 25, 49 and 65 s, plus 60.1 s. No run in the table took 30 s, and the 49 s and 65 s are missing from step 4. A reader of step 4 gets the narrower range, which is the one that bears on the timeout. Suggestion: give the same figures in step 4 (24 to 65 s, once 60.1 s), or point it to "Measured". Not blocking.

Not changed by this PR, but it now disagrees with the new Measured paragraph (line 3269). Step 4 gives `snapshot/create` as "24, 25 and 30 s, and once 60.1 s". The Measured paragraph gives 24, 25, 49 and 65 s, plus 60.1 s. No run in the table took 30 s, and the 49 s and 65 s are missing from step 4. A reader of step 4 gets the narrower range, which is the one that bears on the timeout. Suggestion: give the same figures in step 4 (24 to 65 s, once 60.1 s), or point it to "Measured". Not blocking.
@ -3250,0 +3239,4 @@
between the second and the third (from the `copied:` and `done in` lines of each Job's
log):
| Run | Started (Sydney) | Since the run before | Partitions with changes | Files uploaded / deleted | `snapshot/create` | Run | Job | Bucket after |
Collaborator

Nit: two columns are both called Run, the first (which run) and the seventh (its done in seconds). Calling the seventh Run time or done in would make the duration column clear.

Nit: two columns are both called `Run`, the first (which run) and the seventh (its `done in` seconds). Calling the seventh `Run time` or `done in` would make the duration column clear.
@ -3250,0 +3263,4 @@
than the day before. A late-arriving log line could; none was seen in these three
nights. The `in N of M partitions` line of each night's log says which.
The Job's deadline is four hours (14,400 s). The nightly runs took 121 to 230 s and the
Collaborator

Nit: activeDeadlineSeconds counts from the Job's start, across retries. So the figure to set against 14,400 s is the Job time, 128 to 324 s, not the run time, 121 to 318 s. For night 2 the gap is wider: 312 s against 209 s, because of the failed pod. That gives about 44 to 112 times, not 45 to 120. The conclusion stays the same. Saying "Job times of 2 to 5.5 min" would be the exact form.

Nit: `activeDeadlineSeconds` counts from the Job's start, across retries. So the figure to set against 14,400 s is the Job time, 128 to 324 s, not the run time, 121 to 318 s. For night 2 the gap is wider: 312 s against 209 s, because of the failed pod. That gives about 44 to 112 times, not 45 to 120. The conclusion stays the same. Saying "Job times of 2 to 5.5 min" would be the exact form.
sophie merged commit c5e10d8e78 into main 2026-12-04 08:48:01 +11:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sophie/homelab!365
No description provided.