Reduce the capacity of countPersistedHeadChunks.

The capacity is basically how many persisted head chunks we will count
at most while doing other things, in particular checkpointing. To
limit the amount of already counted head chunks, keep this number low,
otherwise we will easily checkpoint too often if checkpoints take long
anyway.
This commit is contained in:
beorn7 2015-02-27 00:53:52 +01:00
parent 9406afad72
commit 1db7589081
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ func NewMemorySeriesStorage(o *MemorySeriesStorageOptions) (Storage, error) {
persistStopped: make(chan struct{}), persistStopped: make(chan struct{}),
persistence: p, persistence: p,
countPersistedHeadChunks: make(chan struct{}, 1024), countPersistedHeadChunks: make(chan struct{}, 100),
evictList: list.New(), evictList: list.New(),
evictRequests: make(chan evictRequest, evictRequestsCap), evictRequests: make(chan evictRequest, evictRequestsCap),