mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 11:48:43 -07:00
[CHANGED] JetStream: lower default consumer's maximum ack pending
The default value is lowered from 20,000 to 1,000. This does not seem to have a performance degradation impact, but may help with scalability at scale. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -295,7 +295,7 @@ const (
|
||||
// outstanding.
|
||||
JsFlowControlMaxPending = 1 * 1024 * 1024
|
||||
// JsDefaultMaxAckPending is set for consumers with explicit ack that do not set the max ack pending.
|
||||
JsDefaultMaxAckPending = 20_000
|
||||
JsDefaultMaxAckPending = 1000
|
||||
)
|
||||
|
||||
// Helper function to set consumer config defaults from above.
|
||||
|
||||
Reference in New Issue
Block a user