-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Nats Timeout Error While Sending Message To JetStream subject #4954
Comments
RECENT LOGS [2453688] 2024/01/15 06:16:05.273300 [INF] JetStream cluster new consumer leader for 'ADUCTL447Q7CNBNXRFG6YRXZI4YZQBZOSAVVRUH5742SPG2ZGHJO5A3M > agent_stream > 35755_766' |
Which Python client version are you using? |
nats-py==2.6.0 we are authenticating using nkeys This happens with our golang client too when subscribing or sending messages to jetstream queue. |
authentication is for some clients which do not have permissions updated and that is fine for us. The ones with correct credentials are also not able to communicate. I will update the status once we update nats-server |
By stream having 200k subscribers, do you mean 200k consumers? |
Yes. All are consuming different subjects in the stream. so each subject is subscribed by 1 consumer and these 200K subjects are in a single stream. It is a wildcard channel pattern. Python Script To Create Stream
|
This is what happens when we restart our nats cluster after upgrading nats-server to [1094386] 2024/01/15 08:36:28.759778 [INF] JetStream cluster new consumer leader for 'ADUCTL447Q7CNBNXRFG6YRXZI4YZQBZOSAVVRUH5742SPG2ZGHJO5A3M > agent_stream > 15489' |
After a while these are the logs getting this once in a while [1094386] 2024/01/15 08:47:04.551495 [ERR] 60.241.109.18:64737 - cid:171031 - authentication error |
now pushing to stream is working but now we are not able to subscribe to the channel channel_name, durable, stream_namesub = await js.pull_subscribe(queue_name, str("abc"), stream="abc_stream") # pull Stream Info
|
[4111682] 2024/01/15 12:05:53.932465 [INF] Recovering 1 consumers for stream - 'AAN2QDQ4H4G34UIBTO3IFKZ3TT622XBGCGTXGBZ36XCHOWQP3BZV3JTK > agent_jobdata' how much time it will take to restore or recover these 107049 consumers, |
will nats-server restart automatically in any of the cases, as i observed after updating 2.10.9. |
is there any consumer limit on any sections for a jetstream. |
@shankarmn94 There is |
@Jarema yes we have set it to unlimited. Account Usage:
Account Limits:
Tier: Default:
|
Some of the behaviors reported in this issue would have been improved by #5022 and other fixes which were part of the v2.10.10 release. |
can i know y am getting context deadline timeout for specifi streams and when i do stream ls it will list like inaccessible stream section what this tells. @wallyqs nats consumer report appl nats consumer report agent_assetinfo |
Observed behavior
Nats client timesout when trying to connect using python. Resources are available on the server.
There are some 20-30 streams.
One of the streams has some 200K Subscribers 200K subjects
Expected behavior
Sending message without any timeouts
Server and client version
nats-server: v2.10.3
0.1.1
Host environment
Ubuntu
64 GB Ram
16 CPU
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: