Skip to content
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

remove global lock for subscope computation #53

Merged

Conversation

sairamch04
Copy link
Contributor

@sairamch04 sairamch04 commented Feb 15, 2020

In our application the metric tags are dynamic, so we end up calling ScopeImpl#tagged api for the subscope, each time a metric in emitted. We have upto 10^5 metric series in one environment. The global lock is resulting in many threads in blocked state.

Moving to concurrentHashMap, we atmost put a read-write lock on a particular bucket rather than whole object.

@claassistantio
Copy link

claassistantio commented Feb 15, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@justinjc justinjc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@justinjc justinjc merged commit e8602fb into uber-java:master Feb 19, 2020
sairamch04 added a commit to sairamch04/tally that referenced this pull request Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants