Merge pull request #10620 from filecoin-project/phi/backport-splitstore-config

Backport #10605 to v1.21.0
This commit is contained in:
Phi-rjan 2023-04-04 22:36:55 +02:00 committed by GitHub
commit 33039d2cec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -242,7 +242,7 @@
# #
# type: uint64 # type: uint64
# env var: LOTUS_CHAINSTORE_SPLITSTORE_HOTSTOREMAXSPACETARGET # env var: LOTUS_CHAINSTORE_SPLITSTORE_HOTSTOREMAXSPACETARGET
#HotStoreMaxSpaceTarget = 0 #HotStoreMaxSpaceTarget = 650000000000
# When HotStoreMaxSpaceTarget is set Moving GC will be triggered when total moving size # When HotStoreMaxSpaceTarget is set Moving GC will be triggered when total moving size
# exceeds HotstoreMaxSpaceTarget - HotstoreMaxSpaceThreshold # exceeds HotstoreMaxSpaceTarget - HotstoreMaxSpaceThreshold

View File

@ -96,6 +96,7 @@ func DefaultFullNode() *FullNode {
MarkSetType: "badger", MarkSetType: "badger",
HotStoreFullGCFrequency: 20, HotStoreFullGCFrequency: 20,
HotStoreMaxSpaceTarget: 650_000_000_000,
HotStoreMaxSpaceThreshold: 150_000_000_000, HotStoreMaxSpaceThreshold: 150_000_000_000,
HotstoreMaxSpaceSafetyBuffer: 50_000_000_000, HotstoreMaxSpaceSafetyBuffer: 50_000_000_000,
}, },