[#711] node/config/example: Make config examples usable

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-07-22 16:10:45 +03:00 committed by Alex Vanin
parent c41ec2e2e9
commit da516c6754
3 changed files with 92 additions and 90 deletions

View file

@ -67,54 +67,56 @@ NEOFS_STORAGE_SHARD_NUM=2
### Write cache config
NEOFS_STORAGE_SHARD_0_USE_WRITE_CACHE=false
NEOFS_STORAGE_SHARD_0_WRITECACHE_PATH=tmp/0/cache
NEOFS_STORAGE_SHARD_0_WRITECACHE_MEM_SIZE=111
NEOFS_STORAGE_SHARD_0_WRITECACHE_DB_SIZE=222
NEOFS_STORAGE_SHARD_0_WRITECACHE_SMALL_SIZE=333
NEOFS_STORAGE_SHARD_0_WRITECACHE_MAX_SIZE=444
NEOFS_STORAGE_SHARD_0_WRITECACHE_WORKERS_NUMBER=555
NEOFS_STORAGE_SHARD_0_WRITECACHE_MEM_SIZE=2147483648
NEOFS_STORAGE_SHARD_0_WRITECACHE_DB_SIZE=2147483648
NEOFS_STORAGE_SHARD_0_WRITECACHE_SMALL_SIZE=16384
NEOFS_STORAGE_SHARD_0_WRITECACHE_MAX_SIZE=134217728
NEOFS_STORAGE_SHARD_0_WRITECACHE_WORKERS_NUMBER=30
### Metabase config
NEOFS_STORAGE_SHARD_0_METABASE_PATH=tmp/0/meta
NEOFS_STORAGE_SHARD_0_METABASE_PERM=0700
NEOFS_STORAGE_SHARD_0_METABASE_PERM=0644
### Blobstor config
NEOFS_STORAGE_SHARD_0_BLOBSTOR_PATH=tmp/0/blob
NEOFS_STORAGE_SHARD_0_BLOBSTOR_PERM=0666
NEOFS_STORAGE_SHARD_0_BLOBSTOR_SHALLOW_DEPTH=5
NEOFS_STORAGE_SHARD_0_BLOBSTOR_PERM=0644
NEOFS_STORAGE_SHARD_0_BLOBSTOR_COMPRESS=true
NEOFS_STORAGE_SHARD_0_BLOBSTOR_SMALL_SIZE_LIMIT=77
NEOFS_STORAGE_SHARD_0_BLOBSTOR_SHALLOW_DEPTH=5
NEOFS_STORAGE_SHARD_0_BLOBSTOR_SMALL_SIZE_LIMIT=102400
### Blobovnicza config
NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_SIZE=1024
NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_SHALLOW_DEPTH=10
NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_SHALLOW_WIDTH=20
NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_OPENED_CACHE_SIZE=88
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
### GC config
#### Limit of the single data remover's batching operation in number of objects
NEOFS_STORAGE_SHARD_0_GC_REMOVER_BATCH_SIZE=123
NEOFS_STORAGE_SHARD_0_GC_REMOVER_BATCH_SIZE=150
#### Sleep interval between data remover tacts
NEOFS_STORAGE_SHARD_0_GC_REMOVER_SLEEP_INTERVAL=3h
NEOFS_STORAGE_SHARD_0_GC_REMOVER_SLEEP_INTERVAL=2m
## 1 shard
### Write cache config
NEOFS_STORAGE_SHARD_1_USE_WRITE_CACHE=true
NEOFS_STORAGE_SHARD_1_WRITECACHE_PATH=tmp/1/cache
NEOFS_STORAGE_SHARD_1_WRITECACHE_MEM_SIZE=112
NEOFS_STORAGE_SHARD_1_WRITECACHE_DB_SIZE=223
NEOFS_STORAGE_SHARD_1_WRITECACHE_SMALL_SIZE=334
NEOFS_STORAGE_SHARD_1_WRITECACHE_MAX_SIZE=445
NEOFS_STORAGE_SHARD_1_WRITECACHE_WORKERS_NUMBER=556
NEOFS_STORAGE_SHARD_1_WRITECACHE_MEM_SIZE=2147483648
NEOFS_STORAGE_SHARD_1_WRITECACHE_DB_SIZE=2147483648
NEOFS_STORAGE_SHARD_1_WRITECACHE_SMALL_SIZE=16384
NEOFS_STORAGE_SHARD_1_WRITECACHE_MAX_SIZE=134217728
NEOFS_STORAGE_SHARD_1_WRITECACHE_WORKERS_NUMBER=30
### Metabase config
NEOFS_STORAGE_SHARD_1_METABASE_PATH=tmp/1/meta
NEOFS_STORAGE_SHARD_1_METABASE_PERM=0701
NEOFS_STORAGE_SHARD_1_METABASE_PERM=0644
### Blobstor config
NEOFS_STORAGE_SHARD_1_BLOBSTOR_PATH=tmp/1/blob
NEOFS_STORAGE_SHARD_1_BLOBSTOR_PERM=0667
NEOFS_STORAGE_SHARD_1_BLOBSTOR_PERM=0644
NEOFS_STORAGE_SHARD_1_BLOBSTOR_COMPRESS=false
NEOFS_STORAGE_SHARD_1_BLOBSTOR_SHALLOW_DEPTH=6
NEOFS_STORAGE_SHARD_1_BLOBSTOR_SMALL_SIZE_LIMIT=78
NEOFS_STORAGE_SHARD_1_BLOBSTOR_SHALLOW_DEPTH=5
NEOFS_STORAGE_SHARD_1_BLOBSTOR_SMALL_SIZE_LIMIT=102400
### Blobovnicza config
NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_SIZE=1025
NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_SHALLOW_DEPTH=11
NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_SHALLOW_WIDTH=21
NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_OPENED_CACHE_SIZE=89
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
### GC config
NEOFS_STORAGE_SHARD_1_GC_REMOVER_BATCH_SIZE=124
NEOFS_STORAGE_SHARD_1_GC_REMOVER_SLEEP_INTERVAL=3h1s
#### Limit of the single data remover's batching operation in number of objects
NEOFS_STORAGE_SHARD_1_GC_REMOVER_BATCH_SIZE=200
#### Sleep interval between data remover tacts
NEOFS_STORAGE_SHARD_1_GC_REMOVER_SLEEP_INTERVAL=5m

View file

@ -98,64 +98,64 @@
"use_write_cache": false,
"writecache": {
"path": "tmp/0/cache",
"mem_size": 111,
"db_size": 222,
"small_size": 333,
"max_size": 444,
"workers_number": 555
"mem_size": 2147483648,
"db_size": 2147483648,
"small_size": 16384,
"max_size": 134217728,
"workers_number": 30
},
"metabase": {
"path": "tmp/0/meta",
"perm": "0700"
"perm": "0644"
},
"blobstor": {
"path": "tmp/0/blob",
"perm": "0666",
"shallow_depth": 5,
"perm": "0644",
"compress": true,
"small_size_limit": 77,
"shallow_depth": 5,
"small_size_limit": 102400,
"blobovnicza": {
"size": 1024,
"shallow_depth": 10,
"shallow_width": 20,
"opened_cache_size": 88
"size": 4194304,
"shallow_depth": 1,
"shallow_width": 4,
"opened_cache_size": 50
}
},
"gc": {
"remover_batch_size": 123,
"remover_sleep_interval": "3h"
"remover_batch_size": 150,
"remover_sleep_interval": "2m"
}
},
"1": {
"use_write_cache": true,
"writecache": {
"path": "tmp/1/cache",
"mem_size": 112,
"db_size": 223,
"small_size": 334,
"max_size": 445,
"workers_number": 556
"mem_size": 2147483648,
"db_size": 2147483648,
"small_size": 16384,
"max_size": 134217728,
"workers_number": 30
},
"metabase": {
"path": "tmp/1/meta",
"perm": "0701"
"perm": "0644"
},
"blobstor": {
"path": "tmp/1/blob",
"perm": "0667",
"shallow_depth": 6,
"perm": "0644",
"compress": false,
"small_size_limit": 78,
"shallow_depth": 5,
"small_size_limit": 102400,
"blobovnicza": {
"size": 1025,
"shallow_depth": 11,
"shallow_width": 21,
"opened_cache_size": 89
"size": 4194304,
"shallow_depth": 1,
"shallow_width": 4,
"opened_cache_size": 50
}
},
"gc": {
"remover_batch_size": 124,
"remover_sleep_interval": "3h1s"
"remover_batch_size": 200,
"remover_sleep_interval": "5m"
}
}
}

View file

@ -87,61 +87,61 @@ storage:
writecache:
path: tmp/0/cache
mem_size: 111
db_size: 222
small_size: 333
max_size: 444
workers_number: 555
mem_size: 2147483648
db_size: 2147483648
small_size: 16384
max_size: 134217728
workers_number: 30
metabase:
path: tmp/0/meta
perm: 0700
perm: 0644
blobstor:
path: tmp/0/blob
perm: 0666
shallow_depth: 5
perm: 0644
compress: true
small_size_limit: 77
shallow_depth: 5
small_size_limit: 102400
blobovnicza:
size: 1024
shallow_depth: 10
shallow_width: 20
opened_cache_size: 88
size: 4194304
shallow_depth: 1
shallow_width: 4
opened_cache_size: 50
gc:
remover_batch_size: 123
remover_sleep_interval: 3h
remover_batch_size: 150
remover_sleep_interval: 2m
1:
use_write_cache: true
writecache:
path: tmp/1/cache
mem_size: 112
db_size: 223
small_size: 334
max_size: 445
workers_number: 556
mem_size: 2147483648
db_size: 2147483648
small_size: 16384
max_size: 134217728
workers_number: 30
metabase:
path: tmp/1/meta
perm: 0701
perm: 0644
blobstor:
path: tmp/1/blob
perm: 0667
shallow_depth: 6
perm: 0644
compress: false
small_size_limit: 78
shallow_depth: 5
small_size_limit: 102400
blobovnicza:
size: 1025
shallow_depth: 11
shallow_width: 21
opened_cache_size: 89
size: 4194304
shallow_depth: 1
shallow_width: 4
opened_cache_size: 50
gc:
remover_batch_size: 124
remover_sleep_interval: 3h1s
remover_batch_size: 200
remover_sleep_interval: 5m