feat(P06): alloc history (REQ-071) + logs --all-nodes (REQ-117)

internal/store/alloc_history.go: AllocHistoryRepo (Record/List/Evict)
in orca_cache.db with 7-day TTL eviction goroutine. internal/cli/logs.go:
orca logs --all-nodes --since 5m with iter.Seq streaming, SSH fanout,
journalctl JSON parsing, signal.NotifyContext cancellation, --json output.

---ci---
project: orca
phase: 06
milestone: v0.11
status: execute
---/ci---
This commit is contained in:
Jon Chery
2026-08-07 05:36:30 +00:00
parent 41bcf0a6bf
commit c8cf2e41e5
5 changed files with 1225 additions and 0 deletions
+2
View File
@@ -37,6 +37,7 @@ func resetCommandFlags() {
stopID, runTarget, runIDKey, jobWatch = "", "", "", false
migrateTarget = ""
drainTimeout = 30 * time.Second
logsAllNodes, logsNode, logsJob, logsSince, logsJSON = false, "", "", "5m", false
capSetCPU, capSetMem, capSetDisk, capNodeID = 0, 0, 0, ""
auditLimit = 50
backupOutPath, restoreInPath, restoreTargetDir = "", "", ""
@@ -48,6 +49,7 @@ func resetCommandFlags() {
for _, c := range []*cobra.Command{
nodeDrainCmd, daemonCmd, daemonDrainAndStopCmd,
jobCmd, jobMigrateCmd, jobRunCmd, jobListCmd, jobStopCmd, jobLogsCmd,
logsCmd,
} {
if c != nil {
c.SetOut(nil)