diff --git a/services/redis.hcl b/services/redis.hcl index c339ffd..d8294bb 100644 --- a/services/redis.hcl +++ b/services/redis.hcl @@ -6,6 +6,12 @@ job "redis" { } group "db" { + # Run on primary storage node (zippy) for local disk performance + constraint { + attribute = "${meta.storage_role}" + value = "primary" + } + network { port "redis" { static = 6379 @@ -21,7 +27,7 @@ job "redis" { config { image = "redis:alpine" ports = ["redis"] - volumes = [ "/data/compute/appdata/redis:/data" ] + volumes = [ "/data/services/redis:/data" ] } service {