Skip to content

Commit 9bee54d

Browse files
committed
make 15m planning interval on block scheduler the default
1 parent a508c2d commit 9bee54d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/sources/shared/configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ block_scheduler:
216216

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

221221
# Lookback period used by the scheduler to plan jobs when the consumer group
222222
# has no commits. 0 consumes from the start of the partition.

pkg/blockbuilder/scheduler/scheduler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type Config struct {
3535
}
3636

3737
func (cfg *Config) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet) {
38-
f.DurationVar(&cfg.Interval, prefix+"interval", 5*time.Minute, "How often the scheduler should plan jobs.")
38+
f.DurationVar(&cfg.Interval, prefix+"interval", 15*time.Minute, "How often the scheduler should plan jobs.")
3939
f.StringVar(&cfg.ConsumerGroup, prefix+"consumer-group", "block-scheduler", "Consumer group used by block scheduler to track the last consumed offset.")
4040
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.")
4141
f.StringVar(

0 commit comments

Comments
 (0)