Dkron is a distributed cron system for cloud-native setups, with a UI, API, and clustered execution of scheduled commands.
Overview
Dkron is a distributed, fault-tolerant job scheduling system aimed at cloud-native environments. It runs scheduled commands across a server cluster, combining any set of nodes per job, and suits organizations that depend on timed background work.
The system is written in Go and uses the Raft protocol and Serf for reliability and horizontal scale. Setup is straightforward, nodes can fail without stopping the cluster, and it scales to large numbers of jobs and nodes. Design draws on Google's reliable cron paper and Airbnb Chronos.
Dkron runs on Linux, macOS, and Windows. Operators add jobs through the API, scale the cluster by joining instances, and can deploy quickly with Docker Compose for development or testing. The dashboard is a React Admin single-page application served by the server.
Client integrations include Chef, Python, Ruby, and PHP libraries, a Terraform provider, and Django integration. Email notifications can be tested in development using a bundled local SMTP catcher when using the development compose setup.
Key features
- Distributed cron across clusters
- Web UI for job management
- REST API for jobs
- Raft and Serf for fault tolerance
- Docker Compose deployment
- Multi-OS server binaries
- Email and notification hooks
- Terraform and language clients
Use cases
- Cluster-wide scheduled maintenance scripts
- Fault-tolerant cron in microservice estates
- Scheduled backups and batch jobs
- Replacing single-node cron with HA scheduling