Scaling by the clock: schedule windows with their own min and max, prewarm, control.timezone
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
74429f1c00
commit
bce54f0941
14 files changed
+382
-9
No files matched your search
@@ -597,6 +597,13 @@ func startControlPlane(ctx context.Context, cfg config.Server, cat *catalog.Live
|
||||
LostAfter: cfg.Control.LostAfter,
|
||||
MgmtInterface: cfg.Control.MgmtInterface,
|
||||
}
|
||||
if cfg.Control.Timezone != "" {
|
||||
loc, err := time.LoadLocation(cfg.Control.Timezone)
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf("control.timezone: %w", err)
|
||||
}
|
||||
ccfg.Reconciler.Location = loc
|
||||
}
|
||||
if len(cfg.Control.PortRange) == 2 {
|
||||
ccfg.Reconciler.PortRange = [2]int{cfg.Control.PortRange[0], cfg.Control.PortRange[1]}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user