From c5b611e6cf641c98517c3566b85d96e77287143f Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 11 Dec 2020 15:16:36 +0300 Subject: [PATCH] Add storage engine configuration for storage nodes Signed-off-by: Alex Vanin --- .env | 4 ++-- services/storage/.storage.env | 38 +++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/.env b/.env index e3cf81f..b0d734e 100644 --- a/.env +++ b/.env @@ -10,11 +10,11 @@ NEOGO_VERSION=0.91.1-pre-389-g71216865 MORPH_CHAIN_URL="https://fs.neo.org/dist/morph.chain.gz" # NeoFS InnerRing nodes -IR_VERSION=0.12.1 +IR_VERSION=0.13.0 IR_IMAGE=nspccdev/neofs-ir # NeoFS Storage nodes -NODE_VERSION=0.12.1 +NODE_VERSION=0.13.0 NODE_IMAGE=nspccdev/neofs-storage # HTTP Gate diff --git a/services/storage/.storage.env b/services/storage/.storage.env index f25595f..47d0ee2 100644 --- a/services/storage/.storage.env +++ b/services/storage/.storage.env @@ -6,3 +6,41 @@ NEOFS_CONTAINER_SCRIPTHASH=a4aa1d4c91f94ddd65b02edf47aab39ba921dd8f NEOFS_NETMAP_SCRIPTHASH=80aed80f782d6ac09d717b162123396620f0f382 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