Commit graph

3 commits

Author SHA1 Message Date
jedarden
81b57e66b5 refactor(bf-53q6): add SystemMemoryIndicator to fleet header and clean up cgroup monitor
Some checks are pending
CI / test (18.x) (push) Waiting to run
CI / test (20.x) (push) Waiting to run
CI / test (22.x) (push) Waiting to run
- Add SystemMemoryIndicator component showing sparkline and usage in fleet header
- Refactor systemCgroupMonitor.ts for cleaner implementation
- Update index.css with fleet-header layout styles
- Add fleet-header with separator between FleetSummaryBar and SystemMemoryIndicator

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-07 10:14:45 -04:00
jedarden
83baf06edd feat(bf-53q6): integrate SystemMemoryPanel into FABRIC web dashboard
- Add SystemMemoryPanel rendering in App.tsx main content area
- Add 'show:memory' command palette action for opening memory panel
- Fix import of SystemMemoryPanel (named export)
- Backend features already in place: /api/system/memory, /api/system/memory/history, OOM tracking, 5-min sparkline

This completes the integration of the system cgroup memory panel that shows:
- Current cgroup memory usage vs MemoryHigh (color-coded progress bar)
- 5-minute sparkline of memory usage sampled every 10s
- oom_kill counter from /sys/fs/cgroup/user.slice/memory.events
- Swap usage when enabled

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-07 10:06:21 -04:00
jedarden
87af357907 feat(bf-4a5b): complete resource consumption management
Some checks are pending
CI / test (18.x) (push) Waiting to run
CI / test (20.x) (push) Waiting to run
CI / test (22.x) (push) Waiting to run
Phase 1: Infra hardening
- Per-worker MemoryMax ceiling (4 GB) via workerMemoryLimiter

Phase 2: FABRIC visibility
- System cgroup monitoring (systemCgroupMonitor.ts)
  - Tracks user.slice cgroup memory usage/limit/high/swap
  - OOM risk detection (none/low/medium/high/critical)
  - System memory stats from /proc/meminfo
- Per-worker RSS tracking in WorkerInfo (throttled to every 200 events)
- System Memory Panel UI component
  - Real-time cgroup/system/swap/FABRIC memory display
  - OOM risk banner with color-coded alerts
  - 5-second polling refresh
- API endpoints: /api/system/memory, /api/alerts/oom
- UI toggle button in header

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-07 09:34:59 -04:00