From 18f5997d02f92d4a65b8333d6df6dcab6c46acd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Tue, 27 Jul 2021 15:11:49 +0100 Subject: [PATCH] add throttling to dagstore; increase GC frequency to 1min. --- node/modules/storageminer.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/node/modules/storageminer.go b/node/modules/storageminer.go index fccbe0a37..39063b6f4 100644 --- a/node/modules/storageminer.go +++ b/node/modules/storageminer.go @@ -609,10 +609,12 @@ func DagStoreWrapper( } cfg := dagstore.MarketDAGStoreConfig{ - TransientsDir: filepath.Join(dagStoreDir, "transients"), - IndexDir: filepath.Join(dagStoreDir, "index"), - Datastore: dagStoreDS, - GCInterval: 5 * time.Minute, + TransientsDir: filepath.Join(dagStoreDir, "transients"), + IndexDir: filepath.Join(dagStoreDir, "index"), + Datastore: dagStoreDS, + GCInterval: 1 * time.Minute, + MaxConcurrentIndex: 5, + MaxConcurrentFetch: 2, } dsw, err := dagstore.NewDagStoreWrapper(cfg, lotusAccessor)