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 publisher performance under some instances of asymmetric network latency clusters. #3981

Merged
merged 1 commit into from Mar 21, 2023

Commits on Mar 21, 2023

  1. Improved publisher performance under some instances of asymmetric net…

    …work latency clusters on interest based streams.
    
    Under asymmetric network latency based clusters, if a node in an R3 was replicating a consumer and the parent stream, but was the leader of neither, but the path from the stream leader was faster then the consumer leader a replicated ack could arrive before the message itself.
    
    In this case we used to forward a delete message request to the stream leader which would then replicate that to all stream replicas, causing more work which could lead to increased publisher times on clients connected to the slow node.
    
    Signed-off-by: Derek Collison <derek@nats.io>
    derekcollison committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    ed9de4b View commit details
    Browse the repository at this point in the history