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

[IMPROVED] Move some contended locks to atomic.Bools #4585

Merged
merged 3 commits into from Sep 25, 2023
Merged

Commits on Sep 25, 2023

  1. Move server running state to atomic to avoid contention at NRG layer.

    Signed-off-by: Derek Collison <derek@nats.io>
    derekcollison committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    7ce47fd View commit details
    Browse the repository at this point in the history
  2. Moved to atomics to detect if we have mapped subjects for an account …

    …since check for each inbound message.
    
    If an account has many connections on a server under heavy load this could be contended.
    
    Signed-off-by: Derek Collison <derek@nats.io>
    derekcollison committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    b70f874 View commit details
    Browse the repository at this point in the history
  3. Fix datarace

    Signed-off-by: Derek Collison <derek@nats.io>
    derekcollison committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    a002918 View commit details
    Browse the repository at this point in the history