DragonflyDB — a modern, multi-threaded in-memory datastore that is drop-in compatible with the Redis and Memcached APIs, built for high throughput on a single node. Deployed as a host-networked Nomad service with snapshots on a persistent volume.
Save as values.hcl, edit, then run:
# The name of the Nomad job.
job_name = "dragonfly"
# The Nomad namespace to deploy into.
namespace = "default"
# The datacenters to deploy to.
datacenters = ["*"]
# The DragonflyDB container image. Pin a tag in production.
image = "docker.dragonflydb.io/dragonflydb/dragonfly:latest"
# Host port Dragonfly listens on (Redis/Memcached-compatible).
port = 6379
# Optional password (--requirepass). Empty = no auth (fine on a trusted network).
password = ""
# Docker named volume for /data (snapshots). Dragonfly runs as root, so a fresh volume is writable. Back it up.
data_volume = "dragonfly_data"
# Placement constraints — pin to one node so the local volume stays put. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []
# The task resources. Dragonfly is multi-threaded and memory-first — give it real memory (docs suggest 4GB+ to see its benefits).
resources = {
cpu = 1000
memory = 1024
}
| Name | Type | Default | Description |
|---|---|---|---|
| job_name | string | "dragonfly" | The name of the Nomad job. |
| namespace | string | "default" | The Nomad namespace to deploy into. |
| datacenters | list | ["*"] | The datacenters to deploy to. |
| image | string | "docker.dragonflydb.io/dragonflydb/dragonfly:latest" | The DragonflyDB container image. Pin a tag in production. |
| port | number | 6379 | Host port Dragonfly listens on (Redis/Memcached-compatible). |
| password key | string | "" | Optional password (--requirepass). Empty = no auth (fine on a trusted network). |
| data_volume | string | "dragonfly_data" | Docker named volume for /data (snapshots). Dragonfly runs as root, so a fresh volume is writable. Back it up. |
| constraints | list | [] | Placement constraints — pin to one node so the local volume stays put. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true". |
| resources | object | {
cpu = 1000
memory = 1024
} | The task resources. Dragonfly is multi-threaded and memory-first — give it real memory (docs suggest 4GB+ to see its benefits). |
No variables match.
DragonflyDB — a modern, multi-threaded in-memory datastore that's drop-in compatible with the Redis and Memcached APIs, designed for very high throughput on a single node. Host-networked Nomad service with snapshots on a persistent volume.
nomad-pack registry add nomploy github.com/Nomploy/nomad-packs
nomad-pack run dragonfly --registry nomploy
In nomploy: create a Compose service, type Nomad Pack, pack dragonfly, custom registry
github.com/Nomploy/nomad-packs, then Deploy. Point any Redis client at <node-ip>:6379.
| Variable | Default | Notes |
|---|---|---|
image |
docker.dragonflydb.io/dragonflydb/dragonfly:latest |
Pin a tag in production. |
port |
6379 |
Listen port (Redis-compatible). |
password |
"" |
Empty = open; set --requirepass. |
data_volume |
dragonfly_data |
Snapshots. Back it up. |
constraints |
[] |
Pin to a node so the local volume stays put. |
resources |
cpu 1000 / mem 1024 |
Give it real memory — Dragonfly shines with 4GB+. |
count is fixed to 1 (local volume). Pin with constraints.memlock ulimit is set (Dragonfly requires it). Needs Linux kernel ≥ 4.19.allow_privileged
(add privileged = true) — not enabled here by default.redis/valkey: same wire protocol; Dragonfly is multi-threaded for high throughput.