Project

General

Profile

Feature #13077

osd: new pool settings: scrub_interval, deep_scrub_interval

Added by Mykola Golub over 8 years ago. Updated over 8 years ago.

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

0%

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

Description

Right now it is possible to control frequency of scrub runs via config using these parameters:

osd_deep_scrub_interval
osd_scrub_min_interval
osd_scrub_max_interval

As data in different pools might have different importance and need different protection, it would be nice to be able to control this per pool:

ceph osd pool set $POOL deep_scrub_interval N
ceph osd pool set $POOL scrub_interval N

If N > 0 for deep_scrub_interval, it is used for this pool instead of the global osd_deep_scrub_interval from the config.
If N > 0 for scrub_interval, it is used for this pool instead of the global osd_deep_scrub_max_interval from the config (I suppose it is not necessary to introduce both scrub_min_interval and scrub_max_interval here).

Associated revisions

Revision 30810da4 (diff)
Added by Mykola Golub over 8 years ago

osd: new pool settings: scrub intervals

ceph osd pool set $POOL scrub_min_interval N
ceph osd pool set $POOL scrub_max_interval N
ceph osd pool set $POOL deep_scrub_interval N

If N > 0, this value is used for the pool instead of
the corresponding global parameter from the config
(osd_scrub_min_interval, osd_scrub_max_interval or
osd_deep_scrub_interval).

Fixes: #13077
Signed-off-by: Mykola Golub <>

Revision e6dcf141 (diff)
Added by Mykola Golub over 8 years ago

osd: store per pool scrub intervals in pool options

ceph osd pool set $POOL scrub_min_interval N
ceph osd pool set $POOL scrub_max_interval N
ceph osd pool set $POOL deep_scrub_interval N

If N > 0, this value is used for the pool instead of
the corresponding global parameter from the config
(osd_scrub_min_interval, osd_scrub_max_interval or
osd_deep_scrub_interval).

Fixes: #13077
Signed-off-by: Mykola Golub <>

History

#2 Updated by Sage Weil over 8 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF