feat(P05): drain + daemon drain-and-stop (REQ-061) + job migrate (REQ-116)

orca node drain <host>: marks draining, stops allocs via SSH, marks
drained. orca daemon drain-and-stop: stops v0.8 daemons on peers.
orca job migrate <name> --to <node>: drain+reschedule composite
(C3=a, not live-migrate). Node states: draining, drained.

---ci---
project: orca
phase: 05
milestone: v0.11
status: execute
---/ci---
This commit is contained in:
Jon Chery
2026-08-07 05:17:01 +00:00
parent f61ef2aa9e
commit 41bcf0a6bf
7 changed files with 1269 additions and 3 deletions
+5 -3
View File
@@ -5,9 +5,11 @@ import "time"
type NodeState string
const (
NodeStatePending NodeState = "pending"
NodeStateReady NodeState = "ready"
NodeStateLeft NodeState = "left"
NodeStatePending NodeState = "pending"
NodeStateReady NodeState = "ready"
NodeStateLeft NodeState = "left"
NodeStateDraining NodeState = "draining"
NodeStateDrained NodeState = "drained"
)
// NodeKind classifies a node by how it joined the cluster.