Project

General

Profile

Feature #13142

osd: warning if pg has not been scrubbed for a long time

Added by Guang Yang over 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
09/17/2015
Due date:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

For large clusters with aggressive throttling on scrubbing, scrubbing might take forever and thus some PG might not be scrubbed for a long time (refer to http://tracker.ceph.com/issues/10796).

It would be nice to have some warnings (through ceph -s ?) when some PGs have not been scrubbed for a long time (a configured interval).

Associated revisions

Revision 3d873120 (diff)
Added by Michal Jarzabek almost 3 years ago

mon/PGMonitor.cc:warning if pg not scrubbed

Added 2 flags for displaying a warning when pg is unscrubbed:
mon report not scrubbed
mon report not deep scrubbed

Each of them specifies the amount of time past the mon_scrub_interval
after which an unscrubbed pg is displayed:
ceph -s -for number of unscrubbed pgs
ceph health -for number of unscrubbed pgs
ceph health detail -for detailed list of unscrubbed pgs

Both flags are set to 0 by default, which means they are turned off.

Fixes: #13142
Signed-off-by: Michal Jarzabek <>

History

#1 Updated by Michal Jarzabek over 3 years ago

I can have a look

#3 Updated by Nathan Cutler about 3 years ago

  • Status changed from New to Need Review

#4 Updated by Kefu Chai almost 3 years ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF