Merge C24 facility-aware placement

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-05 01:18:20 +02:00
commit 3ec90ded72
42 files changed
+3510 -63

No files matched your search

+6
View File
@@ -662,6 +662,10 @@ func startControlPlane(ctx context.Context, cfg config.Server, cat *catalog.Live
if u, ok := sink.(control.UsageSource); ok {
ctl.SetUsageSource(u)
}
// Power caps and estimates; Validate has already refused a bad one.
if pol, err := cfg.Facility.Policy(); err == nil {
ctl.Facility().SetPolicy(pol)
}
// With a shared store, two control planes can see each other, so this one
// competes rather than assuming it is alone. Without one there is nobody
// to compete with and it places unconditionally, exactly as before.
@@ -684,6 +688,8 @@ func startControlPlane(ctx context.Context, cfg config.Server, cat *catalog.Live
ctl.Reconciler().SetMeasurements(control.Measurements(st, log))
// The engine builds chosen per node on the cluster page.
ctl.SetEngineChoices(control.NewEngineChoices(ctx, st, log))
// Domains held for maintenance and labels set on nodes.
ctl.Facility().UseStore(ctx, st)
log.Info("competing to be the control plane that places work",
"owner", lead.Owner())
}