Add storage engine configuration for storage nodes

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-12-11 15:16:36 +03:00 committed by Stanislav Bogatyrev
parent 5409d78e3c
commit c5b611e6cf
2 changed files with 40 additions and 2 deletions

4
.env
View file

@ -10,11 +10,11 @@ NEOGO_VERSION=0.91.1-pre-389-g71216865
MORPH_CHAIN_URL="https://fs.neo.org/dist/morph.chain.gz" MORPH_CHAIN_URL="https://fs.neo.org/dist/morph.chain.gz"
# NeoFS InnerRing nodes # NeoFS InnerRing nodes
IR_VERSION=0.12.1 IR_VERSION=0.13.0
IR_IMAGE=nspccdev/neofs-ir IR_IMAGE=nspccdev/neofs-ir
# NeoFS Storage nodes # NeoFS Storage nodes
NODE_VERSION=0.12.1 NODE_VERSION=0.13.0
NODE_IMAGE=nspccdev/neofs-storage NODE_IMAGE=nspccdev/neofs-storage
# HTTP Gate # HTTP Gate

View file

@ -6,3 +6,41 @@ NEOFS_CONTAINER_SCRIPTHASH=a4aa1d4c91f94ddd65b02edf47aab39ba921dd8f
NEOFS_NETMAP_SCRIPTHASH=80aed80f782d6ac09d717b162123396620f0f382 NEOFS_NETMAP_SCRIPTHASH=80aed80f782d6ac09d717b162123396620f0f382
NEOFS_BOOTSTRAP_PERIODIC_ENABLED=true NEOFS_BOOTSTRAP_PERIODIC_ENABLED=true
# Storage engine configuration
## First shard
### Write cache config
NEOFS_STORAGE_SHARD_0_USE_WRITE_CACHE=false
### Metabase config
NEOFS_STORAGE_SHARD_0_METABASE_PATH=/storage/meta0
NEOFS_STORAGE_SHARD_0_METABASE_PERM=0700
### Blobstor config
NEOFS_STORAGE_SHARD_0_BLOBSTOR_PATH=/storage/blobstor0
NEOFS_STORAGE_SHARD_0_BLOBSTOR_PERM=0700
NEOFS_STORAGE_SHARD_0_BLOBSTOR_SHALLOW_DEPTH=4
NEOFS_STORAGE_SHARD_0_BLOBSTOR_COMPRESS=true
NEOFS_STORAGE_SHARD_0_BLOBSTOR_SMALL_SIZE_LIMIT=102400
### Blobovnicza config
NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_SIZE=4194304
NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_SHALLOW_DEPTH=2
NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_SHALLOW_WIDTH=4
NEOFS_STORAGE_SHARD_0_BLOBSTOR_BLOBOVNICZA_OPENED_CACHE_SIZE=50
## Second shard
### Write cache config
NEOFS_STORAGE_SHARD_1_USE_WRITE_CACHE=false
### Metabase config
NEOFS_STORAGE_SHARD_1_METABASE_PATH=/storage/meta1
NEOFS_STORAGE_SHARD_1_METABASE_PERM=0700
### Blobstor config
NEOFS_STORAGE_SHARD_1_BLOBSTOR_PATH=/storage/blobstor1
NEOFS_STORAGE_SHARD_1_BLOBSTOR_PERM=0700
NEOFS_STORAGE_SHARD_1_BLOBSTOR_COMPRESS=true
NEOFS_STORAGE_SHARD_1_BLOBSTOR_SHALLOW_DEPTH=4
NEOFS_STORAGE_SHARD_1_BLOBSTOR_SMALL_SIZE_LIMIT=102400
### Blobovnicza config
NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_SIZE=4194304
NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_SHALLOW_DEPTH=2
NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_SHALLOW_WIDTH=4
NEOFS_STORAGE_SHARD_1_BLOBSTOR_BLOBOVNICZA_OPENED_CACHE_SIZE=50