[#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:
parent
e4087893a1
commit
cbf8ca12b0
4 changed files with 8 additions and 8 deletions
|
@ -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.
|
// Returns false if value is not a valid bool.
|
||||||
func (x *Config) RefillMetabase() bool {
|
func (x *Config) RefillMetabase() bool {
|
||||||
return config.BoolSafe(
|
return config.BoolSafe(
|
||||||
(*config.Config)(x),
|
(*config.Config)(x),
|
||||||
"refill_metabase",
|
"resync_metabase",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,7 @@ NEOFS_STORAGE_SHARD_POOL_SIZE=15
|
||||||
NEOFS_STORAGE_SHARD_NUM=2
|
NEOFS_STORAGE_SHARD_NUM=2
|
||||||
## 0 shard
|
## 0 shard
|
||||||
### Flag to refill Metabase from BlobStor
|
### Flag to refill Metabase from BlobStor
|
||||||
NEOFS_STORAGE_SHARD_0_REFILL_METABASE=false
|
NEOFS_STORAGE_SHARD_0_RESYNC_METABASE=false
|
||||||
### Write cache config
|
### Write cache config
|
||||||
NEOFS_STORAGE_SHARD_0_USE_WRITE_CACHE=false
|
NEOFS_STORAGE_SHARD_0_USE_WRITE_CACHE=false
|
||||||
NEOFS_STORAGE_SHARD_0_WRITECACHE_PATH=tmp/0/cache
|
NEOFS_STORAGE_SHARD_0_WRITECACHE_PATH=tmp/0/cache
|
||||||
|
@ -100,7 +100,7 @@ NEOFS_STORAGE_SHARD_0_GC_REMOVER_SLEEP_INTERVAL=2m
|
||||||
|
|
||||||
## 1 shard
|
## 1 shard
|
||||||
### Flag to refill Metabase from BlobStor
|
### Flag to refill Metabase from BlobStor
|
||||||
NEOFS_STORAGE_SHARD_1_REFILL_METABASE=true
|
NEOFS_STORAGE_SHARD_1_RESYNC_METABASE=true
|
||||||
### Write cache config
|
### Write cache config
|
||||||
NEOFS_STORAGE_SHARD_1_USE_WRITE_CACHE=true
|
NEOFS_STORAGE_SHARD_1_USE_WRITE_CACHE=true
|
||||||
NEOFS_STORAGE_SHARD_1_WRITECACHE_PATH=tmp/1/cache
|
NEOFS_STORAGE_SHARD_1_WRITECACHE_PATH=tmp/1/cache
|
||||||
|
|
|
@ -101,7 +101,7 @@
|
||||||
"shard_num": 2,
|
"shard_num": 2,
|
||||||
"shard": {
|
"shard": {
|
||||||
"0": {
|
"0": {
|
||||||
"refill_metabase": false,
|
"resync_metabase": false,
|
||||||
"use_write_cache": false,
|
"use_write_cache": false,
|
||||||
"writecache": {
|
"writecache": {
|
||||||
"path": "tmp/0/cache",
|
"path": "tmp/0/cache",
|
||||||
|
@ -134,7 +134,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"1": {
|
"1": {
|
||||||
"refill_metabase": true,
|
"resync_metabase": true,
|
||||||
"use_write_cache": true,
|
"use_write_cache": true,
|
||||||
"writecache": {
|
"writecache": {
|
||||||
"path": "tmp/1/cache",
|
"path": "tmp/1/cache",
|
||||||
|
|
|
@ -88,7 +88,7 @@ storage:
|
||||||
shard_pool_size: 15 # size of per-shard worker pools used for PUT operations
|
shard_pool_size: 15 # size of per-shard worker pools used for PUT operations
|
||||||
shard_num: 2 # total number of shards
|
shard_num: 2 # total number of shards
|
||||||
default: # section with the default shard parameters
|
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
|
use_write_cache: true # use write-cache
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ storage:
|
||||||
|
|
||||||
shard:
|
shard:
|
||||||
0:
|
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
|
use_write_cache: false # use write-cache
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue