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

Significant Message Delivery Delays in NATS 3-Node Cluster Despite Low Queue Volume and Idle Consumers #6090

Open
NoumanNawaz51 opened this issue Nov 8, 2024 · 4 comments
Labels
defect Suspected defect such as a bug or regression

Comments

@NoumanNawaz51
Copy link

Observed behavior

We encountered an issue with our NATS 3-node cluster where message delivery experienced significant delays, sometimes exceeding timeout (15 seconds). The setup includes a multiple publishing service and multiple consumers subscribing to jet-stream queues.
• Only a few messages were in the queue.
• Not all consumers were busy. (300 consumers we have)
• Random delays noted (1 to 40 seconds)
Despite there being only a few messages in the queue and not all consumers being fully occupied, we consistently observed delays. This behavior is unexpected, given the low message volume and seemingly low load on the consumers.
Did anyone else experience this kind of behavior what could be possibly causing this ?

We are using PushSubscribeSync machanism.
here is config from all nodes.

Slack_Image

Expected behavior

All messages pushed over queue should be processed on consumers without delay.

Server and client version

Nats Server Version 2.10.19
Nats Client Version 1.0.8 (Dotnet Application)

Host environment

Nats Server are deployed with Jetstream over Linux.
Applications are dotnet over windows.

Steps to reproduce

Problem is happening randomly.

@NoumanNawaz51 NoumanNawaz51 added the defect Suspected defect such as a bug or regression label Nov 8, 2024
@Jarema
Copy link
Member

Jarema commented Nov 8, 2024

Thanks for the report.

Can you share the stream info and consumer info for few consumers, preferably those that might have work but are slow processing it?

@NoumanNawaz51
Copy link
Author

Consumer_Stream_Info

@NoumanNawaz51
Copy link
Author

Hi, Can I get answer to this query ?

@derekcollison
Copy link
Member

What does nats server ls show from the system account?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Suspected defect such as a bug or regression
Projects
None yet
Development

No branches or pull requests

3 participants