[#859] config: rename refill_metabase to resync_metabase

This flag enables metabase content synchronization with blobstor on
start.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-10-18 17:03:09 +03:00 committed by Alex Vanin
parent e4087893a1
commit cbf8ca12b0
4 changed files with 8 additions and 8 deletions

View file

@ -59,12 +59,12 @@ func (x *Config) GC() *gcconfig.Config {
)
}
// RefillMetabase returns value of "refill_metabase" config parameter.
// RefillMetabase returns value of "resync_metabase" config parameter.
//
// Returns false if value is not a valid bool.
func (x *Config) RefillMetabase() bool {
return config.BoolSafe(
(*config.Config)(x),
"refill_metabase",
"resync_metabase",
)
}

View file

@ -69,7 +69,7 @@ NEOFS_STORAGE_SHARD_POOL_SIZE=15
NEOFS_STORAGE_SHARD_NUM=2
## 0 shard
### Flag to refill Metabase from BlobStor
NEOFS_STORAGE_SHARD_0_REFILL_METABASE=false
NEOFS_STORAGE_SHARD_0_RESYNC_METABASE=false
### Write cache config
NEOFS_STORAGE_SHARD_0_USE_WRITE_CACHE=false
NEOFS_STORAGE_SHARD_0_WRITECACHE_PATH=tmp/0/cache
@ -100,7 +100,7 @@ NEOFS_STORAGE_SHARD_0_GC_REMOVER_SLEEP_INTERVAL=2m
## 1 shard
### Flag to refill Metabase from BlobStor
NEOFS_STORAGE_SHARD_1_REFILL_METABASE=true
NEOFS_STORAGE_SHARD_1_RESYNC_METABASE=true
### Write cache config
NEOFS_STORAGE_SHARD_1_USE_WRITE_CACHE=true
NEOFS_STORAGE_SHARD_1_WRITECACHE_PATH=tmp/1/cache

View file

@ -101,7 +101,7 @@
"shard_num": 2,
"shard": {
"0": {
"refill_metabase": false,
"resync_metabase": false,
"use_write_cache": false,
"writecache": {
"path": "tmp/0/cache",
@ -134,7 +134,7 @@
}
},
"1": {
"refill_metabase": true,
"resync_metabase": true,
"use_write_cache": true,
"writecache": {
"path": "tmp/1/cache",

View file

@ -88,7 +88,7 @@ storage:
shard_pool_size: 15 # size of per-shard worker pools used for PUT operations
shard_num: 2 # total number of shards
default: # section with the default shard parameters
refill_metabase: true # sync metabase with blobstore on start, expensive, leave false until complete understanding
resync_metabase: true # sync metabase with blobstore on start, expensive, leave false until complete understanding
use_write_cache: true # use write-cache
@ -119,7 +119,7 @@ storage:
shard:
0:
refill_metabase: false # sync metabase with blobstore on start, expensive, leave false until complete understanding
resync_metabase: false # sync metabase with blobstore on start, expensive, leave false until complete understanding
use_write_cache: false # use write-cache