mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
Update README.md
This commit is contained in:
parent
3781b63ae4
commit
61f883c4b1
@ -130,3 +130,10 @@ Below is what would be displayed with the above store limits configuration. Noti
|
||||
[INF] STREAM: -----------------------------------
|
||||
```
|
||||
|
||||
## Limits are Retroactive
|
||||
|
||||
Suppose you have set a channel limit to hold at most 100 messages, and the channel currently holds 72 messages. The server is stopped and the message limit for this channel is lowered to 50 messages, then the server is restarted.
|
||||
|
||||
On startup, the server will apply the store limits, which means that this channel will now hold the maximum number of messages (50) and the 22 oldest messages will be removed due to the channel limit.
|
||||
|
||||
We strongly recommend not raising the limit back to the higher limit if messages have been removed in the previous step because those removed messages may or may not become available again depending on the store implementation or if running in clustering mode or not.
|
||||
|
Loading…
x
Reference in New Issue
Block a user