-
Notifications
You must be signed in to change notification settings - Fork 186
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
NATS message bus has no working retention configured #7245
Comments
will be supersed if #7272 is implemented |
KV store also seems to have no TTL:
|
main-queue: Maximum Age -> 14 |
Did we check this with latest? I checked and all caches should now have ttls. Also eventhistory and userlog are hard set to 14 days.
|
No with rc.2 because latest didn't start for some reason I can't recap |
TTL should be implemented for all caches too now. |
Describe the bug
The NATS stream "main-queue" acts as single message bus for oCIS.
I expect the message bus to be ephemeral in the sense of:
But that seems not to be the case.
Example of a oCIS instance running for a longer time:
You can see the main queue holding 69k messages.
This is because of the retention policy "limits".
When you consult https://docs.nats.io/using-nats/developer/develop_jetstream/model_deep_dive, you'll learn that limits means that retention happens when a limit is reached.
But you'll see that the oCIS default configuration does not set any limits on the main-queue stream.
There are two solutions:
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
main-queue does not grow forever but also deletes old messages
Actual behavior
main-queue grows forever
The text was updated successfully, but these errors were encountered: