aboutsummaryrefslogtreecommitdiff
path: root/nomad
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-07-05 23:15:05 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-07-05 23:15:05 +0200
commit775bab3735c6d8ff650dbc8a96dbc0bb76586103 (patch)
tree73c0a187b096c57176913821710a6a160962e94d /nomad
parent5e83c8e5fe8f5b9566673e96c6d963bc8d0129d6 (diff)
downloadinfrastructure-775bab3735c6d8ff650dbc8a96dbc0bb76586103.tar.gz
infrastructure-775bab3735c6d8ff650dbc8a96dbc0bb76586103.zip
Start using preemption
Diffstat (limited to 'nomad')
-rw-r--r--nomad/postgres-amd64.hcl8
-rw-r--r--nomad/seafile.hcl2
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" {}