diff options
author | Samuel Just <sjust@redhat.com> | 2024-04-10 23:27:04 +0200 |
---|---|---|
committer | Samuel Just <sjust@redhat.com> | 2024-10-19 03:40:12 +0200 |
commit | f4b0589e3b39933bfc3370bdd5d7c3035c43d799 (patch) | |
tree | 979a192401134be45c6415c495cd89a1144209ed /src/osd | |
parent | osd: introduce acting set specific feature vector (diff) | |
download | ceph-f4b0589e3b39933bfc3370bdd5d7c3035c43d799.tar.xz ceph-f4b0589e3b39933bfc3370bdd5d7c3035c43d799.zip |
osd/osd_types: add PCT_UPDATE_DELAY pool option
Signed-off-by: Samuel Just <sjust@redhat.com>
Diffstat (limited to 'src/osd')
-rw-r--r-- | src/osd/osd_types.cc | 4 | ||||
-rw-r--r-- | src/osd/osd_types.h | 15 |
2 files changed, 18 insertions, 1 deletions
diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc index b2e8d8f297a..5c2cf8b16b0 100644 --- a/src/osd/osd_types.cc +++ b/src/osd/osd_types.cc @@ -1378,7 +1378,9 @@ static opt_mapping_t opt_mapping = boost::assign::map_list_of ("pg_num_max", pool_opts_t::opt_desc_t( pool_opts_t::PG_NUM_MAX, pool_opts_t::INT)) ("read_ratio", pool_opts_t::opt_desc_t( - pool_opts_t::READ_RATIO, pool_opts_t::INT)); + pool_opts_t::READ_RATIO, pool_opts_t::INT)) + ("pct_update_delay", pool_opts_t::opt_desc_t( + pool_opts_t::PCT_UPDATE_DELAY, pool_opts_t::INT)); bool pool_opts_t::is_opt_name(const std::string& name) { diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h index f80adbbfd11..b6f5335a0f5 100644 --- a/src/osd/osd_types.h +++ b/src/osd/osd_types.h @@ -1107,6 +1107,21 @@ public: DEDUP_CDC_CHUNK_SIZE, PG_NUM_MAX, // max pg_num READ_RATIO, // read ration for the read balancer work [0-100] + /** + * PCT_UPDATE_DELAY + * + * Time to wait (seconds) after there are no in progress writes before + * updating pg_committed_to on replicas. If the period between writes on + * a PG is usually longer than this value, most writes will trigger an + * extra message. + * + * The primary reason to enable this feature would be to limit the time + * between a write and when that write is available to be read on replicas. + * + * A value <= 0 will cause the update to be sent immediately upon write + * completion if there are no other in progress writes. + */ + PCT_UPDATE_DELAY, }; enum type_t { |