forked from TrueCloudLab/frostfs-node
[#674] node: Configure size of per-shard worker pools
Add `shard_pool_size` config to `storage` section. Set app default to 20. Pass the value to `WithShardPoolSize` option. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
5b1975d52a
commit
2126235f0e
6 changed files with 35 additions and 3 deletions
|
@ -68,6 +68,7 @@ NEOFS_OBJECT_PUT_POOL_SIZE_REMOTE=100
|
|||
NEOFS_OBJECT_PUT_POOL_SIZE_LOCAL=101
|
||||
|
||||
# Storage engine section
|
||||
NEOFS_STORAGE_SHARD_POOL_SIZE=15
|
||||
NEOFS_STORAGE_SHARD_NUM=2
|
||||
## 0 shard
|
||||
### Flag to refill Metabase from BlobStor
|
||||
|
|
|
@ -102,6 +102,7 @@
|
|||
}
|
||||
},
|
||||
"storage": {
|
||||
"shard_pool_size": 15,
|
||||
"shard_num": 2,
|
||||
"shard": {
|
||||
"0": {
|
||||
|
|
|
@ -88,6 +88,7 @@ object:
|
|||
pool_size_local: 101 # number of async workers for local PUT operations
|
||||
|
||||
storage:
|
||||
shard_pool_size: 15 # size of per-shard worker pools used for PUT operations
|
||||
shard_num: 2 # total number of shards
|
||||
shard:
|
||||
0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue