From ddcb711975cf3147ff77a347fa99ca1e21d69031 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 1 Mar 2021 19:42:19 +0300 Subject: [PATCH] [#54] services/storage: Fix configuring shard's GC GC configuration parameters should be set for each shard instead of global. Signed-off-by: Leonard Lyubich --- services/storage/.storage.env | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/services/storage/.storage.env b/services/storage/.storage.env index f6dbdd4..0f7eee0 100644 --- a/services/storage/.storage.env +++ b/services/storage/.storage.env @@ -26,6 +26,11 @@ 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 +### GC config +#### Limit of the single data remover's batching operation in number of objects +NEOFS_STORAGE_SHARD_0_GC_REMOVER_BATCH_SIZE=100 +#### Sleep interval between data remover tacts +NEOFS_STORAGE_SHARD_0_GC_REMOVER_SLEEP_INTERVAL=1m ## Second shard ### Write cache config @@ -44,9 +49,6 @@ 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 - -# GC configuration -## Limit of the single data remover's batching operation in number of objects -NEOFS_GC_REMOVER_BATCH_SIZE=100 -## Sleep interval between data remover tacts -NEOFS_GC_REMOVER_SLEEP_INTERVAL=1m +### GC config +NEOFS_STORAGE_SHARD_1_GC_REMOVER_BATCH_SIZE=100 +NEOFS_STORAGE_SHARD_1_GC_REMOVER_SLEEP_INTERVAL=1m