We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Originally posted by AlexandrTQ June 10, 2024 When we used one nats instance, there was no such problem. Creating/updating a stream:
stream, err := js.CreateOrUpdateStream(ctx, jetstream.StreamConfig{ Name: c.StreamName, Retention: jetstream.WorkQueuePolicy, Subjects: []string("example.>"), Storage: jetstream.FileStorage, Duplicates: time.Minute * 2, Replicas: 3, })
Creating/updating consumer:
cons, err := nw.stream.CreateOrUpdateConsumer(ctx, jetstream.ConsumerConfig{ Durable: consumerName, FilterSubject: "example.default", MaxDeliver: opt.MaxDeliver, MaxAckPending: opt.MaxAckPending, AckWait: time.Duration(opt.AckWaitSeconds) * time.Second, AckPolicy: jetstream.AckExplicitPolicy, DeliverPolicy: jetstream.DeliverAllPolicy, }) cons.Consume(func(msg jetstream.Msg) { msg.NakWithDelay(time.Hour) })
The general flow is:
Please tell me why this happens.
The text was updated successfully, but these errors were encountered:
derekcollison
piotrpio
No branches or pull requests
Discussed in #5511
Originally posted by AlexandrTQ June 10, 2024
When we used one nats instance, there was no such problem.
Creating/updating a stream:
Creating/updating consumer:
The general flow is:
Here is the metric nats_consumer_num_ack_pending
Please tell me why this happens.
The text was updated successfully, but these errors were encountered: