Configure a cluster
Dkron can run in HA mode, avoiding SPOFs, this mode provides better scalability and better reliability for users that wants a high level of confidence in the cron jobs they need to run.
Manually bootstrapping a Dkron cluster does not rely on additional tooling, but does require operator participation in the cluster formation process. When bootstrapping, Dkron servers and clients must be started and informed with the address of at least one Dkron server.
As you can tell, this creates a chicken-and-egg problem where one server must first be fully bootstrapped and configured before the remaining servers and clients can join the cluster. This requirement can add additional provisioning time as well as ordered dependencies during provisioning.
First, we bootstrap a single Dkron server and capture its IP address. After we have that nodes IP address, we place this address in the configuration.
- First bootstrap a node with a configuration like this:
# dkron.yml server: true bootstrap-expect: 1
Then stop the bootstrapped server and capture the server IP address.
To form a cluster, configure server nodes (including the bootstrapped server) with the address of its peers as in the following example:
# dkron.yml server: true bootstrap-expect: 3 join: - 10.19.3.9 - 10.19.4.64 - 10.19.7.215