-
Notifications
You must be signed in to change notification settings - Fork 275
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
Upgrade metrics to 4.0.7, add CachedHistogram #1319
Conversation
f93708d
to
2c47879
Compare
Codecov Report
@@ Coverage Diff @@
## master #1319 +/- ##
=========================================
Coverage ? 72.15%
Complexity ? 6487
=========================================
Files ? 470
Lines ? 37174
Branches ? 4684
=========================================
Hits ? 26824
Misses ? 9102
Partials ? 1248
Continue to review full report at Codecov.
|
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.
Left a few comments.
Changes look good and I will approve this PR after comments are addressed.
ambry-router/src/main/java/com.github.ambry.router/AdaptiveOperationTracker.java
Outdated
Show resolved
Hide resolved
ambry-api/src/main/java/com.github.ambry/config/RouterConfig.java
Outdated
Show resolved
Hide resolved
ambry-router/src/main/java/com.github.ambry.router/NonBlockingRouterMetrics.java
Show resolved
Hide resolved
ambry-router/src/main/java/com.github.ambry.router/NonBlockingRouterMetrics.java
Outdated
Show resolved
Hide resolved
ambry-router/src/main/java/com.github.ambry.router/NonBlockingRouterMetrics.java
Outdated
Show resolved
Hide resolved
- Upgrade codahale 3.x to dropwizard 4.0.7, which includes fixes for histogram accuracy. - Fix high contention getSnapshot code by introducing caching for histogram values used by AdaptiveOperationTracker. Calling Histogram:getSnapshot is more expensive in recent versions of the metrics library because of a lock taken for reservoir rescaling.
3c947c3
to
098ab2a
Compare
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.
LGTM
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.
lgtm too
histogram accuracy.
histogram values used by AdaptiveOperationTracker. Calling
Histogram:getSnapshot is more expensive in recent versions of the
metrics library because of a lock taken for reservoir rescaling.