Skip to content

Commit

Permalink
Since index.db is for fast recovery, increasing minimum interval to l…
Browse files Browse the repository at this point in the history
…essen affect on high speed ingest on large streams.

Signed-off-by: Derek Collison <[email protected]>
  • Loading branch information
derekcollison authored and neilalexander committed Dec 6, 2023
1 parent a8df2cd commit 413dc0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/filestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -7020,7 +7020,7 @@ const (
// This is also called during Stop().
func (fs *fileStore) flushStreamStateLoop(fch, qch, done chan struct{}) {
// Make sure we do not try to write these out too fast.
const writeThreshold = time.Second * 10
const writeThreshold = time.Minute
lastWrite := time.Time{}

// We will use these to complete the full state write while not doing them too fast.
Expand Down

0 comments on commit 413dc0c

Please sign in to comment.