Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add additional BlobCacheMetrics, expose BlobCacheMetrics via SharedBlobCacheService #111730
Add additional BlobCacheMetrics, expose BlobCacheMetrics via SharedBlobCacheService #111730
Changes from 23 commits
5dacb69
c4b6487
ad68e99
181b958
07dfc5a
9c8ee42
752b1ef
c0189f4
7c34720
69d58ec
c823f75
10a32f6
439152c
f8dfabc
5c38dbf
d504094
c8e6d28
03a8f1d
47a0a35
a71d70b
95d2e5f
e18a283
168efe1
f60d341
c938e89
8f5967a
45fb734
71c0b2c
91405f2
03a0140
df97c59
8295d35
a903534
e8edc63
81e2776
b17f316
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use MiB/s to work around
LongHistogram
limit of 131,072There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I missed the discussion somewhere: I thought this should be a histogram similar to s3 http request time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We did discuss this, the feeling was that because we've got the throughput distribution, it might give us more flexibility to record population bytes and time as raw totals. Leaving them as raw totals leaves more options for aggregation in the charts (e.g. how much did we download when warming shard X, how long did we spend warming index Y, how much did we download due to warming when that node failed) I don't think you can answer those questions with bytes/time histograms, (I think) they can only tell us the distribution of chunk sizes or chunk download times in some window.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could add a warning log in the
else
branch similar to how we log a warning if s3 metric does not have a valid request time metric.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in b17f316
I couldn't find the warning you were referring to, but I did add one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elasticsearch/modules/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3BlobStore.java
Line 229 in 5934190
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used Mebibytes because that's what
ByteSizeValue#ofMb
uses