Repository navigation
osd: add last_degraded field to pg_stat_t - #68910
Conversation
Testing With ceph-dencode (older version) and decode using latest ceph-dencoder with ‘last_degraded’ field in pg_stat_tCreate encoding of the 3 instances of pg_stat_t using an older ceph-dencoder binary sudo /usr/bin/ceph-dencoder type pg_stat_t select_test 1 encode export ~/tmp/pg_stat_instance_1.bin Testing Outcome: Instance 1 Decode Result Instance 2 Decode Result Instance 3 Decode Result |
385dd5e to
b2d9e19
Compare
|
The latest push just adds a release note for this change. No functional change is added. |
b2d9e19 to
e5a95e3
Compare
|
jenkins test make check arm64 |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
e5a95e3 to
7aab8df
Compare
|
Latest push was a rebase to resolve a conflict in |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Introduce a 'last_degraded' timestamp to the pg_stat_t structure to track
the initial point of redundancy loss. This field, used in conjunction
with 'last_clean', allows the manager to calculate a cluster-wide
durability score by measuring the duration of vulnerability windows.
Changes:
1) Add last_degraded (utime_t) to pg_stat_t in osd_types.h.
2) Increment pg_stat_t encoding version to 31. The decode logic
defaults last_degraded to last_clean for backward compatibility
during rolling upgrades.
3) Update operator==, dump(), and generate_test_instances() to
support ceph-dencoder testing and JSON output.
4) Implement latching logic in PeeringState::prepare_stats_for_publish():
- A PG is considered vulnerable if in DEGRADED or UNDERSIZED state.
- last_degraded is set to 'now' only if it is <= last_clean,
effectively latching the timestamp to the start of the failure
event until the PG next becomes clean.
5) Standalone tests to verify:
- The last_degraded timestamp latching logic.
- Verify last_degraded timestamp is modified when OSDs are marked 'out' for
draining purposes in which case PGs are marked undersized.
6) Release note the addition of 'last_degraded' field to PG stats.
Fixes: https://tracker.ceph.com/issues/76604
Signed-off-by: Sridhar Seshasayee <[email protected]>
7aab8df to
252d149
Compare
|
Latest push was again a rebase to resolve a conflict in |
|
jenkins test api |
1 similar comment
|
jenkins test api |
|
Merging based on teuthology tests (Approved). The failure in jenkins api tests is unrelated. |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
Introduce a '
last_degraded' timestamp to thepg_stat_tstructure to track the initial point of redundancy loss. This field, used in conjunction with 'last_clean', allows the manager to calculate a cluster-wide durability score (needs a separate effort) by measuring the duration of vulnerability windows.Changes:
last_degraded(utime_t) topg_stat_tin osd_types.h.pg_stat_tencoding version to 31. The decode logic defaults last_degraded to last_clean for backward compatibility during rolling upgrades.support ceph-dencoder testing and JSON output.
PeeringState::prepare_stats_for_publish():Fixes: https://tracker.ceph.com/issues/76604
Signed-off-by: Sridhar Seshasayee [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.