nats-server icon indicating copy to clipboard operation
nats-server copied to clipboard

jetstream add maxfile size configuration

Open Doslin opened this issue 2 years ago • 1 comments

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 image

Use Case:

Proposed Change:

Who Benefits From The Change(s)?

Alternative Approaches

Doslin avatar Jul 20 '22 05:07 Doslin

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.

derekcollison avatar Jul 20 '22 19:07 derekcollison