add config option for splitstore moving gc frequency

This commit is contained in:
vyzo 2021-07-23 22:58:34 +03:00
parent fb3986226f
commit 5acae50e07
3 changed files with 5 additions and 2 deletions

View File

@ -87,7 +87,7 @@ type Config struct {
// A value of 0 disables moving GC entirely.
// A positive value is the number of compactions before a moving GC is performed;
// a value of 1 will perform moving GC in every compaction.
HotStoreMovingGCFrequency uint
HotStoreMovingGCFrequency uint64
}
// ChainAccessor allows the Splitstore to access the chain. It will most likely

View File

@ -72,6 +72,8 @@ func DefaultFullNode() *FullNode {
ColdStoreType: "universal",
HotStoreType: "badger",
MarkSetType: "map",
HotStoreMovingGCFrequency: 20,
},
},
}

View File

@ -282,7 +282,8 @@ type Splitstore struct {
HotStoreType string
MarkSetType string
HotStoreMessageRetention uint64
HotStoreMessageRetention uint64
HotStoreMovingGCFrequency uint64
}
// // Full Node