[#211] cmd/neofs-node: Add SmallSizeLimit config value of BlobStor
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
b9054e2ee0
commit
a1164b2a5c
1 changed files with 7 additions and 0 deletions
|
@ -120,6 +120,7 @@ const (
|
|||
cfgBlobStorShallowDepth = "shallow_depth"
|
||||
cfgBlobStorTreePath = "path"
|
||||
cfgBlobStorTreePerm = "perm"
|
||||
cfgBlobStorSmallSzLimit = "small_size_limit"
|
||||
|
||||
cfgMetaBaseSection = "metabase"
|
||||
cfgMetaBasePath = "path"
|
||||
|
@ -451,6 +452,10 @@ func initShardOptions(c *cfg) {
|
|||
configPath(blobPrefix, cfgBlobStorShallowDepth),
|
||||
)
|
||||
|
||||
smallSzLimit := c.viper.GetUint64(
|
||||
configPath(blobPrefix, cfgBlobStorSmallSzLimit),
|
||||
)
|
||||
|
||||
metaPrefix := configPath(prefix, cfgMetaBaseSection)
|
||||
|
||||
metaPath := c.viper.GetString(
|
||||
|
@ -473,6 +478,7 @@ func initShardOptions(c *cfg) {
|
|||
blobstor.WithCompressObjects(compressObjects, c.log),
|
||||
blobstor.WithTreeRootPerm(blobPerm),
|
||||
blobstor.WithShallowDepth(shallowDepth),
|
||||
blobstor.WithSmallSizeLimit(smallSzLimit),
|
||||
),
|
||||
shard.WithMetaBaseOptions(
|
||||
meta.WithLogger(c.log),
|
||||
|
@ -485,6 +491,7 @@ func initShardOptions(c *cfg) {
|
|||
zap.Stringer("BLOB permissions", blobPerm),
|
||||
zap.Bool("BLOB compress", compressObjects),
|
||||
zap.Int("BLOB shallow depth", shallowDepth),
|
||||
zap.Uint64("BLOB small size limit", smallSzLimit),
|
||||
zap.String("metabase path", metaPath),
|
||||
zap.Stringer("metabase permissions", metaPerm),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue