Commit 53f146e
feat(cli): forward env-driven cluster driver to the runtime in
`os serve` constructed the Runtime without a cluster config, so it always used
the in-memory cluster driver — a multi-replica deployment could not coordinate
(and the split-brain guard blocked it). `os serve` now reads OS_CLUSTER_DRIVER
(+ OS_REDIS_URL), dynamically imports the matching remote driver package (so it
works in both config-boot and compiled-artifact mode), and forwards the cluster
config to the Runtime. Open-core ships only the in-memory driver; remote drivers
(e.g. @objectstack/service-cluster-redis) are provided by the EE distribution —
absent ⇒ graceful fallback to in-memory.
Verified via A/B boot (local redis): with OS_CLUSTER_DRIVER=redis + replicas=2
the server boots (guard passes = redis active); without it, replicas=2 trips the
split-brain guard (memory). Enables the EE multi-node activation (cloud ADR-0018)
of the cache-invalidation (#2213) and scheduler-leader-election (#2219) seams.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>os serve (#2226)1 parent 99bc2ad commit 53f146e
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
534 | 546 | | |
535 | 547 | | |
536 | 548 | | |
537 | | - | |
| 549 | + | |
| 550 | + | |
538 | 551 | | |
539 | 552 | | |
540 | 553 | | |
| |||
0 commit comments