Repository navigation
Commit 0768489
committed
feat(config): deliver gateway configuration over the supervisor session
Add an opt-in push path for gateway-owned supervisor configuration,
selected by the gateway setting config_delivery_mode = "poll" | "push".
Poll stays the default, and polling keeps working for older supervisors
and gateways.
Delivery:
- Add bootstrap, snapshot, update, result and admission contracts on
ConnectSupervisor. Supervisors advertise supports_config_snapshots and
supports_config_apply; the gateway answers with config_apply_enabled.
- Configuration delivery is a coalescing DeliveryQueue drained by one
on-demand delivery worker. Admission never drops updates, fanouts walk
connected sandboxes as cursors, and sandbox-scoped work keeps reserved
build slots.
- Provider changes rebuild only the sandboxes that attach the provider.
- Across replicas, other gateways send the session owner a secret-free
PeerNotifyConfigUpdate and the owner rebuilds from shared state. An
owner reconciler repairs missed notifications.
Streamed apply:
- Supervisors that enable apply prepare the startup policy against the
image, apply the bootstrap before starting the workload, apply and
acknowledge live updates, and stop polling.
- A failed live registry reload keeps the last-known-good registry.
Durable completion:
- Sandbox policy and settings updates commit desired state and a durable
ConfigUpdateOperation atomically. Callers choose wait_mode COMMIT_ONLY
or WAIT_FOR_COMPLETION, with idempotency keys and GetConfigUpdateOperation.
- Operations resolve as applied, degraded, failed, superseded, inactive or
cancelled, and survive client timeouts and gateway restarts.
This combines the previously stacked changes from #3244, #3265 and #3273.
Refs #1731
Signed-off-by: Piotr Mlocek <[email protected]>1 parent 8aa5846 commit 0768489
73 files changed
Lines changed: 21945 additions & 3764 deletions
File tree
- crates
- openshell-cli
- src
- tests
- openshell-core/src
- openshell-sdk/tests
- openshell-server
- migrations
- postgres
- sqlite
- proto
- src
- auth
- compute
- config_delivery
- grpc
- mutation_replay
- ordinary
- persistence
- tests
- common
- openshell-supervisor-network/src
- openshell-supervisor-process/src
- openshell-supervisor/src
- docs
- how-it-works
- gateways
- providers
- observability
- tutorials
- e2e
- python
- rust/tests
- proto
- sdk
- go
- openshell/v1
- internal/converter
- types
- proto
- openshellv1
- sandboxv1
- typescript/src
- skills
- debug-openshell-cluster
- openshell-cli
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3060 | 3060 | | |
3061 | 3061 | | |
3062 | 3062 | | |
3063 | | - | |
| 3063 | + | |
3064 | 3064 | | |
3065 | 3065 | | |
3066 | 3066 | | |
| |||
3070 | 3070 | | |
3071 | 3071 | | |
3072 | 3072 | | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
3073 | 3076 | | |
3074 | 3077 | | |
3075 | 3078 | | |
| |||
3088 | 3091 | | |
3089 | 3092 | | |
3090 | 3093 | | |
3091 | | - | |
| 3094 | + | |
3092 | 3095 | | |
3093 | 3096 | | |
3094 | 3097 | | |
| |||
3107 | 3110 | | |
3108 | 3111 | | |
3109 | 3112 | | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
3110 | 3116 | | |
3111 | 3117 | | |
3112 | 3118 | | |
| |||
0 commit comments