[#789] node/config: Add Shard's refill_metabase config to examples

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-09-13 16:58:37 +03:00 committed by Alex Vanin
parent b5fff810f4
commit d938c7267b
4 changed files with 14 additions and 0 deletions

View file

@ -62,6 +62,8 @@ func TestEngineSection(t *testing.T) {
require.EqualValues(t, 150, gc.RemoverBatchSize())
require.Equal(t, 2*time.Minute, gc.RemoverSleepInterval())
require.Equal(t, false, sc.RefillMetabase())
case 1:
require.Equal(t, true, sc.UseWriteCache())
@ -88,6 +90,8 @@ func TestEngineSection(t *testing.T) {
require.EqualValues(t, 200, gc.RemoverBatchSize())
require.Equal(t, 5*time.Minute, gc.RemoverSleepInterval())
require.Equal(t, true, sc.RefillMetabase())
}
})

View file

@ -69,6 +69,8 @@ NEOFS_OBJECT_PUT_POOL_SIZE=100
# Storage engine section
NEOFS_STORAGE_SHARD_NUM=2
## 0 shard
### Flag to refill Metabase from BlobStor
NEOFS_STORAGE_SHARD_0_REFILL_METABASE=false
### Write cache config
NEOFS_STORAGE_SHARD_0_USE_WRITE_CACHE=false
NEOFS_STORAGE_SHARD_0_WRITECACHE_PATH=tmp/0/cache
@ -98,6 +100,8 @@ NEOFS_STORAGE_SHARD_0_GC_REMOVER_BATCH_SIZE=150
NEOFS_STORAGE_SHARD_0_GC_REMOVER_SLEEP_INTERVAL=2m
## 1 shard
### Flag to refill Metabase from BlobStor
NEOFS_STORAGE_SHARD_1_REFILL_METABASE=true
### Write cache config
NEOFS_STORAGE_SHARD_1_USE_WRITE_CACHE=true
NEOFS_STORAGE_SHARD_1_WRITECACHE_PATH=tmp/1/cache

View file

@ -104,6 +104,7 @@
"shard_num": 2,
"shard": {
"0": {
"refill_metabase": false,
"use_write_cache": false,
"writecache": {
"path": "tmp/0/cache",
@ -136,6 +137,7 @@
}
},
"1": {
"refill_metabase": true,
"use_write_cache": true,
"writecache": {
"path": "tmp/1/cache",

View file

@ -90,6 +90,8 @@ storage:
shard_num: 2
shard:
0:
refill_metabase: false
use_write_cache: false
writecache:
@ -122,6 +124,8 @@ storage:
remover_sleep_interval: 2m
1:
refill_metabase: true
use_write_cache: true
writecache: