From e7fd9809517b2ca18beb4e91498b3f08f94b7932 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 18 Oct 2021 17:29:30 +0300 Subject: [PATCH] [#859] config: rename `writecache.size_limit` to `writecache.capacity` Signed-off-by: Evgenii Stratonikov --- cmd/neofs-node/config/engine/shard/writecache/config.go | 4 ++-- config/example/node.env | 4 ++-- config/example/node.json | 4 ++-- config/example/node.yaml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cmd/neofs-node/config/engine/shard/writecache/config.go b/cmd/neofs-node/config/engine/shard/writecache/config.go index 151d4880a3..9a8f22b534 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 75fcd7f07c..858c2f3a96 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 f1a790763c..4da27e544c 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 2df5d47bf8..80a48b9889 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