From 34083cbed9762e738d64caf12056b60005e97dc3 Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 10 Dec 2022 17:10:32 +0100 Subject: [PATCH] perf: set nomad priority --- nomad-job/MQTT.nomad | 2 +- nomad-job/chainetv.nomad | 1 + nomad-job/crowdsec-agent.nomad | 1 + nomad-job/dashboard.nomad | 1 + nomad-job/drone.nomad | 1 + nomad-job/filestash.nomad | 1 + nomad-job/gitea.nomad | 1 + nomad-job/grafana.nomad | 1 + nomad-job/homeassistant.nomad | 1 + nomad-job/jellyfin.nomad | 1 + nomad-job/loki.nomad | 1 + nomad-job/node-exporter.nomad | 1 + nomad-job/pacoloco.nomad | 1 + nomad-job/paperless-ng.nomad | 2 +- nomad-job/prometheus.nomad | 1 + nomad-job/promtail.nomad | 1 + nomad-job/radicale.nomad | 1 + nomad-job/rutorrent.nomad | 1 + nomad-job/supysonic.nomad | 1 + nomad-job/syncthing.nomad | 1 + nomad-job/traefik-ingress.nomad | 1 + nomad-job/traefik-local.nomad | 1 + nomad-job/tt-rss.nomad | 1 + nomad-job/vaultwarden.nomad | 1 + nomad-job/vikunja.nomad | 2 +- nomad-job/www.nomad | 1 + 26 files changed, 26 insertions(+), 3 deletions(-) diff --git a/nomad-job/MQTT.nomad b/nomad-job/MQTT.nomad index 3efee1f..23d7ce6 100644 --- a/nomad-job/MQTT.nomad +++ b/nomad-job/MQTT.nomad @@ -1,7 +1,7 @@ job "MQTT" { datacenters = ["homelab"] - priority = 50 + priority = 90 type = "service" meta { forcedeploy = "0" diff --git a/nomad-job/chainetv.nomad b/nomad-job/chainetv.nomad index 6f7408e..55ea190 100644 --- a/nomad-job/chainetv.nomad +++ b/nomad-job/chainetv.nomad @@ -1,6 +1,7 @@ job "chainetv" { datacenters = ["homelab"] + priority = 30 type = "service" meta { forcedeploy = "2" diff --git a/nomad-job/crowdsec-agent.nomad b/nomad-job/crowdsec-agent.nomad index f38a63a..d1519c6 100644 --- a/nomad-job/crowdsec-agent.nomad +++ b/nomad-job/crowdsec-agent.nomad @@ -2,6 +2,7 @@ job "crowdsec-agent" { datacenters = ["homelab", "hetzner"] type = "system" + priority = 50 meta { forcedeploy = "2" } diff --git a/nomad-job/dashboard.nomad b/nomad-job/dashboard.nomad index c4cc1c3..e9f0537 100644 --- a/nomad-job/dashboard.nomad +++ b/nomad-job/dashboard.nomad @@ -1,6 +1,7 @@ job "dashboard" { datacenters = ["homelab"] + priority = 30 type = "service" meta { forcedeploy = "1" diff --git a/nomad-job/drone.nomad b/nomad-job/drone.nomad index 716f000..fc777e5 100644 --- a/nomad-job/drone.nomad +++ b/nomad-job/drone.nomad @@ -1,5 +1,6 @@ job "drone" { datacenters = ["homelab"] + priority = 50 type = "service" vault { policies = ["droneci"] diff --git a/nomad-job/filestash.nomad b/nomad-job/filestash.nomad index 8258992..aa58f53 100644 --- a/nomad-job/filestash.nomad +++ b/nomad-job/filestash.nomad @@ -1,6 +1,7 @@ job "filestash" { datacenters = ["hetzner"] + priority = 50 type = "service" meta { forcedeploy = "0" diff --git a/nomad-job/gitea.nomad b/nomad-job/gitea.nomad index 7af711e..150ff6a 100644 --- a/nomad-job/gitea.nomad +++ b/nomad-job/gitea.nomad @@ -1,5 +1,6 @@ job "git" { datacenters = ["homelab"] + priority = 90 type = "service" meta { force = 1 diff --git a/nomad-job/grafana.nomad b/nomad-job/grafana.nomad index 2955c1e..9533152 100644 --- a/nomad-job/grafana.nomad +++ b/nomad-job/grafana.nomad @@ -1,5 +1,6 @@ job "grafana" { datacenters = ["homelab"] + priority = 50 type = "service" meta { forcedeploiement = 1 diff --git a/nomad-job/homeassistant.nomad b/nomad-job/homeassistant.nomad index b8ab32f..1547b52 100644 --- a/nomad-job/homeassistant.nomad +++ b/nomad-job/homeassistant.nomad @@ -1,6 +1,7 @@ job "homeassistant" { datacenters = ["homelab"] + priority = 90 type = "service" meta { forcedeploy = "0" diff --git a/nomad-job/jellyfin.nomad b/nomad-job/jellyfin.nomad index 5fe63f6..0403347 100644 --- a/nomad-job/jellyfin.nomad +++ b/nomad-job/jellyfin.nomad @@ -1,6 +1,7 @@ job "jellyfin" { datacenters = ["homelab"] + priority = 80 type = "service" meta { forcedeploy = "0" diff --git a/nomad-job/loki.nomad b/nomad-job/loki.nomad index 387fc72..c3357ad 100644 --- a/nomad-job/loki.nomad +++ b/nomad-job/loki.nomad @@ -1,6 +1,7 @@ job "loki" { datacenters = ["homelab"] + priority = 50 type = "service" meta { forcedeploy = "0" diff --git a/nomad-job/node-exporter.nomad b/nomad-job/node-exporter.nomad index 91d234a..646af33 100644 --- a/nomad-job/node-exporter.nomad +++ b/nomad-job/node-exporter.nomad @@ -1,5 +1,6 @@ job "node-exporter" { datacenters = ["homelab", "hetzner"] + priority = 30 type = "system" meta { forcedeploy = "0" diff --git a/nomad-job/pacoloco.nomad b/nomad-job/pacoloco.nomad index 5e7510d..be37f59 100644 --- a/nomad-job/pacoloco.nomad +++ b/nomad-job/pacoloco.nomad @@ -1,6 +1,7 @@ job "pacoloco" { datacenters = ["homelab"] + priority = 50 type = "service" meta { forcedeploy = "0" diff --git a/nomad-job/paperless-ng.nomad b/nomad-job/paperless-ng.nomad index 37c79cb..69419fd 100644 --- a/nomad-job/paperless-ng.nomad +++ b/nomad-job/paperless-ng.nomad @@ -1,7 +1,7 @@ job "paperless-ng" { datacenters = ["homelab"] - priority = 50 + priority = 70 type = "service" meta { forcedeploy = "0" diff --git a/nomad-job/prometheus.nomad b/nomad-job/prometheus.nomad index e08f3c4..3b944c8 100644 --- a/nomad-job/prometheus.nomad +++ b/nomad-job/prometheus.nomad @@ -1,5 +1,6 @@ job "prometheus" { datacenters = ["homelab"] + priority = 50 type = "service" constraint { attribute = "${attr.cpu.arch}" diff --git a/nomad-job/promtail.nomad b/nomad-job/promtail.nomad index b640a31..361d2ee 100644 --- a/nomad-job/promtail.nomad +++ b/nomad-job/promtail.nomad @@ -1,6 +1,7 @@ job "promtail" { datacenters = ["homelab", "hetzner"] + priority = 50 type = "system" meta { forcedeploy = "0" diff --git a/nomad-job/radicale.nomad b/nomad-job/radicale.nomad index bd06fcc..44f5faf 100644 --- a/nomad-job/radicale.nomad +++ b/nomad-job/radicale.nomad @@ -1,6 +1,7 @@ job "radicale" { datacenters = ["homelab"] + priority = 70 type = "service" meta { forcedeploy = "0" diff --git a/nomad-job/rutorrent.nomad b/nomad-job/rutorrent.nomad index 9390b98..63fc9ad 100644 --- a/nomad-job/rutorrent.nomad +++ b/nomad-job/rutorrent.nomad @@ -1,6 +1,7 @@ job "torrent" { datacenters = ["hetzner"] + priority = 80 type = "service" meta { forcedeploy = "0" diff --git a/nomad-job/supysonic.nomad b/nomad-job/supysonic.nomad index 3aad786..57dc3cf 100644 --- a/nomad-job/supysonic.nomad +++ b/nomad-job/supysonic.nomad @@ -1,6 +1,7 @@ job "supysonic" { datacenters = ["homelab"] + priority = 90 type = "service" meta { forcedeploy = "0" diff --git a/nomad-job/syncthing.nomad b/nomad-job/syncthing.nomad index d12b064..35ab072 100644 --- a/nomad-job/syncthing.nomad +++ b/nomad-job/syncthing.nomad @@ -1,6 +1,7 @@ job "syncthing" { datacenters = ["homelab"] + priority = 70 type = "service" meta { forcedeploy = "0" diff --git a/nomad-job/traefik-ingress.nomad b/nomad-job/traefik-ingress.nomad index 243e015..9e3c7b7 100644 --- a/nomad-job/traefik-ingress.nomad +++ b/nomad-job/traefik-ingress.nomad @@ -1,5 +1,6 @@ job "traefik-ingress" { datacenters = ["hetzner"] + priority = 90 type = "service" meta { diff --git a/nomad-job/traefik-local.nomad b/nomad-job/traefik-local.nomad index 9bce616..b580654 100644 --- a/nomad-job/traefik-local.nomad +++ b/nomad-job/traefik-local.nomad @@ -1,5 +1,6 @@ job "traefik-local" { datacenters = ["homelab"] + priority = 90 type = "service" group "traefik-local" { diff --git a/nomad-job/tt-rss.nomad b/nomad-job/tt-rss.nomad index 9347329..7fa57ef 100644 --- a/nomad-job/tt-rss.nomad +++ b/nomad-job/tt-rss.nomad @@ -1,5 +1,6 @@ job "tt-rss" { datacenters = ["homelab"] + priority = 90 type = "service" constraint { diff --git a/nomad-job/vaultwarden.nomad b/nomad-job/vaultwarden.nomad index 9e27b81..8becbfb 100644 --- a/nomad-job/vaultwarden.nomad +++ b/nomad-job/vaultwarden.nomad @@ -1,6 +1,7 @@ job "vaultwarden" { datacenters = ["homelab"] + priority = 90 type = "service" meta { forcedeploy = "0" diff --git a/nomad-job/vikunja.nomad b/nomad-job/vikunja.nomad index 1ecc882..9f83b0e 100644 --- a/nomad-job/vikunja.nomad +++ b/nomad-job/vikunja.nomad @@ -1,7 +1,7 @@ job "vikunja" { datacenters = ["homelab"] - priority = 50 + priority = 70 type = "service" meta { forcedeploy = "0" diff --git a/nomad-job/www.nomad b/nomad-job/www.nomad index 72481fe..e731fb3 100644 --- a/nomad-job/www.nomad +++ b/nomad-job/www.nomad @@ -1,5 +1,6 @@ job "www" { datacenters = ["hetzner"] + priority = 90 type = "service" group "www" { network {