Worker configuration¶
The worker reads ~/.vulcanum/config.json. On first start, it creates the file with default values if the file does not exist.
Fields¶
| Field | Default | Allowed value or purpose |
|---|---|---|
harness |
"host" |
Isolation mode: host, docker, or kata |
image |
"ghcr.io/ezygang/vulcanum/agent:latest" |
Container image for Docker and Kata jobs |
log_format |
null |
Set to "json" for JSON logs |
debug |
false |
Enables debug-level logs |
poll_interval_secs |
30 |
Delay after a poll returns no job |
auto_update_enabled |
true |
Enables verified updates of the installed vulcanum CLI and vulcanum-server worker daemon release pair |
update_check_interval_secs |
86400 |
Update interval in seconds; from 60 through 31536000 |
Example:
{
"harness": "docker",
"image": "ghcr.io/ezygang/vulcanum/agent:latest",
"log_format": "json",
"debug": false,
"poll_interval_secs": 30,
"auto_update_enabled": true,
"update_check_interval_secs": 86400
}
Use vulcanum worker updates enable or vulcanum worker updates disable to change only the update setting. A running daemon applies the changed setting on its next startup.
Worker identity¶
~/.vulcanum/worker.json is not an operator configuration file. Setup writes:
- worker ID;
- control-plane instance URL;
- access token;
- refresh token;
- token expiration;
- maximum concurrent jobs.
Do not edit this file. Use vulcanum worker setup --force to replace a registration.
Automatic updates¶
Automatic updates replace the installed vulcanum CLI and vulcanum-server worker daemon as one verified release pair. They do not update the control plane or frontend. Newly created worker configurations enable automatic updates by default.
Use the local worker CLI to opt out or back in:
Each command changes only auto_update_enabled; all other worker configuration fields are preserved. A running daemon applies the changed setting on its next startup.
When enabled, the daemon checks at startup and after each interval. It waits until no new or recovered job is active or queued. It selects the latest non-prerelease GitHub release for the current Linux or macOS architecture.
The updater:
- Downloads the archive and checksum used by
install.sh. - Verifies SHA-256.
- Requires both worker-side binaries.
- Runs the staged daemon in preflight mode.
- Saves the current pair and version marker in
<install-dir>/.vulcanum-rollback/. - Records an activation transaction.
- Replaces the full pair.
- Restarts the worker service.
- Commits only after configuration, connectivity, journal, and recovery initialization succeed.
A failed or interrupted activation restores the previous pair. Never restore only one binary.
Update prerequisites¶
The service account needs:
- HTTPS access to
api.github.comand the Vulcanum GitHub releases; - write access to the directory that contains both binaries;
- non-interactive permission to restart the worker service;
- both binaries in the same install directory.
Linux restarts vulcanum-worker with systemd. macOS uses the com.vulcanum.worker launchd service.
Manual recovery¶
If the filesystem prevents automatic rollback:
- Stop the worker service.
- Copy
vulcanum,vulcanum-server, and.vulcanum-versiontogether from.vulcanum-rollback/to the install directory. - Remove
.vulcanum-update-state. - Preserve executable mode on both binaries.
- Start the service.
You can also run install.sh with a pinned VULCANUM_VERSION. Restart the worker service after installation.