Skip to content

Commit

Permalink
Merge pull request #2223 from onflow/fxamacker/change-checkpoint-dist…
Browse files Browse the repository at this point in the history
…ance-to-20

Reduce default checkpoint distance flag from 40 to 20 to speedup EN startup
  • Loading branch information
fxamacker authored Mar 29, 2022
2 parents 24286c7 + 156e906 commit 6faf64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/execution/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func main() {
flags.StringVar(&triedir, "triedir", datadir, "directory to store the execution State")
flags.StringVar(&executionDataDir, "execution-data-dir", filepath.Join(homedir, ".flow", "execution_data_blobstore"), "directory to use for Execution Data blobstore")
flags.Uint32Var(&mTrieCacheSize, "mtrie-cache-size", 500, "cache size for MTrie")
flags.UintVar(&checkpointDistance, "checkpoint-distance", 40, "number of WAL segments between checkpoints")
flags.UintVar(&checkpointDistance, "checkpoint-distance", 20, "number of WAL segments between checkpoints")
flags.UintVar(&checkpointsToKeep, "checkpoints-to-keep", 5, "number of recent checkpoints to keep (0 to keep all)")
flags.UintVar(&stateDeltasLimit, "state-deltas-limit", 100, "maximum number of state deltas in the memory pool")
flags.UintVar(&cadenceExecutionCache, "cadence-execution-cache", computation.DefaultProgramsCacheSize, "cache size for Cadence execution")
Expand Down

0 comments on commit 6faf64a

Please sign in to comment.