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
TBS: set default
sampling.tail.storage_limit
to 0 but limit disk usage to 90% #15467TBS: set default
sampling.tail.storage_limit
to 0 but limit disk usage to 90% #15467Changes from 48 commits
0e138ff
34406b7
a614778
27d2e21
a047c91
6bc1078
b409d03
28e440f
e51d329
e550b11
954eca1
38489a9
cf9e2da
7c89ced
454ab84
d6c84b8
40ed22a
b602c0a
fa9f12c
f333764
d23c40d
06cea30
fe5fa61
5c0a7d9
5474d43
a22f2a3
6342883
2e4206e
0144ddb
6988450
af3fe53
494a540
c6403d5
e66e070
e2034b5
5bc7004
1904ae0
839efb3
682f7d3
18fe30b
ca62f9f
370c7ea
0678a5f
1e1b4cf
bdff329
0d74181
856a5bc
615e94d
7bcfc60
4677241
235d1ed
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Can we call it
fetchDiskUsage
to support the distinction between whygetDiskUsage()
vs.diskStat
is needed.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.
should have called it cachedDiskStat and changing diskStatFailed to getDiskUsageFailed. Keeping the call as getDiskUsage as the pebble function is called GetDiskUsage.
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.
nit: While I can't think of what could lead to transient failures, I am not sure about always failing on error bit - something to think about in a future PR.
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.
This gives me a headache as well. What should existing disk usage threshold checks perform when getDiskUsage has transient failures, should it use a stale number, or should it become unlimited? With this assumption of always failing, it simplifies the implementation.