diff --git a/cmd/neofs-node/config/engine/shard/blobstor/blobovnicza/config.go b/cmd/neofs-node/config/engine/shard/blobstor/blobovnicza/config.go index a5eeb0ced..f0d405789 100644 --- a/cmd/neofs-node/config/engine/shard/blobstor/blobovnicza/config.go +++ b/cmd/neofs-node/config/engine/shard/blobstor/blobovnicza/config.go @@ -44,13 +44,13 @@ func (x *Config) Size() uint64 { return SizeDefault } -// ShallowDepth returns value of "shallow_depth" config parameter. +// ShallowDepth returns value of "depth" config parameter. // // Returns ShallowDepthDefault if value is not a positive number. func (x *Config) ShallowDepth() uint64 { d := config.UintSafe( (*config.Config)(x), - "shallow_depth", + "depth", ) if d > 0 { @@ -60,13 +60,13 @@ func (x *Config) ShallowDepth() uint64 { return ShallowDepthDefault } -// ShallowWidth returns value of "shallow_width" config parameter. +// ShallowWidth returns value of "width" config parameter. // // Returns ShallowWidthDefault if value is not a positive number. func (x *Config) ShallowWidth() uint64 { d := config.UintSafe( (*config.Config)(x), - "shallow_width", + "width", ) if d > 0 { diff --git a/cmd/neofs-node/config/engine/shard/blobstor/config.go b/cmd/neofs-node/config/engine/shard/blobstor/config.go index c05563019..51c380ce6 100644 --- a/cmd/neofs-node/config/engine/shard/blobstor/config.go +++ b/cmd/neofs-node/config/engine/shard/blobstor/config.go @@ -61,14 +61,14 @@ func (x *Config) Perm() fs.FileMode { return fs.FileMode(p) } -// ShallowDepth returns value of "shallow_depth" config parameter. +// ShallowDepth returns value of "depth" config parameter. // // Returns ShallowDepthDefault if value is out of // [1:fstree.MaxDepth] range. func (x *Config) ShallowDepth() int { d := config.IntSafe( (*config.Config)(x), - "shallow_depth", + "depth", ) if d >= 1 && d <= fstree.MaxDepth { diff --git a/config/example/node.env b/config/example/node.env index f6cf81c1b..75fcd7f07 100644 --- a/config/example/node.env +++ b/config/example/node.env @@ -85,12 +85,12 @@ NEOFS_STORAGE_SHARD_0_METABASE_PERM=0644 NEOFS_STORAGE_SHARD_0_BLOBSTOR_PATH=tmp/0/blob NEOFS_STORAGE_SHARD_0_BLOBSTOR_PERM=0644 NEOFS_STORAGE_SHARD_0_BLOBSTOR_COMPRESS=true -NEOFS_STORAGE_SHARD_0_BLOBSTOR_SHALLOW_DEPTH=5 +NEOFS_STORAGE_SHARD_0_BLOBSTOR_DEPTH=5 NEOFS_STORAGE_SHARD_0_BLOBSTOR_SMALL_OBJECT_SIZE=102400 ### Blobovnicza config NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_SIZE=4194304 -NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_SHALLOW_DEPTH=1 -NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_SHALLOW_WIDTH=4 +NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_DEPTH=1 +NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_WIDTH=4 NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_OPENED_CACHE_CAPACITY=50 ### GC config #### Limit of the single data remover's batching operation in number of objects @@ -116,12 +116,12 @@ NEOFS_STORAGE_SHARD_1_METABASE_PERM=0644 NEOFS_STORAGE_SHARD_1_BLOBSTOR_PATH=tmp/1/blob NEOFS_STORAGE_SHARD_1_BLOBSTOR_PERM=0644 NEOFS_STORAGE_SHARD_1_BLOBSTOR_COMPRESS=false -NEOFS_STORAGE_SHARD_1_BLOBSTOR_SHALLOW_DEPTH=5 +NEOFS_STORAGE_SHARD_1_BLOBSTOR_DEPTH=5 NEOFS_STORAGE_SHARD_1_BLOBSTOR_SMALL_OBJECT_SIZE=102400 ### Blobovnicza config NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_SIZE=4194304 -NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_SHALLOW_DEPTH=1 -NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_SHALLOW_WIDTH=4 +NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_DEPTH=1 +NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_WIDTH=4 NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_OPENED_CACHE_CAPACITY=50 ### GC config #### Limit of the single data remover's batching operation in number of objects diff --git a/config/example/node.json b/config/example/node.json index 57739a646..f1a790763 100644 --- a/config/example/node.json +++ b/config/example/node.json @@ -119,12 +119,12 @@ "path": "tmp/0/blob", "perm": "0644", "compress": true, - "shallow_depth": 5, + "depth": 5, "small_object_size": 102400, "blobovnicza": { "size": 4194304, - "shallow_depth": 1, - "shallow_width": 4, + "depth": 1, + "width": 4, "opened_cache_capacity": 50 } }, @@ -152,12 +152,12 @@ "path": "tmp/1/blob", "perm": "0644", "compress": false, - "shallow_depth": 5, + "depth": 5, "small_object_size": 102400, "blobovnicza": { "size": 4194304, - "shallow_depth": 1, - "shallow_width": 4, + "depth": 1, + "width": 4, "opened_cache_capacity": 50 } }, diff --git a/config/example/node.yaml b/config/example/node.yaml index c980fd597..2df5d47bf 100644 --- a/config/example/node.yaml +++ b/config/example/node.yaml @@ -104,13 +104,13 @@ storage: blobstor: compress: false # turn on/off zstd(level 3) compression of stored objects perm: 0644 # permissions for blobstor files(directories: +x for current user and group) - shallow_depth: 5 # max depth of object tree storage in FS + depth: 5 # max depth of object tree storage in FS small_object_size: 102400 # size threshold for "small" objects which are cached in key-value DB, not in FS, bytes blobovnicza: size: 4194304 # approximate size limit of single blobovnicza instance, total size will be: size*width^(depth+1), bytes - shallow_depth: 1 # max depth of object tree storage in key-value DB - shallow_width: 4 # max width of object tree storage in key-value DB + depth: 1 # max depth of object tree storage in key-value DB + width: 4 # max width of object tree storage in key-value DB opened_cache_capacity: 50 # maximum number of opened database files gc: diff --git a/config/mainnet/config.yml b/config/mainnet/config.yml index ac8492c26..473d1f6c2 100644 --- a/config/mainnet/config.yml +++ b/config/mainnet/config.yml @@ -29,8 +29,8 @@ storage: perm: 0600 blobovnicza: opened_cache_capacity: 32 - shallow_depth: 1 - shallow_width: 1 + depth: 1 + width: 1 gc: remover_batch_size: 100 remover_sleep_interval: 1m diff --git a/config/testnet/config.yml b/config/testnet/config.yml index 9974b9b13..d43bcf23c 100644 --- a/config/testnet/config.yml +++ b/config/testnet/config.yml @@ -48,8 +48,8 @@ storage: perm: 0777 blobovnicza: opened_cache_capacity: 32 - shallow_depth: 1 - shallow_width: 1 + depth: 1 + width: 1 gc: remover_batch_size: 100 remover_sleep_interval: 1m