[#789] node/config: Add Shard's refill_metabase
config to examples
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
b5fff810f4
commit
d938c7267b
4 changed files with 14 additions and 0 deletions
|
@ -62,6 +62,8 @@ func TestEngineSection(t *testing.T) {
|
||||||
|
|
||||||
require.EqualValues(t, 150, gc.RemoverBatchSize())
|
require.EqualValues(t, 150, gc.RemoverBatchSize())
|
||||||
require.Equal(t, 2*time.Minute, gc.RemoverSleepInterval())
|
require.Equal(t, 2*time.Minute, gc.RemoverSleepInterval())
|
||||||
|
|
||||||
|
require.Equal(t, false, sc.RefillMetabase())
|
||||||
case 1:
|
case 1:
|
||||||
require.Equal(t, true, sc.UseWriteCache())
|
require.Equal(t, true, sc.UseWriteCache())
|
||||||
|
|
||||||
|
@ -88,6 +90,8 @@ func TestEngineSection(t *testing.T) {
|
||||||
|
|
||||||
require.EqualValues(t, 200, gc.RemoverBatchSize())
|
require.EqualValues(t, 200, gc.RemoverBatchSize())
|
||||||
require.Equal(t, 5*time.Minute, gc.RemoverSleepInterval())
|
require.Equal(t, 5*time.Minute, gc.RemoverSleepInterval())
|
||||||
|
|
||||||
|
require.Equal(t, true, sc.RefillMetabase())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,8 @@ NEOFS_OBJECT_PUT_POOL_SIZE=100
|
||||||
# Storage engine section
|
# Storage engine section
|
||||||
NEOFS_STORAGE_SHARD_NUM=2
|
NEOFS_STORAGE_SHARD_NUM=2
|
||||||
## 0 shard
|
## 0 shard
|
||||||
|
### Flag to refill Metabase from BlobStor
|
||||||
|
NEOFS_STORAGE_SHARD_0_REFILL_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
|
||||||
|
@ -98,6 +100,8 @@ NEOFS_STORAGE_SHARD_0_GC_REMOVER_BATCH_SIZE=150
|
||||||
NEOFS_STORAGE_SHARD_0_GC_REMOVER_SLEEP_INTERVAL=2m
|
NEOFS_STORAGE_SHARD_0_GC_REMOVER_SLEEP_INTERVAL=2m
|
||||||
|
|
||||||
## 1 shard
|
## 1 shard
|
||||||
|
### Flag to refill Metabase from BlobStor
|
||||||
|
NEOFS_STORAGE_SHARD_1_REFILL_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
|
||||||
|
|
|
@ -104,6 +104,7 @@
|
||||||
"shard_num": 2,
|
"shard_num": 2,
|
||||||
"shard": {
|
"shard": {
|
||||||
"0": {
|
"0": {
|
||||||
|
"refill_metabase": false,
|
||||||
"use_write_cache": false,
|
"use_write_cache": false,
|
||||||
"writecache": {
|
"writecache": {
|
||||||
"path": "tmp/0/cache",
|
"path": "tmp/0/cache",
|
||||||
|
@ -136,6 +137,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"1": {
|
"1": {
|
||||||
|
"refill_metabase": true,
|
||||||
"use_write_cache": true,
|
"use_write_cache": true,
|
||||||
"writecache": {
|
"writecache": {
|
||||||
"path": "tmp/1/cache",
|
"path": "tmp/1/cache",
|
||||||
|
|
|
@ -90,6 +90,8 @@ storage:
|
||||||
shard_num: 2
|
shard_num: 2
|
||||||
shard:
|
shard:
|
||||||
0:
|
0:
|
||||||
|
refill_metabase: false
|
||||||
|
|
||||||
use_write_cache: false
|
use_write_cache: false
|
||||||
|
|
||||||
writecache:
|
writecache:
|
||||||
|
@ -122,6 +124,8 @@ storage:
|
||||||
remover_sleep_interval: 2m
|
remover_sleep_interval: 2m
|
||||||
|
|
||||||
1:
|
1:
|
||||||
|
refill_metabase: true
|
||||||
|
|
||||||
use_write_cache: true
|
use_write_cache: true
|
||||||
|
|
||||||
writecache:
|
writecache:
|
||||||
|
|
Loading…
Reference in a new issue