diff --git a/blockstore/splitstore/splitstore_warmup.go b/blockstore/splitstore/splitstore_warmup.go index 4319184ace..e57ea25a52 100644 --- a/blockstore/splitstore/splitstore_warmup.go +++ b/blockstore/splitstore/splitstore_warmup.go @@ -5,14 +5,15 @@ import ( "sync/atomic" "time" + blocks "github.com/ipfs/go-block-format" + "github.com/ipfs/go-cid" + ipld "github.com/ipfs/go-ipld-format" "golang.org/x/xerrors" "github.com/filecoin-project/go-state-types/abi" + "github.com/filecoin-project/lotus/chain/actors/policy" "github.com/filecoin-project/lotus/chain/types" - blocks "github.com/ipfs/go-block-format" - "github.com/ipfs/go-cid" - ipld "github.com/ipfs/go-ipld-format" ) var ( diff --git a/documentation/en/default-lotus-config.toml b/documentation/en/default-lotus-config.toml index 41bc082da3..82ee616228 100644 --- a/documentation/en/default-lotus-config.toml +++ b/documentation/en/default-lotus-config.toml @@ -219,6 +219,15 @@ # env var: LOTUS_CHAINSTORE_SPLITSTORE_HOTSTOREMAXSPACESAFETYBUFFER #HotstoreMaxSpaceSafetyBuffer = 50000000000 + # Perform a full warmup from the coldstore to the hotstore upon splitstore startup. + # This is useful in the case you are migrating from a non-splitstore setup to splitstore. + # This should be false in the common case where a node is initialized from a snapshot + # since snapshots are loaded directly to the hotstore. + # + # type: bool + # env var: LOTUS_CHAINSTORE_SPLITSTORE_FULLWARMUP + #FullWarmup = false + [Fevm] # EnableEthRPC enables eth_ RPC methods. diff --git a/node/config/doc_gen.go b/node/config/doc_gen.go index feab3d5b6e..4f0068f613 100644 --- a/node/config/doc_gen.go +++ b/node/config/doc_gen.go @@ -1201,6 +1201,15 @@ exceeds HotstoreMaxSpaceTarget - HotstoreMaxSpaceThreshold`, is set. Moving GC will not occur when total moving size exceeds HotstoreMaxSpaceTarget - HotstoreMaxSpaceSafetyBuffer`, }, + { + Name: "FullWarmup", + Type: "bool", + + Comment: `Perform a full warmup from the coldstore to the hotstore upon splitstore startup. +This is useful in the case you are migrating from a non-splitstore setup to splitstore. +This should be false in the common case where a node is initialized from a snapshot +since snapshots are loaded directly to the hotstore.`, + }, }, "StorageMiner": { {