add config option for splitstore moving gc frequency
This commit is contained in:
parent
fb3986226f
commit
5acae50e07
@ -87,7 +87,7 @@ type Config struct {
|
|||||||
// A value of 0 disables moving GC entirely.
|
// A value of 0 disables moving GC entirely.
|
||||||
// A positive value is the number of compactions before a moving GC is performed;
|
// 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.
|
// 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
|
// ChainAccessor allows the Splitstore to access the chain. It will most likely
|
||||||
|
@ -72,6 +72,8 @@ func DefaultFullNode() *FullNode {
|
|||||||
ColdStoreType: "universal",
|
ColdStoreType: "universal",
|
||||||
HotStoreType: "badger",
|
HotStoreType: "badger",
|
||||||
MarkSetType: "map",
|
MarkSetType: "map",
|
||||||
|
|
||||||
|
HotStoreMovingGCFrequency: 20,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -283,6 +283,7 @@ type Splitstore struct {
|
|||||||
MarkSetType string
|
MarkSetType string
|
||||||
|
|
||||||
HotStoreMessageRetention uint64
|
HotStoreMessageRetention uint64
|
||||||
|
HotStoreMovingGCFrequency uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
// // Full Node
|
// // Full Node
|
||||||
|
Loading…
Reference in New Issue
Block a user