Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport #3881 to v21.11.x #3937

Merged
merged 7 commits into from
Mar 4, 2022
Merged

Conversation

ztlpn
Copy link
Contributor

@ztlpn ztlpn commented Mar 3, 2022

Backport #3881 to v21.11.x

Cover letter

Improve shadow indexing metrics:

  • add partition-level shadow read metrics
  • add cloud storage cache metrics
  • make archival metrics more robust

Fixes: #2818

Release notes

Improvements

  • Add more detailed shadow indexing metrics.

(cherry picked from commit 509c545)
Removed the metric as it belongs to the ntp level.

(cherry picked from commit ac85cfc)
Previously, upload lag was calculated in archival_policy, which could be
misleading as start_offset passed to it can be greater than the offset
that was uploaded (e.g. in case when several upload candidates are
created in one pass).

(cherry picked from commit 11c928b)
Previously, offset gaps metric was incremented in the archival_policy
methods, which could be incorrect because archival_policy can be called
many times without actually uploading any segments. Also the code missed
the case when there is a gap between local segments. We increment this
metric after actually uploading a segment, which is more robust.

(cherry picked from commit fe8e19a)
@ztlpn ztlpn requested review from Lazin and LenaAn as code owners March 3, 2022 23:32
@ztlpn ztlpn added this to the Shadow Indexing GA milestone Mar 3, 2022
@ztlpn ztlpn merged commit ef98c52 into redpanda-data:v21.11.x Mar 4, 2022
@ztlpn ztlpn deleted the v21.11.x-bp-3881 branch November 27, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants