Merge C24 federation: another llmgw cluster as a provider
Conflicts with facility-aware placement (config, control, admin API routes, store test tables) all keep both; the generated reference and OpenAPI document regenerated. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
33334c8f33
33 files changed
+2945
-24
No files matched your search
@@ -186,6 +186,11 @@ type Server struct {
|
||||
// maintenance is `llmgw ctl facility hold`, not configuration.
|
||||
Facility Facility `koanf:"facility"`
|
||||
|
||||
// Federation is how this cluster takes part in federation with other
|
||||
// llmgw clusters. The peers themselves are added at runtime, with
|
||||
// `llmgw ctl federation add`, and kept in the store.
|
||||
Federation Federation `koanf:"federation"`
|
||||
|
||||
// Endpoints is the phase-1 static replica list. It is only consulted when
|
||||
// no model declares a profile, which is what makes a router-only smoke test
|
||||
// against sim-engines possible without a control plane.
|
||||
@@ -269,6 +274,18 @@ func (f Facility) Policy() (facility.Policy, error) {
|
||||
return p, nil
|
||||
}
|
||||
|
||||
// Federation is this cluster's side of federation with other llmgw clusters.
|
||||
type Federation struct {
|
||||
// Name is this cluster as a peer reads it, in the federated_from tag
|
||||
// sent with a request to a peer set to receive tags (`ctl federation add
|
||||
// --send-tags`). Empty is this machine's host name.
|
||||
Name string `koanf:"name"`
|
||||
// Interval is how often each peer is asked whether it is ready, timed,
|
||||
// and what it offers. A peer that does not answer is taken out of
|
||||
// routing until it does. Zero is 10s.
|
||||
Interval time.Duration `koanf:"interval"`
|
||||
}
|
||||
|
||||
// Monitoring points the dashboard at a Prometheus holding this cluster's
|
||||
// history.
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user