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

Shadow indexing metrics #3881

Merged
merged 7 commits into from
Mar 3, 2022
Merged

Conversation

ztlpn
Copy link
Contributor

@ztlpn ztlpn commented Feb 22, 2022

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.

dotnwat
dotnwat previously approved these changes Feb 23, 2022
Copy link
Member

@dotnwat dotnwat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me. I'm not highly familiar with the state being used to calculate all the metrics, so it might be worth having another pair SI/archival eyes take a look.

Lazin
Lazin previously approved these changes Mar 3, 2022
Removed the metric as it belongs to the ntp level.
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).
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.
@ztlpn ztlpn dismissed stale reviews from Lazin and dotnwat via 088a01e March 3, 2022 19:12
@ztlpn ztlpn force-pushed the shadow-indexing-metrics branch 2 times, most recently from 088a01e to fe8e19a Compare March 3, 2022 19:12
@ztlpn
Copy link
Contributor Author

ztlpn commented Mar 3, 2022

Rebased to the tip of dev and replaced current counts to 32-bit integer in the remote_partition probe.

@ztlpn ztlpn requested a review from Lazin March 3, 2022 19:14
@ztlpn ztlpn merged commit cfb6874 into redpanda-data:dev Mar 3, 2022
@ztlpn ztlpn mentioned this pull request Mar 3, 2022
ztlpn added a commit that referenced this pull request Mar 4, 2022
@ztlpn ztlpn deleted the shadow-indexing-metrics branch November 27, 2023 13:18
This pull request was closed.
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.

shadow-indexing: Improve observability
4 participants