From 775bab3735c6d8ff650dbc8a96dbc0bb76586103 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sun, 5 Jul 2020 23:15:05 +0200 Subject: Start using preemption --- nomad/postgres-amd64.hcl | 8 ++------ nomad/seafile.hcl | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'nomad') diff --git a/nomad/postgres-amd64.hcl b/nomad/postgres-amd64.hcl index 0a6369a..456156e 100644 --- a/nomad/postgres-amd64.hcl +++ b/nomad/postgres-amd64.hcl @@ -1,11 +1,7 @@ -job "dbx86" { +job "postgres" { datacenters = ["dc1"] type = "system" - - constraint { - attribute = "${attr.cpu.arch}" - value = "amd64" - } + priority = 90 update { max_parallel = 1 diff --git a/nomad/seafile.hcl b/nomad/seafile.hcl index 9c26df2..e22699c 100644 --- a/nomad/seafile.hcl +++ b/nomad/seafile.hcl @@ -39,7 +39,7 @@ job "seafile" { } resources { - memory = 2048 + memory = 512 network { port "seahub_port" {} port "seafhttp_port" {} -- cgit v1.2.3