nats-server
nats-server copied to clipboard
jetstream add maxfile size configuration
Feature Request
The JetStream file is too small, resulting in too many files in the stream/msgs directory, which affects performance
I see this file is only 7.1m Max
Use Case:
Proposed Change:
Who Benefits From The Change(s)?
Alternative Approaches
This is a fair observation, but what we are optimizing for is when those blocks are loaded into memory. We want to minimize that in very diverse user/account usage scenarios.
Most filesystems these days do not have issue with many files, but we are continually looking to improve the system, but for now memory management, and "run on the bank" scenarios are why we decided on max of 8MB, and for KV might be 2MB IIRC.