This repository has been archived by the owner on Jul 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Concurrency improvements to RemoteControlledSampler (#609)
* Fix #608 - multithreaded performance/synchronization issues This removes synchronization from RemoteControlledSampler and makes RateLimiter thread-safe. Signed-off-by: Yegor Borovikov <yegor@uber.com> * Revert RemoteControlledSamplerTest changes Signed-off-by: Yegor Borovikov <yegor@uber.com> * Further optimize RateLimiter.checkCredit() Signed-off-by: Yegor Borovikov <yegor@uber.com> * Move clock.currentNanoTicks() inside optimistic retry loop Signed-off-by: Yegor Borovikov <yegor@uber.com> * Log update failure; add timer health test Signed-off-by: Yegor Borovikov <yegor@uber.com>
- Loading branch information
1 parent
20ee4e8
commit b2a0e59
Showing
4 changed files
with
133 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters