-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
bump chainlink-common for SLOW QUERY log updates and custom thresholds #13358
Conversation
I see you updated files related to
|
0a71680
to
1251422
Compare
Quality Gate passedIssues Measures |
1251422
to
99b45e5
Compare
99b45e5
to
7bd99d9
Compare
7bd99d9
to
affd637
Compare
overtimeThresholds = sqlutil.LogThresholds{ | ||
Warn: func(timeout time.Duration) time.Duration { | ||
return timeout - (timeout / 5) // 80% | ||
}, | ||
Error: func(timeout time.Duration) time.Duration { | ||
return timeout - (timeout / 10) // 90% | ||
}, |
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.
These adjusted thresholds are somewhat arbitrary - do they seem OK? For reference the defaults are 10%/20%.
0123f15
to
7f72ade
Compare
@@ -235,6 +245,7 @@ func init() { | |||
// overtimeContext returns a modified context for overtime work, since tasks are expected to keep running and return | |||
// results, even after context cancellation. | |||
func overtimeContext(ctx context.Context) (context.Context, context.CancelFunc) { | |||
ctx = overtimeThresholds.ContextWithValue(ctx) |
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.
Perhaps this should only apply to the deadline case? Because we have a longer default timeout otherwise
7f72ade
to
3dd590d
Compare
3dd590d
to
0dd836c
Compare
https://smartcontract-it.atlassian.net/browse/BCF-3245
New version understand the difference between cancellation and a missed deadline.
https://smartcontract-it.atlassian.net/browse/BCF-3252
Use custom thresholds to reduce noisy logs when we expect to use most of a timeout.
Requires: