Move loki to zippy.
This commit is contained in:
@@ -10,6 +10,14 @@ job "loki" {
|
|||||||
}
|
}
|
||||||
group "loki" {
|
group "loki" {
|
||||||
count = 1
|
count = 1
|
||||||
|
|
||||||
|
# Run on primary storage node (zippy) for local disk performance
|
||||||
|
# TODO: move to fractal once it's converted to NixOS (spinning disks OK for log data)
|
||||||
|
constraint {
|
||||||
|
attribute = "${meta.storage_role}"
|
||||||
|
value = "primary"
|
||||||
|
}
|
||||||
|
|
||||||
restart {
|
restart {
|
||||||
attempts = 3
|
attempts = 3
|
||||||
interval = "5m"
|
interval = "5m"
|
||||||
@@ -31,7 +39,7 @@ job "loki" {
|
|||||||
"local/loki/local-config.yaml",
|
"local/loki/local-config.yaml",
|
||||||
]
|
]
|
||||||
ports = ["loki"]
|
ports = ["loki"]
|
||||||
volumes = ["/data/compute/appdata/loki:/loki"]
|
volumes = ["/data/services/loki:/loki"]
|
||||||
}
|
}
|
||||||
template {
|
template {
|
||||||
data = <<EOH
|
data = <<EOH
|
||||||
|
|||||||
Reference in New Issue
Block a user