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

Change metrics store to use sync.Map #1028

Closed
wants to merge 1 commit into from

Commits on Jan 18, 2020

  1. Change metrics store to use sync.Map

    The cache map for metrics cannot be concurrently accessed in the current version. This caused a problem that heavy metrics writing to the map will cause a contention with reading, and can potentially cause Prometheus scrape call to timeout. Using sync.Map can remove the mutex.
    zhengl7 authored and Zheng Li committed Jan 18, 2020
    Configuration menu
    Copy the full SHA
    61c94d9 View commit details
    Browse the repository at this point in the history