Skip to content
New issue

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

[Jetstream] Add MaxBytesPerSubject stream configuration #4128

Open
kindermoumoute opened this issue May 3, 2023 · 1 comment
Open

[Jetstream] Add MaxBytesPerSubject stream configuration #4128

kindermoumoute opened this issue May 3, 2023 · 1 comment
Labels
proposal Enhancement idea or proposal

Comments

@kindermoumoute
Copy link

kindermoumoute commented May 3, 2023

Feature Request

Use Case:

When using the stream configurationDiscardPolicy = DiscardNew and DiscardNewPerSubject = true, I want to limit the amount of messages and bytes used per subject. The first one is possible with MaxMsgsPerSubject, the second one is missing.

Proposed Change:

In the stream configuration, add MaxBytesPerSubject - similar to the current MaxMsgsPerSubject.

Alternative Approaches

  • Configure only MaxMsgSize and MaxMsgsPerSubject. Cons: force to oversize of the stream.
  • Use multiple streams. Cons: not possible to use multiple subject filters.
@kindermoumoute kindermoumoute changed the title [Jetstream] Add MaxbytesPerSubject stream configuration [Jetstream] Add MaxBytesPerSubject stream configuration May 3, 2023
@derekcollison
Copy link
Member

Correct we do not have max bytes per subject atm. And currently do not have any plans for this feature but will review.

@bruth bruth added proposal Enhancement idea or proposal and removed 🎉 enhancement labels Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Enhancement idea or proposal
Projects
None yet
Development

No branches or pull requests

4 participants
@derekcollison @bruth @kindermoumoute and others