Run Debuglet across hosts
A networked deployment has one dispatcher and one or more executors on Linux amd64 hosts. Every role runs the same Debuglet release. Use TLS, authenticate users, and keep the local-development profile disabled. Running a second dispatcher, against the same database or a separate one, is unsupported, and the dispatcher does not detect one at startup. To recover from a dispatcher outage, restart the dispatcher as described in dispatcher outage; backup and restore covers generated local TEST state.
Use the full release bundle for the bundled samples. The native daemons accept
operator-supplied configuration. dbl up, dbl executor up, and the default
dbl service install generate local loopback profiles. For an account-owned
executor, dbl executor join followed by dbl service install --enrolled-state
preserves its native TLS enrollment; follow the
persistent executor setup.
Use the deployment guide to provision the dispatcher
and other host-administered roles.
Required topology
Section titled “Required topology”- Clients reach the dispatcher HTTP API.
- Executors connect outward to the dispatcher’s HTTP and gRPC control listeners.
- Executors need no public inbound control port.
- The dispatcher certificate must match the name or address executors use.
Native TLS and executor enrollment
Section titled “Native TLS and executor enrollment”The operator supplies a server certificate with the dispatcher’s dialled name in its subject alternative names, and a distinct client certificate and private key for each executor. Distribute the CA’s public certificate to clients and executors through a trusted channel; keep its private key off daemon hosts. Protect each executor’s key and configuration so only its service account and the administrator can read them.
In addition to its database and listener configuration, the dispatcher needs these keys to verify executor identities:
[tls]disable = falsecert_file = "/etc/debuglet/dispatcher/server.crt"key_file = "/etc/debuglet/dispatcher/server.key"ca_file = "/etc/debuglet/dispatcher/ca.crt"require_client_cert = trueKeep server.local_development = false; for wallet-free TEST submissions set
sui.disabled = true. The HTTP API still accepts authenticated users without a
client certificate. Both executor control channels require one. TLS termination
at a proxy alone does not establish this native certificate-to-executor binding.
For each stable executor UUID, the operator runs the installed dispatcher command against its configured database, as the database owner:
debuglet-dispatcher -config /etc/debuglet/dispatcher/dispatcher.toml \ -enroll-executor EXECUTOR_UUIDRun this in a private terminal: the command prints a secret token once, valid for 24 hours and usable once. Transfer it privately to that executor; keep it out of shared logs and version control. Add it to the executor’s protected configuration for its first start:
[identity]executor_id = "EXECUTOR_UUID"[dispatcher]addr = "dispatcher.example:9001" # direct gRPC listeneryamux_addr = "dispatcher.example:9000" # reverse control and HTTP API listener[tls]disable = false[credentials]ca_cert = "/etc/debuglet/executor/ca.crt"client_cert = "/etc/debuglet/executor/client.crt"client_key = "/etc/debuglet/executor/client.key"enrollment_token = "PRIVATE_TOKEN"These are the connection fields, not a complete executor configuration; also
supply the existing database, resource and pricing settings. For the userspace
TEST profile, set network.packet_counter = "fallback" and keep
network.policy.local_targets = false. Use
tls.server_name only when the certificate name differs from the dialled host.
The gRPC and reverse-control addresses must name their respective listeners.
The first successful registration consumes the token and stores the certificate
fingerprint bound to that UUID. Remove credentials.enrollment_token afterward.
Restart with the same UUID, keypair and database; no new token is needed. A
replacement certificate needs a new token for the same UUID, or a binding as
described below. The corresponding
-revoke-executor EXECUTOR_UUID command removes the binding and prevents new
registration and lease renewal. An existing session retains its current lease
until expiry or an earlier disconnect.
When the administrator issued the executor’s certificate, as
deploy/scripts/generate-certs.sh does, no token is needed: bind the UUID to
that certificate directly, as the database owner:
debuglet-dispatcher -config /etc/debuglet/dispatcher/dispatcher.toml \ -bind-executor EXECUTOR_UUID -bind-certificate /path/to/client.crtOnly the public certificate is needed. The command verifies it against
tls.ca_file for client authentication, requires the UUID as its common name
and records its SHA-256 fingerprint. Running it again for the same certificate
changes nothing; a reissued certificate replaces the binding, and the old one
is refused from then on.
With require_client_cert = true the dispatcher enforces these bindings: a
certificate from the trusted CA without a binding for its executor’s UUID is
refused. Enable the requirement only after every executor is bound or holds a
token. The Ansible deployment does this for its inventory: it binds every
executor from its deployed client.crt before it starts the dispatcher with
the requirement, re-binds a reissued certificate, renders
executor_enrollment_token into [credentials] for an executor it does not
bind, and its preflight refuses the requirement while an executor has neither;
see “Requiring client certificates” in deploy/README.md. An on-host
configuration edit is overwritten by the next Ansible deployment. Do not
disable client-certificate verification to bypass missing enrollment.
Client trust and account access
Section titled “Client trust and account access”Current packages save private API trust with dbl connect --ca-file; keep that
public CA file available at its saved absolute path. For a publicly trusted API,
omit this option, even if native executor control uses a private CA. The published
v0.2.0 CLI instead uses SSL_CERT_FILE=/path/to/api-ca.crt for private trust.
The following example uses current commands on an account-key deployment.
Each participant registers an independent account once and retains the private
account key, recovery code and saved session. This flow does not perform browser
GitHub login; managed deployments may use a different account policy.
dbl connect https://dispatcher.example:9000 --name research --ca-file /path/to/api-ca.crtdbl --dispatcher research login --register alicedbl --dispatcher research nodesdbl --dispatcher research run --sample hello --executor OTHER_EXECUTOR_UUID --wait --allow-remote-testdbl --dispatcher research logs RUN_IDUse the operator’s actual API URL, including any proxy path prefix. With multiple
executors, select the intended ready UUID explicitly. TEST moves no funds and
requires --allow-remote-test outside a literal loopback endpoint. Results belong
to the submitting account. For a later login, reuse its saved account key as
described in the CLI reference.
Release-specific commands
Section titled “Release-specific commands”- The v0.2.0 full bundle links only
dblintoPREFIX/bin; invoke its daemons fromPREFIX/lib/debuglet/v0.2.0/bin. Current source builds also link the daemon commands. - v0.2.0 has no
-init-databaseflag. Its documented initialization uses the localdblroles once, followed by an orderly stop, to create the database before starting a native daemon. Current source supports the explicit database initialization command. - Preserve each role’s database and credentials across restart. Use the explicit upgrade procedure when changing releases; do not run an older daemon against a newer database.
The Operating a Dispatcher, Operating an Executor, and Deployment and Upgrades Wiki pages contain the operator workflow and recovery guidance.