Project

General

Profile

Actions

Enhancement #76604

closed
SS SS

[RFE] PG degradation and clean timestamps are required in the metadata to track total rebuild time for PG

Enhancement #76604: [RFE] PG degradation and clean timestamps are required in the metadata to track total rebuild time for PG

Added by Sridhar Seshasayee 7 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v21.0.0-2065-g0fbcd19bba
Released In:
v21.2.0~274
Upkeep Timestamp:
2026-10-24T01:45:30+00:00

Description

The following is the description of the problem resulting in this RFE:

The descripion is taken from the downstream issue as described by @Prashant D
and @Vikhyat Umrao.

Description:
PG degradation and clean timestamps are required in the metadata to track total
rebuild time for PG after an infrastructure event (hard drive or host crash)

Proposed Enhancement:
The following is the proposed solution from @Prashant D which I agree
with:

Vikhyat and me had a discussion on this. We believe a single last_degraded field
in the pg dump output that captures the timestamp when a PG transitions to
degraded, misplaced, or inactive states would provide sufficient granularity for
rebuild duration tracking.

This would allow customers to calculate the PG rebuild duration directly using
the timestamps :

- Rebuild start:
When last_clean < last_degraded, the PG entered a degraded state at the time recorded in last_degraded

- Rebuild end:
When the condition last_clean > last_degraded is satisfied, the PG has recovered to a clean state

- Rebuild duration:
The time difference between these two points

This approach leverages existing last_clean timestamps to derive rebuild
KPIs without needing to introduce multiple new fields. It provides the
necessary granularity for performance tracking while keeping the
implementation minimal and the output concise.

SS Updated by Sridhar Seshasayee 7 months ago Actions #1

  • Description updated (diff)

SS Updated by Sridhar Seshasayee 7 months ago Actions #2

  • Status changed from New to Fix Under Review
  • Pull request ID set to 68910

KS Updated by Kamoltat (Junior) Sirivadhna 7 months ago Actions #3

bug scrub: PR approved and in QA

RZ Updated by Radoslaw Zarzynski 6 months ago Actions #4

Still in QA

LF Updated by Laura Flores 6 months ago Actions #5

PR still in QA

UB Updated by Upkeep Bot 6 months ago Actions #6

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 0fbcd19bba5197817845d7015660899bf5468b57
  • Fixed In set to v21.0.0-2065-g0fbcd19bba
  • Upkeep Timestamp set to 2026-06-05T08:21:56+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #7

  • Released In set to v21.2.0~274
  • Upkeep Timestamp changed from 2026-06-05T08:21:56+00:00 to 2026-10-24T01:45:30+00:00
Actions

Also available in: PDF Atom