| NEXAGENTD(8) | NEX Administration | NEXAGENTD(8) |
NAME
nexagentd - NEX node agent
SYNOPSIS
nexagentd [CONFIG]
nexagentd --release-vips
DESCRIPTION
Runs on every node as a systemd service (nexagentd.service), with the configuration /etc/nex/node.json if CONFIG is missing. For the node's applications it listens on /run/nex/agent.sock (the kernel tells it the user); towards the other agents it listens with TLS 1.3 and mutual authentication (certificates signed by the cluster CA) on port 7440 and talks only to the nodes listed in agent.peers.
It provides the view of processes and nodes, remote execution (nex run, transient systemd units nex-run-* in the user's slice), detached jobs (nex-job-* with the keeper nex-hold), the job queue, logs, port and X11 forwarding, signals and messages between sessions, cluster services (nex service, with a leader among the compute agents) and virtual addresses (nex vip, on the interface with the label IF:nx and gratuitous ARP). It keeps in /etc/hosts a block with the names NODE.nex and VIP.nex, without touching the rest of the file.
The shared state (queue, services, virtual addresses, locks, scheduled tasks, alarms) lives in the NEXFS control store, in key tables, reached with the node's NEXFS configuration (/etc/nexfs/nexfs.json) and the node certificate. Every operation has an 8-second deadline: a node that cannot reach the storage gets an error instead of waiting. The services leader starts the tasks of nex cron and checks the alarms every 30 seconds (nex alarm: nodes, disks, /nex, memory, NEXFS state with nexfsctl health, backup if configured, edition and node limit), with notifications to terminals, by email (/usr/sbin/sendmail) and to the script /etc/nex/alarm-notify (used only if owned by root and not writable by others). The tokens of the HTTP/JSON API of nex-dashd(8) (table tokens of the control store) are created and verified by the agent: the control store holds only the SHA-256 of the secret.
--release-vips removes the NEX virtual addresses from the node and exits: the unit runs it in ExecStopPost so that, even after an agent crash, no address remains duplicated.
SIGHUP (systemctl reload) rereads the list of peers without stopping the jobs.
FILES
- /etc/nex/node.json, /etc/nex/pki/
- configuration and certificates.
- /etc/nexfs/nexfs.json
- the node's NEXFS configuration, with which the agent reaches the control store.
- /run/nex/agent.sock, /run/nex-jobs/
- socket of the agent and of the detached jobs.
SEE ALSO
nex(1), nexctl(8), nexfsctl(8)
| October 2026 | nexagentd 0.9.15 |