commit 3ee017f5e232773fd1ea44d8b3307532401c675f
parent 3ec51f1d66ce87dab3d2b837036030fba51f0c40
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Wed, 24 May 2023 23:49:22 +0200
feat: mem oversubscription
Diffstat:
14 files changed, 61 insertions(+), 29 deletions(-)
diff --git a/hcl/default/0x0/0x0.nomad b/hcl/default/0x0/0x0.nomad
@@ -61,7 +61,8 @@ job "0x0" {
}
resources {
- memory = 128
+ memory = 50
+ memory_max = 128
cpu = 200
}
@@ -95,6 +96,7 @@ job "0x0" {
resources {
memory = 32
+ memory_max = 64
cpu = 50
}
}
@@ -127,7 +129,8 @@ job "0x0" {
}
resources {
- memory = 128
+ memory = 64
+ memory_max = 128
cpu = 200
}
}
diff --git a/hcl/default/aload/aload.nomad b/hcl/default/aload/aload.nomad
@@ -45,7 +45,8 @@ job "aload" {
}
resources {
- memory = 64
+ memory = 32
+ memory_max = 64
cpu = 100
}
}
diff --git a/hcl/default/ampache/ampache-catalog.nomad b/hcl/default/ampache/ampache-catalog.nomad
@@ -49,7 +49,8 @@ job "ampache-catalog" {
}
resources {
- memory = 256
+ memory = 50
+ memory_max = 256
cpu = 100
}
}
diff --git a/hcl/default/ampache/ampache.nomad b/hcl/default/ampache/ampache.nomad
@@ -59,7 +59,8 @@ job "ampache" {
}
resources {
- memory = 256
+ memory = 50
+ memory_max = 256
cpu = 200
}
}
@@ -89,7 +90,8 @@ job "ampache" {
}
resources {
- memory = 512
+ memory = 50
+ memory_max = 512
cpu = 300
}
}
diff --git a/hcl/default/certbot/certbot.nomad b/hcl/default/certbot/certbot.nomad
@@ -67,7 +67,8 @@ job "certbot" {
}
resources {
- memory = 128
+ memory = 50
+ memory_max = 128
cpu = 300
}
}
diff --git a/hcl/default/cv/cv.nomad b/hcl/default/cv/cv.nomad
@@ -34,7 +34,8 @@ job "cv" {
}
resources {
- memory = 128
+ memory = 50
+ memory_max = 128
cpu = 200
}
}
@@ -62,7 +63,8 @@ job "cv" {
}
resources {
- memory = 128
+ memory = 50
+ memory_max = 128
cpu = 200
}
}
diff --git a/hcl/default/diary/diary.nomad b/hcl/default/diary/diary.nomad
@@ -34,7 +34,8 @@ job "diary" {
}
resources {
- memory = 128
+ memory = 50
+ memory_max = 128
cpu = 200
}
}
@@ -62,7 +63,8 @@ job "diary" {
}
resources {
- memory = 128
+ memory = 50
+ memory_max = 128
cpu = 200
}
}
diff --git a/hcl/default/git/git.nomad b/hcl/default/git/git.nomad
@@ -74,7 +74,8 @@ job "git" {
}
resources {
- memory = 64
+ memory = 32
+ memory_max = 64
cpu = 100
}
}
@@ -110,7 +111,8 @@ job "git" {
}
resources {
- memory = 64
+ memory = 32
+ memory_max = 64
cpu = 100
}
}
diff --git a/hcl/default/mastodon/mastodon.nomad b/hcl/default/mastodon/mastodon.nomad
@@ -66,7 +66,8 @@ job "mastodon" {
}
resources {
- memory = 256
+ memory = 50
+ memory_max = 256
cpu = 200
}
@@ -99,7 +100,8 @@ job "mastodon" {
}
resources {
- memory = 256
+ memory = 50
+ memory_max = 256
cpu = 200
}
}
@@ -126,7 +128,8 @@ job "mastodon" {
}
resources {
- memory = 512
+ memory = 50
+ memory_max = 512
cpu = 300
}
}
@@ -148,7 +151,8 @@ job "mastodon" {
}
resources {
- memory = 300
+ memory = 50
+ memory_max = 300
cpu = 200
}
}
@@ -174,7 +178,8 @@ job "mastodon" {
}
resources {
- memory = 500
+ memory = 50
+ memory_max = 500
cpu = 200
}
}
@@ -188,7 +193,8 @@ job "mastodon" {
}
resources {
- memory = 128
+ memory = 32
+ memory_max = 128
cpu = 100
}
diff --git a/hcl/default/myheats-demo/myheats-demo.nomad b/hcl/default/myheats-demo/myheats-demo.nomad
@@ -53,7 +53,8 @@ EOT
}
resources {
- memory = 512
+ memory = 50
+ memory_max = 512
cpu = 300
}
}
@@ -81,7 +82,8 @@ EOT
}
resources {
- memory = 128
+ memory = 50
+ memory_max = 128
cpu = 200
}
}
diff --git a/hcl/default/myheats/myheats.nomad b/hcl/default/myheats/myheats.nomad
@@ -30,11 +30,13 @@ job "myheats" {
config {
image = "127.0.0.1:5000/jekyll-myheats:latest"
+ force_pull = true
ports = ["jekyll"]
}
resources {
- memory = 128
+ memory = 50
+ memory_max = 128
cpu = 200
}
}
@@ -62,7 +64,8 @@ job "myheats" {
}
resources {
- memory = 128
+ memory = 50
+ memory_max = 128
cpu = 200
}
}
diff --git a/hcl/default/snibox/snibox.nomad b/hcl/default/snibox/snibox.nomad
@@ -59,7 +59,8 @@ job "snibox" {
}
resources {
- memory = 128
+ memory = 50
+ memory_max = 128
cpu = 100
}
}
@@ -99,7 +100,8 @@ EOT
}
resources {
- memory = 256
+ memory = 50
+ memory_max = 256
cpu = 200
}
}
diff --git a/hcl/default/vault-tls/nomad-vault-tls.nomad b/hcl/default/vault-tls/nomad-vault-tls.nomad
@@ -65,6 +65,7 @@ job "vault-tls" {
resources {
memory = 16
+ memory_max = 32
cpu = 20
}
}
diff --git a/hcl/default/writefreely/writefreely.nomad b/hcl/default/writefreely/writefreely.nomad
@@ -64,7 +64,8 @@ job "writefreely" {
}
resources {
- memory = 128
+ memory = 50
+ memory_max = 128
cpu = 100
}
@@ -103,7 +104,8 @@ job "writefreely" {
}
resources {
- memory = 128
+ memory = 50
+ memory_max = 128
cpu = 100
}
@@ -136,7 +138,8 @@ job "writefreely" {
}
resources {
- memory = 256
+ memory = 50
+ memory_max = 256
cpu = 200
}
}
@@ -164,7 +167,8 @@ job "writefreely" {
}
resources {
- memory = 256
+ memory = 50
+ memory_max = 256
cpu = 200
}
}