nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests

commit 6c2ad4a41034e05a0e0835f7426153d471c7d218
parent 3ee017f5e232773fd1ea44d8b3307532401c675f
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Thu, 25 May 2023 23:20:45 +0200

fix(infra): job priority diff

Job priority diff of >10 is required to have effective preemption:
https://developer.hashicorp.com/nomad/docs/concepts/scheduling/preemption

Diffstat:
Mhcl/infra/nfs/plugin-nfs-nodes.nomad | 2+-
Mhcl/infra/registry/public-registry.nomad | 2+-
Mhcl/infra/registry/simple-registry.nomad | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hcl/infra/nfs/plugin-nfs-nodes.nomad b/hcl/infra/nfs/plugin-nfs-nodes.nomad @@ -5,7 +5,7 @@ job "plugin-nfs-nodes" { # that all nodes in the DC have a copy. type = "system" - priority = 99 + priority = 100 group "nodes" { task "plugin" { diff --git a/hcl/infra/registry/public-registry.nomad b/hcl/infra/registry/public-registry.nomad @@ -1,7 +1,7 @@ job "public-registry" { datacenters = ["dc1"] type = "service" - priority = 98 + priority = 85 group "server" { count = 5 diff --git a/hcl/infra/registry/simple-registry.nomad b/hcl/infra/registry/simple-registry.nomad @@ -1,7 +1,7 @@ job "simple-registry" { datacenters = ["dc1"] type = "service" - priority = 98 + priority = 85 group "server" { count = 5