Skip to content

Commit

Permalink
Increase cache invalidation times for mb.cache.buf and mb.fss.
Browse files Browse the repository at this point in the history
This is to avoid thrashing on sparse streams and streams that hit max msgs limits where we have to remove the first that nay be in a totally different block.

Signed-off-by: Derek Collison <[email protected]>
  • Loading branch information
derekcollison committed Jun 19, 2024
1 parent e2752d5 commit 4bc07a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/filestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,13 @@ const (
// Maximum size of a write buffer we may consider for re-use.
maxBufReuse = 2 * 1024 * 1024
// default cache buffer expiration
defaultCacheBufferExpiration = 2 * time.Second
defaultCacheBufferExpiration = 10 * time.Second
// default sync interval
defaultSyncInterval = 2 * time.Minute
// default idle timeout to close FDs.
closeFDsIdle = 30 * time.Second
// default expiration time for mb.fss when idle.
defaultFssExpiration = 10 * time.Second
defaultFssExpiration = 2 * time.Minute
// coalesceMinimum
coalesceMinimum = 16 * 1024
// maxFlushWait is maximum we will wait to gather messages to flush.
Expand Down

0 comments on commit 4bc07a1

Please sign in to comment.