From 12c3432b8dca4486c51203171e2a40d2bed3d5f8 Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 22 Jul 2021 13:00:54 +0300 Subject: [PATCH] document the "badger" markset type option --- blockstore/splitstore/splitstore.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/blockstore/splitstore/splitstore.go b/blockstore/splitstore/splitstore.go index 821ebb2b6..b401d657e 100644 --- a/blockstore/splitstore/splitstore.go +++ b/blockstore/splitstore/splitstore.go @@ -62,8 +62,11 @@ func init() { type Config struct { // MarkSetType is the type of mark set to use. // - // Only current sane value is "map", but we may add an option for a disk-backed - // markset for memory-constrained situations. + // The default value is "map", which uses an in-memory map-backed markset. + // If you are constrained in memory (i.e. compaction runs out of memory), you + // can use "badger", which will use a disk-backed markset using badger. + // Note that compaction will take quite a bit longer when using the "badger" option, + // but that shouldn't really matter (as long as it is under 7.5hrs). MarkSetType string // DiscardColdBlocks indicates whether to skip moving cold blocks to the coldstore.