[#1524] writecache: Add some bolt parameters to the configuration

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-06-16 18:21:10 +03:00 committed by LeL
parent 07e06249d5
commit 972ca83e23
4 changed files with 32 additions and 0 deletions

View file

@ -6,6 +6,7 @@ import (
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/blobstor/fstree"
"github.com/nspcc-dev/neofs-sdk-go/object"
oid "github.com/nspcc-dev/neofs-sdk-go/object/id"
"go.etcd.io/bbolt"
"go.uber.org/zap"
)
@ -98,6 +99,8 @@ func New(opts ...Option) Cache {
smallObjectSize: smallObjectSize,
workersCount: defaultFlushWorkersCount,
maxCacheSize: maxCacheSizeBytes,
maxBatchSize: bbolt.DefaultMaxBatchSize,
maxBatchDelay: bbolt.DefaultMaxBatchDelay,
},
}