Commit Graph

3 Commits

Author SHA1 Message Date
Matan Breizman
721c9aea18 messages/MOSDMap: Rename oldest_map to cluster_osdmap_trim_lower_bound
Previously, MOSDMap messages sent to other OSDs were populated with the
superblocks's oldest_map. We should, instead, use the superblock's
cluster_osdmap_trim_lower_bound because oldest map is merely a marker
for each osd's trimming progress.

As specified in the docs:
***
We use cluster_osdmap_trim_lower_bound rather than a specific osd's oldest_map
because we don't necessarily trim all MOSDMap::oldest_map. In order to avoid
doing too much work at once we limit the amount of osdmaps trimmed using
``osd_target_transaction_size`` in OSD::trim_maps().
For this reason, a specific OSD's oldest_map can lag behind
OSDSuperblock::cluster_osdmap_trim_lower_bound
for a while.
***

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2023-02-02 12:22:24 +02:00
Matan Breizman
ff58b81ddf osd: Rename max_oldest_map to cluster_osdmap_trim_lower_bound
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2023-02-02 12:14:42 +02:00
Samuel Just
cd4c031e5e doc/dev/osd_internals: add past_intervals.rst
Add explanation of past_interals.

Signed-off-by: Samuel Just <sjust@redhat.com>
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2023-02-01 09:51:55 +00:00