[#859] config: rename opened_cache_size to opened_cache_capacity

Capacity is a common term to use with cache, see e.g. leveldb
configuration.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-10-18 17:08:01 +03:00 committed by Alex Vanin
parent 0759d8d0e5
commit da51c119d5
6 changed files with 9 additions and 9 deletions

View file

@ -76,13 +76,13 @@ func (x *Config) ShallowWidth() uint64 {
return ShallowWidthDefault
}
// OpenedCacheSize returns value of "opened_cache_size" config parameter.
// OpenedCacheSize returns value of "opened_cache_capacity" config parameter.
//
// Returns OpenedCacheSizeDefault if value is not a positive number.
func (x *Config) OpenedCacheSize() int {
d := config.IntSafe(
(*config.Config)(x),
"opened_cache_size",
"opened_cache_capacity",
)
if d > 0 {

View file

@ -91,7 +91,7 @@ NEOFS_STORAGE_SHARD_0_BLOBSTOR_SMALL_OBJECT_SIZE=102400
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_OPENED_CACHE_SIZE=50
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
NEOFS_STORAGE_SHARD_0_GC_REMOVER_BATCH_SIZE=150
@ -122,7 +122,7 @@ NEOFS_STORAGE_SHARD_1_BLOBSTOR_SMALL_OBJECT_SIZE=102400
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_OPENED_CACHE_SIZE=50
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
NEOFS_STORAGE_SHARD_1_GC_REMOVER_BATCH_SIZE=200

View file

@ -125,7 +125,7 @@
"size": 4194304,
"shallow_depth": 1,
"shallow_width": 4,
"opened_cache_size": 50
"opened_cache_capacity": 50
}
},
"gc": {
@ -158,7 +158,7 @@
"size": 4194304,
"shallow_depth": 1,
"shallow_width": 4,
"opened_cache_size": 50
"opened_cache_capacity": 50
}
},
"gc": {

View file

@ -111,7 +111,7 @@ storage:
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
opened_cache_size: 50 # maximum number of opened database files
opened_cache_capacity: 50 # maximum number of opened database files
gc:
remover_batch_size: 200 # number of objects to be removed by the garbage collector

View file

@ -28,7 +28,7 @@ storage:
path: <storage-path>/blobstor
perm: 0600
blobovnicza:
opened_cache_size: 32
opened_cache_capacity: 32
shallow_depth: 1
shallow_width: 1
gc:

View file

@ -47,7 +47,7 @@ storage:
path: /storage/blobstor
perm: 0777
blobovnicza:
opened_cache_size: 32
opened_cache_capacity: 32
shallow_depth: 1
shallow_width: 1
gc: