spark-supervisor
Process supervisor and health monitor for sovereign daemons
Brought by drakestapleton
spark-supervisor / om / contract.om
| 1 | text vreload "reload" |
| 2 | text cgEnv "AIEN_SUPERVISE_CGROUP" |
| 3 | text cgManager "/manager" |
| 4 | text cgControl "/cgroup.subtree_control" |
| 5 | text cgControllers "+cpu +memory +pids" |
| 6 | text cgProcs "/cgroup.procs" |
| 7 | text cgMemory "/memory.max" |
| 8 | text cgSwap "/memory.swap.max" |
| 9 | text cgPids "/pids.max" |
| 10 | text cgWeight "/cpu.weight" |
| 11 | text cgOomGroup "/memory.oom.group" |
| 12 | text cgEvents "/memory.events" |
| 13 | text cgKill "/cgroup.kill" |
| 14 | text cgOomKey "oom_kill" |
| 15 | text cgOne "1" |
| 16 | text cgReady "1" |
| 17 | text cgZero "0" |
| 18 | text cgSvc "/svc-" |
| 19 | text cgJob "/job-" |
| 20 | text cgLimitFailure "LIMIT_NOT_APPLIED errno=" |
| 21 | text cgOomMarker "LIMIT_OOM_KILLED\n" |
| 22 | global cgRoot uchar 4096 |
| 23 | global cgLeaf uchar 4096 |
| 24 | global cgData long 8 |
| 25 | global cgMem ulong 48 |
| 26 | global cgTasks ulong 48 |
| 27 | global cgCpu ulong 48 |
| 28 | global cgWhy long 48 |
| 29 | global cgOom ulong 48 |
| 30 | text lrCommand "run-limited" |
| 31 | text lrMemory "--memory" |
| 32 | text lrPids "--pids" |
| 33 | text lrDash "--" |
| 34 | text lrSocket "/limited.sock" |
| 35 | text lrFd "/fd/" |
| 36 | text lrUsage "usage: aien-supervise run-limited --memory BYTES [--pids N] -- /absolute/CMD ARG...\n" |
| 37 | text lrMagic "ALR1" |
| 38 | global lrState long 8 |
| 39 | global lrWorkers long * |
| 40 | global lrWorkerCount ulong 1 |
| 41 | text sxAfter "after" |
| 42 | text sxHealth "health-http" |
| 43 | text sxMemory "memory-max" |
| 44 | text sxTasks "tasks-max" |
| 45 | text sxCpu "cpu-weight" |
| 46 | text sxNever "never" |
| 47 | text sxHealthField " healthy=" |
| 48 | text sxReason " reason=" |
| 49 | text sxLimit "LIMIT_NOT_APPLIED errno=" |
| 50 | text sxDependency "DEPENDENCY_MISSING_OR_CYCLE" |
| 51 | text sxOomStatus "LIMIT_OOM_KILLED" |
| 52 | text sxTrigger " change-trigger=MISSING_IMPLEMENTATION" |
| 53 | text sxHttpPrefix "GET " |
| 54 | text sxHttpTail " HTTP/1.0\nHost: localhost\nConnection: close\n\n" |
| 55 | global sxDepNames uchar 73728 |
| 56 | global sxDepLens ulong 2304 |
| 57 | global sxDepCount ulong 48 |
| 58 | global sxPort ulong 48 |
| 59 | global sxHealthPath uchar 196608 |
| 60 | global sxHealthLen ulong 48 |
| 61 | global sxHealthy ulong 48 |
| 62 | global sxReasonCode ulong 48 |
| 63 | global sxNice long 48 |
| 64 | global sxStopped ulong 1 |