1 KiB
1 KiB
XCE Worker Daemon (xcecd)
Overview
C daemon running on each compute node. Manages job execution, hardware monitoring, and process lifecycle on worker nodes.
Build
/xce-build worker # lib + worker daemon (see build-deployment.md)
Architecture
src/main.c— Main daemon entry point (int main); links againstxcecd_srcsfromsrc/xcecd.cand friendssrc/hardware_monitor.c— CPU/memory resource monitoring (no GPU)src/process_worker_manager.c+src/uv_proc.c— Job process lifecycle (forkxcecd_worker, spawn/exec the job command);src/process_manager.cis unused dead code for job spawn (itsprocess_manager_start_processis never called) but is still wired up for generic create/update/destroy/reap inxcecd.c
Links against libxce from src/lib/.
Conventions
- C standard: gnu17
- Format with
clang-format - Headers in
include/ - Shared types defined in
src/include/xce/(libxce)
See Also
- Shared library:
src/lib/CLAUDE.md - Root guidelines:
CLAUDE.md(repo root)