8000 pynixd: a darwin host reports no memory, load or CPU in its health · Issue #1391 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

pynixd: a darwin host reports no memory, load or CPU in its health #1391

Open

Description

@Lillecarl

health_from_files (pynixd/monitor.py) builds a sample from SAMPLED_FILES: /proc/pressure/*, /proc/meminfo, /proc/loadavg, /sys/fs/cgroup/cpu.stat. The agent (agent/src/main.rs, FILES) reads the same list. On darwin none of them exist, so a sample carries only disk (and cores from the local poller):

SystemHealth(psi=None, meminfo=None, cpu_util=None, cores=None, load1=None, disk=DiskSpace(...))

Effect: placement sees a darwin builder or a darwin pynixd with no memory and no load, so pressure-based decisions treat it as unknown.

Sources on darwin: os.getloadavg() for load1; sysctl hw.memsize and host_statistics64 (vm_stat) for MemInfo; host_processor_info for CPU time. PSI has no darwin equivalent.

Tests that show it, marked as expected failures on darwin: test_agent.py::test_the_real_agent_speaks_what_the_parser_reads, ::test_the_local_store_runs_the_agent_for_its_triggers, test_peer_health_stream.py::test_the_peer_samples_itself_when_its_monitor_cannot_serve.


Assisted-By: Claude Opus 5.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0