Symptom: Unexpected nats: timeout
#5859
Replies: 6 comments 4 replies
-
Thanks for the report @RitikaLaddha, could you share the nats-server version as well (the one used by the nats container pod)? You could also confirm by checking /varz, for example: https://demo.nats.io:8222/varz |
Beta Was this translation helpful? Give feedback.
-
Also the following configuration will not work ok on k8s, you need to add all the A records from the statefulset to the config or use the nats-io/k8s helm chart:
|
Beta Was this translation helpful? Give feedback.
-
Hey @wallyqs |
Beta Was this translation helpful? Give feedback.
-
can you please specify what are A records we would need to add in config? |
Beta Was this translation helpful? Give feedback.
-
The routes need the complete dns entries from the stateful set, the nats-io/k8s helm chart does this by default:
|
Beta Was this translation helpful? Give feedback.
-
Hello! We've just upgraded our nats-server container and java client and have started regularly seeing symptoms of this as well. A nontrivial fraction of requests to publish messages into a work queue stream using "Future cancelled, response not registered in time, check connection status." In our case, the network path between our Java application and JetStream has a few hops:
Using This started happening around the time we upgraded both our client & server. I haven't tried other combinations to isolate yet.
|
Beta Was this translation helpful? Give feedback.
-
Observed behavior
Hi
I am facing below intermittent issue because of that Nats is not being stable, as even if its's connected sometimes, it doesn't respond back
Although we get in log of application, that message has been sent. But still it does not returns message.
We have kept 30s timeout, so we do not receive response in 30s of time.
then we get timeout exception
Nats logs
Application logs
Nats configuration
Expected behavior
Application should get response in time
Server and client version
Helm chart used: https://bitnami.com/stack/nats/helm
Kubernetes version: 1.28.12
Application Java version: 21
Nats version: 2.10.18
Host environment
Azure Kubernetes service
Steps to reproduce
No response
Beta Was this translation helpful? Give feedback.
All reactions