Project

General

Profile

Documentation #39011

Document how get_recovery_priority() and get_backfill_priority() impacts recovery order

Added by David Zafman about 1 year ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Describe the get_recovery_priority() and get_backfill_priority() as it relates to these constants:

#define OSD_RECOVERY_PRIORITY_MIN 0

/// base backfill priority for MBackfillReserve
#define OSD_BACKFILL_PRIORITY_BASE 100

/// base backfill priority for MBackfillReserve (degraded PG)
#define OSD_BACKFILL_DEGRADED_PRIORITY_BASE 140

/// base recovery priority for MBackfillReserve
#define OSD_RECOVERY_PRIORITY_BASE 180

/// base backfill priority for MBackfillReserve (inactive PG)
#define OSD_BACKFILL_INACTIVE_PRIORITY_BASE 220

/// max manually/automatically set recovery priority for MBackfillReserve
#define OSD_RECOVERY_PRIORITY_MAX 253

/// backfill priority for MBackfillReserve, when forced manually
#define OSD_BACKFILL_PRIORITY_FORCED 254

/// recovery priority for MRecoveryReserve, when forced manually
#define OSD_RECOVERY_PRIORITY_FORCED 255

/// priority for pg deletion when osd is not fullish
#define OSD_DELETE_PRIORITY_NORMAL 179

/// priority for pg deletion when osd is approaching full
#define OSD_DELETE_PRIORITY_FULLISH 219

/// priority when more full
#define OSD_DELETE_PRIORITY_FULL 255

Related issues

Related to RADOS - Feature #39339: prioritize backfill of metadata pools, automatically In Progress
Related to RADOS - Bug #39099: Give recovery for inactive PGs a higher priority Resolved 04/03/2019

History

#1 Updated by David Zafman 12 months ago

  • Related to Feature #39339: prioritize backfill of metadata pools, automatically added

#2 Updated by David Zafman 11 months ago

  • Related to Bug #39099: Give recovery for inactive PGs a higher priority added

#3 Updated by David Zafman 11 months ago

Now we need to include new recovery priority boost.

/// base recovery priority for MRecoveryReserve (inactive PG)
#define OSD_RECOVERY_INACTIVE_PRIORITY_BASE 220

#4 Updated by David Zafman 11 months ago

  • Status changed from New to In Progress
  • Pull request ID set to 27941

#5 Updated by David Zafman 11 months ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF