Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing committed Jan 31, 2025
1 parent 87a9e1b commit 1dc0a52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cmd/execution_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ func (exeConf *ExecutionConfig) SetupFlags(flags *pflag.FlagSet) {
flags.BoolVar(&deprecatedEnableNewIngestionEngine, "enable-new-ingestion-engine", true, "enable new ingestion engine, default is true")
flags.StringVar(&exeConf.publicAccessID, "public-access-id", "", "public access ID for the node")

flags.Uint64Var(&exeConf.pruningConfigThreshold, "pruning-threshold", exepruner.DefaultConfig.Threshold, "the number of blocks that we want to keep in the database, default 30 days")
flags.UintVar(&exeConf.pruningConfigBatchSize, "pruning-batch-size", exepruner.DefaultConfig.BatchSize, "the batch size is the number of blocks that we want to delete in one batch, default 1000")
flags.DurationVar(&exeConf.pruningConfigSleepAfterCommit, "pruning-sleep-after-commit", exepruner.DefaultConfig.SleepAfterEachBatchCommit, "sleep time after each batch commit, default 1s")
flags.DurationVar(&exeConf.pruningConfigSleepAfterIteration, "pruning-sleep-after-iteration", exepruner.DefaultConfig.SleepAfterEachIteration, "sleep time after each iteration, default 500000h")
flags.Uint64Var(&exeConf.pruningConfigThreshold, "pruning-config-threshold", exepruner.DefaultConfig.Threshold, "the number of blocks that we want to keep in the database, default 30 days")
flags.UintVar(&exeConf.pruningConfigBatchSize, "pruning-config-batch-size", exepruner.DefaultConfig.BatchSize, "the batch size is the number of blocks that we want to delete in one batch, default 1000")
flags.DurationVar(&exeConf.pruningConfigSleepAfterCommit, "pruning-config-sleep-after-commit", exepruner.DefaultConfig.SleepAfterEachBatchCommit, "sleep time after each batch commit, default 1s")
flags.DurationVar(&exeConf.pruningConfigSleepAfterIteration, "pruning-config-sleep-after-iteration", exepruner.DefaultConfig.SleepAfterEachIteration, "sleep time after each iteration, default 500000h")
}

func (exeConf *ExecutionConfig) ValidateFlags() error {
Expand Down
3 changes: 2 additions & 1 deletion integration/localnet/builder/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ func prepareExecutionService(container testnet.ContainerConfig, i int, n int) Se
fmt.Sprintf("--extensive-tracing=%t", extesiveTracing),
"--execution-data-dir=/data/execution-data",
"--chunk-data-pack-dir=/data/chunk-data-pack",
"--pruning-sleep-after-iteration=30m",
"--pruning-config-threshold=20",
"--pruning-config-sleep-after-iteration=30m",
)

service.Volumes = append(service.Volumes,
Expand Down

0 comments on commit 1dc0a52

Please sign in to comment.