From 6ea5de031532e03ac7c9017a8c644fb1eebd295f Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 3 Aug 2024 14:46:05 +0200 Subject: [PATCH] perfs: decrease CPU --- nomad-job/dashboard.nomad | 2 ++ nomad-job/jellyfin.nomad | 1 - nomad-job/mealie.nomad.hcl | 2 +- nomad-job/paperless-ng.nomad | 3 ++- nomad-job/pdns-auth.nomad | 5 +++-- nomad-job/tt-rss.nomad | 3 +++ nomad-job/vector.nomad | 1 - 7 files changed, 11 insertions(+), 6 deletions(-) diff --git a/nomad-job/dashboard.nomad b/nomad-job/dashboard.nomad index d2c33ef..22227ff 100644 --- a/nomad-job/dashboard.nomad +++ b/nomad-job/dashboard.nomad @@ -45,6 +45,7 @@ job "dashboard" { } resources { + cpu = 50 memory = 20 } } @@ -144,6 +145,7 @@ services: } resources { + cpu = 50 memory = 30 } } diff --git a/nomad-job/jellyfin.nomad b/nomad-job/jellyfin.nomad index c7d2601..9f67671 100644 --- a/nomad-job/jellyfin.nomad +++ b/nomad-job/jellyfin.nomad @@ -111,7 +111,6 @@ job "jellyfin" { resources { memory = 2000 memory_max = 4000 - cpu = 3000 } } diff --git a/nomad-job/mealie.nomad.hcl b/nomad-job/mealie.nomad.hcl index dc4c1f4..e7a18d1 100644 --- a/nomad-job/mealie.nomad.hcl +++ b/nomad-job/mealie.nomad.hcl @@ -86,7 +86,7 @@ job "mealie" { env = true } resources { - memory = 300 + memory = 400 } } diff --git a/nomad-job/paperless-ng.nomad b/nomad-job/paperless-ng.nomad index f0a59b6..4ec01b1 100644 --- a/nomad-job/paperless-ng.nomad +++ b/nomad-job/paperless-ng.nomad @@ -38,6 +38,7 @@ job "paperless-ng" { } resources { memory = 50 + cpu = 50 } } task "paperless-ng" { @@ -98,7 +99,7 @@ job "paperless-ng" { resources { memory = 950 memory_max = 1500 - cpu = 2000 + cpu = 100 } } diff --git a/nomad-job/pdns-auth.nomad b/nomad-job/pdns-auth.nomad index 77944c4..bd3c399 100644 --- a/nomad-job/pdns-auth.nomad +++ b/nomad-job/pdns-auth.nomad @@ -84,6 +84,7 @@ include-dir=/etc/powerdns/pdns.d EOH } resources { + cpu = 50 memory = 100 } } @@ -123,7 +124,7 @@ SQLALCHEMY_DATABASE_URI=postgresql://pdns-admin:{{ .Data.data.pdnsadmin }}@activ EOH } resources { - cpu = 100 + cpu = 50 memory = 200 } @@ -148,7 +149,7 @@ local-address=192.168.1.6 EOH } resources { - cpu = 100 + cpu = 50 memory = 50 } } diff --git a/nomad-job/tt-rss.nomad b/nomad-job/tt-rss.nomad index 939c242..598ddc1 100644 --- a/nomad-job/tt-rss.nomad +++ b/nomad-job/tt-rss.nomad @@ -83,6 +83,7 @@ job "tt-rss" { env = true } resources { + cpu = 50 memory = 150 } } @@ -115,6 +116,7 @@ job "tt-rss" { } resources { + cpu = 50 memory = 150 } } @@ -199,6 +201,7 @@ job "tt-rss" { } resources { + cpu = 50 memory = 50 } } diff --git a/nomad-job/vector.nomad b/nomad-job/vector.nomad index 7eb19ac..924dd3e 100644 --- a/nomad-job/vector.nomad +++ b/nomad-job/vector.nomad @@ -29,7 +29,6 @@ job "vector" { } # resource limits are a good idea because you don't want your log collection to consume all resources available resources { - cpu = 500 # 500 MHz memory = 256 # 256MB } # template with Vector's configuration