Skip to content

Commit

Permalink
make 15m planning interval on block scheduler the default
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-d committed Jan 6, 2025
1 parent a508c2d commit 9bee54d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/sources/shared/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ block_scheduler:

# How often the scheduler should plan jobs.
# CLI flag: -block-scheduler.interval
[interval: <duration> | default = 5m]
[interval: <duration> | default = 15m]

# Lookback period used by the scheduler to plan jobs when the consumer group
# has no commits. 0 consumes from the start of the partition.
Expand Down
2 changes: 1 addition & 1 deletion pkg/blockbuilder/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type Config struct {
}

func (cfg *Config) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet) {
f.DurationVar(&cfg.Interval, prefix+"interval", 5*time.Minute, "How often the scheduler should plan jobs.")
f.DurationVar(&cfg.Interval, prefix+"interval", 15*time.Minute, "How often the scheduler should plan jobs.")
f.StringVar(&cfg.ConsumerGroup, prefix+"consumer-group", "block-scheduler", "Consumer group used by block scheduler to track the last consumed offset.")
f.DurationVar(&cfg.LookbackPeriod, prefix+"lookback-period", 0, "Lookback period used by the scheduler to plan jobs when the consumer group has no commits. 0 consumes from the start of the partition.")
f.StringVar(
Expand Down

0 comments on commit 9bee54d

Please sign in to comment.