Closed ggarri closed 7 months ago
Consider upgrading to the latest 2.10.7 which has some fixes on lookup per subject etc.
Any updates here? ok to close?
It seems to be buggy in the last version, so we switched to restrict limits based on stream instead of subject to guarantee our flat storage growth.
@ggarri what was the last version you tested this on? Could you share some more details about your setup and how stream is utilized so we can try reproducing it?
Observed behavior
Hi team, We are facing an issue on jetstreams with the retention policy of max-msg-per-subject. We are setting a stream with 2k as max message per subject
That is working well for a period of time but at a certain point the retention policy stops applying, and our storage starts growing to infinitive, as I can show below:
Then, after one of our NATs instance restart or if we perform an update on the max-msg limit to something like 20k (any other value also works) messages per subjects goes down to 2k again and remain like that, at least for now. Is it this a know bug? is there any remediation we can set to prevent that? Thanks in advance for your help :slightly_smiling_face: (edited)
Expected behavior
Retention policy per subject should be strickly applied
Server and client version
nats:2.10.4-alpine
Host environment
Linux
Steps to reproduce
Run nats with multiple streams(40-50) with 100msg/s