diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-07-05 23:15:05 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-07-05 23:15:05 +0200 |
commit | 775bab3735c6d8ff650dbc8a96dbc0bb76586103 (patch) | |
tree | 73c0a187b096c57176913821710a6a160962e94d | |
parent | 5e83c8e5fe8f5b9566673e96c6d963bc8d0129d6 (diff) | |
download | infrastructure-775bab3735c6d8ff650dbc8a96dbc0bb76586103.tar.gz infrastructure-775bab3735c6d8ff650dbc8a96dbc0bb76586103.zip |
Start using preemption
-rw-r--r-- | nomad/postgres-amd64.hcl | 8 | ||||
-rw-r--r-- | nomad/seafile.hcl | 2 |
2 files changed, 3 insertions, 7 deletions
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" {} |