diff --git a/cmd/neofs-node/config/engine/shard/writecache/config.go b/cmd/neofs-node/config/engine/shard/writecache/config.go index 151d4880..9a8f22b5 100644 --- a/cmd/neofs-node/config/engine/shard/writecache/config.go +++ b/cmd/neofs-node/config/engine/shard/writecache/config.go @@ -111,13 +111,13 @@ func (x *Config) WorkersNumber() int { return WorkersNumberDefault } -// SizeLimit returns value of "size_limit" config parameter. +// SizeLimit returns value of "capacity" config parameter. // // Returns SizeLimitDefault if value is not a positive number. func (x *Config) SizeLimit() uint64 { c := config.SizeInBytesSafe( (*config.Config)(x), - "size_limit", + "capacity", ) if c > 0 { diff --git a/config/example/node.env b/config/example/node.env index 75fcd7f0..858c2f3a 100644 --- a/config/example/node.env +++ b/config/example/node.env @@ -77,7 +77,7 @@ NEOFS_STORAGE_SHARD_0_WRITECACHE_MEMCACHE_CAPACITY=2147483648 NEOFS_STORAGE_SHARD_0_WRITECACHE_SMALL_OBJECT_SIZE=16384 NEOFS_STORAGE_SHARD_0_WRITECACHE_MAX_OBJECT_SIZE=134217728 NEOFS_STORAGE_SHARD_0_WRITECACHE_WORKERS_NUMBER=30 -NEOFS_STORAGE_SHARD_0_WRITECACHE_SIZE_LIMIT=3221225472 +NEOFS_STORAGE_SHARD_0_WRITECACHE_CAPACITY=3221225472 ### Metabase config NEOFS_STORAGE_SHARD_0_METABASE_PATH=tmp/0/meta NEOFS_STORAGE_SHARD_0_METABASE_PERM=0644 @@ -108,7 +108,7 @@ NEOFS_STORAGE_SHARD_1_WRITECACHE_MEMCACHE_CAPACITY=2147483648 NEOFS_STORAGE_SHARD_1_WRITECACHE_SMALL_OBJECT_SIZE=16384 NEOFS_STORAGE_SHARD_1_WRITECACHE_MAX_OBJECT_SIZE=134217728 NEOFS_STORAGE_SHARD_1_WRITECACHE_WORKERS_NUMBER=30 -NEOFS_STORAGE_SHARD_1_WRITECACHE_SIZE_LIMIT=4294967296 +NEOFS_STORAGE_SHARD_1_WRITECACHE_CAPACITY=4294967296 ### Metabase config NEOFS_STORAGE_SHARD_1_METABASE_PATH=tmp/1/meta NEOFS_STORAGE_SHARD_1_METABASE_PERM=0644 diff --git a/config/example/node.json b/config/example/node.json index f1a79076..4da27e54 100644 --- a/config/example/node.json +++ b/config/example/node.json @@ -109,7 +109,7 @@ "small_object_size": 16384, "max_object_size": 134217728, "workers_number": 30, - "size_limit": 3221225472 + "capacity": 3221225472 }, "metabase": { "path": "tmp/0/meta", @@ -142,7 +142,7 @@ "small_object_size": 16384, "max_object_size": 134217728, "workers_number": 30, - "size_limit": 4294967296 + "capacity": 4294967296 }, "metabase": { "path": "tmp/1/meta", diff --git a/config/example/node.yaml b/config/example/node.yaml index 2df5d47b..80a48b98 100644 --- a/config/example/node.yaml +++ b/config/example/node.yaml @@ -125,7 +125,7 @@ storage: writecache: path: tmp/0/cache # write-cache root directory - size_limit: 3221225472 # approximate write-cache total size, bytes + capacity: 3221225472 # approximate write-cache total size, bytes metabase: path: tmp/0/meta # metabase path @@ -141,7 +141,7 @@ storage: 1: writecache: path: tmp/1/cache # write-cache root directory - size_limit: 4294967296 # approximate write-cache total size, bytes + capacity: 4294967296 # approximate write-cache total size, bytes metabase: path: tmp/1/meta # metabase path