Install and upgrade
Install from an offline bundle, install the agent, and the upgrade commands that exist.
Verified against v1.0.0-rc.1 · sources
On this page
Download first#
Start at app.drillo.dev/downloads (sign in; Community is free). Then verify with sha256sum -c SHA256SUMS --ignore-missing and the signature check in Download and verify, and run the install steps below.
Offline (air-gapped) bundle#
install.sh checks the signed bundle against a vendor public key you pin, then hands over to drillo install.
./install.sh --pin <vendor-pubkey-hex|file> [--state DIR] [--name drillo] [--gate-port N] [--api-port N]It runs the bundled CLI: drillo bundle-verify --dir <bundle> --pin <key> first and then drillo install --bundle <bundle>. A failed verification stops the install.
Before you install#
Run drillo preflight [--state DIR] [--min-disk-gb 20]. Minimum: 4 cores, 8 GiB RAM, 20 GB disk, Docker. The API needs a TLS proxy in front. The gate can terminate TLS itself: set DRILLO_GATE_TLS_CERT and DRILLO_GATE_TLS_KEY (PEM paths) in the gate environment. Plaintext is then refused. Add DRILLO_GATE_TLS_CLIENT_CA to require client certificates (mTLS). kill -HUP the gate to reload the files; a bad reload keeps the previous certificate. The installer does not set this up: add the variables to gate.env and mount the files into the gate container. Covered by one unit test in the gate crate; not tested on x86 or with a real client other than rustls.
Upgrade#
drillo upgrade --bundle <new-bundle-dir> --pin <vendor-pubkey-hex|file> [--state DIR] [--name drillo]- Verifies the new signed bundle against your pinned key. It refuses if the bundle version equals the installed version.
- Loads the new images, records the current release as
previous, redeploys, runsdrillo migrate, then the post-install checks. - On a failed migrate or check it prints
FAILED; run drillo rollbackand exits 1.
Tested: about 1.8M synthetic events sent during the upgrade, stored 1,821,000 >= acked 1,820,600. This is a single test, not a guarantee.
Settings that change searchable delay and memory: Sizing and tuning.
Rollback#
drillo rollback [--state DIR] [--name drillo]Redeploys the previous release images and swaps the current and previous pointers. The database is untouched. Schema changes are forward-only and additive; no down-migration runs. Rollback refuses if the previous images are gone from the host: reload the old bundle first. There is no downgrade protection in the verifier: an older validly signed bundle is accepted (pentest F5).
Trust note#
install.sh verifies with the drillo binary inside the bundle. Obtain the vendor key and an expected SHA-256 of drillo through a separate channel and compare before running (pentest F5).
Install the agent#
The agent installer verifies a SHA-256 before installing and writes a systemd unit.
sh install-agent.sh --url https://<drillo>/dl --sha256 <hex> --token <TOKEN> --gate gate.internal:4318--src /path/to/drillo-agentinstalls from a local file instead of--url.--no-startskips starting the service.--root DIRprefixes all writes.- On a hash mismatch nothing is installed.
- The token is stored in
/etc/drillo/agent.env(mode 0600 via umask 077). The binary goes to/usr/local/bin/drillo-agent.
Related CLI commands#
drillo dispatches these install-related commands: preflight, install, upgrade, rollback, status, probe, bundle-build, bundle-verify. Run each with no arguments to see its usage text.
Retention settings at migration time#
drillo migrate reads DRILLO_HOT_DAYS (default 1) and DRILLO_RETENTION_DAYS (default 30). Both must be plain integers with 1 <= DRILLO_HOT_DAYS <= DRILLO_RETENTION_DAYS. See Retention and audit.