forked from TrueCloudLab/frostfs-node
[#1462] writecache: Rename flushWorkersCount
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
0148209168
commit
54d4503701
2 changed files with 3 additions and 3 deletions
|
@ -20,8 +20,8 @@ const (
|
||||||
// to the main storage. It is used to reduce contention between cache put
|
// to the main storage. It is used to reduce contention between cache put
|
||||||
// and cache persist.
|
// and cache persist.
|
||||||
flushBatchSize = 512
|
flushBatchSize = 512
|
||||||
// flushWorkersCount is number of workers for putting objects in main storage.
|
// defaultFlushWorkersCount is number of workers for putting objects in main storage.
|
||||||
flushWorkersCount = 20
|
defaultFlushWorkersCount = 20
|
||||||
// defaultFlushInterval is default time interval between successive flushes.
|
// defaultFlushInterval is default time interval between successive flushes.
|
||||||
defaultFlushInterval = time.Second
|
defaultFlushInterval = time.Second
|
||||||
)
|
)
|
||||||
|
|
|
@ -96,7 +96,7 @@ func New(opts ...Option) Cache {
|
||||||
maxMemSize: maxInMemorySizeBytes,
|
maxMemSize: maxInMemorySizeBytes,
|
||||||
maxObjectSize: maxObjectSize,
|
maxObjectSize: maxObjectSize,
|
||||||
smallObjectSize: smallObjectSize,
|
smallObjectSize: smallObjectSize,
|
||||||
workersCount: flushWorkersCount,
|
workersCount: defaultFlushWorkersCount,
|
||||||
maxCacheSize: maxCacheSizeBytes,
|
maxCacheSize: maxCacheSizeBytes,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue