Files
LocalAI/core/services/advisorylock/keys.go
T
Ettore Di Giacinto d30c33a074 feat(failover): run one prober per cluster and pin warm targets on workers
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2026-09-27 07:42:20 +00:00

19 lines
665 B
Go

package advisorylock
// Advisory lock keys for distributed coordination via PostgreSQL.
// These keys are global across the database — avoid collisions with
// other applications sharing the same PostgreSQL instance.
const (
KeyCronScheduler int64 = 100
KeyStaleNodeCleanup int64 = 101
KeyGalleryDedup int64 = 102
KeyAgentScheduler int64 = 103
KeyHealthCheck int64 = 104
KeySchemaMigrate int64 = 105
KeyBackendUpgradeCheck int64 = 106
KeyStateReconciler int64 = 107
// KeyFailoverProber elects the one frontend that probes failover
// targets, decides chains and preloads warm targets.
KeyFailoverProber int64 = 108
)