forked from TrueCloudLab/frostfs-node
[#859] config: rename writecache.size_limit
to writecache.capacity
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
c015b04ed5
commit
e7fd980951
4 changed files with 8 additions and 8 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue