From 794877375763a16919a9c985ec2ea3f5f7379c48 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 29 Sep 2024 17:51:05 +0200 Subject: [PATCH] perfs: increase memory-max for some job --- nomad-job/apps/immich.nomad.hcl | 3 +- nomad-job/apps/rutorrentlocal.nomad | 64 +++++++++++++++++++++++++ nomad-job/batch/batch-seedboxsync.nomad | 1 + nomad-job/system/registry.nomad.hcl | 4 +- 4 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 nomad-job/apps/rutorrentlocal.nomad diff --git a/nomad-job/apps/immich.nomad.hcl b/nomad-job/apps/immich.nomad.hcl index 3d4cd34..2c3042c 100644 --- a/nomad-job/apps/immich.nomad.hcl +++ b/nomad-job/apps/immich.nomad.hcl @@ -96,7 +96,8 @@ job "immich" { env = true } resources { - memory = 500 + memory = 600 + memory_max = 1800 } } diff --git a/nomad-job/apps/rutorrentlocal.nomad b/nomad-job/apps/rutorrentlocal.nomad new file mode 100644 index 0000000..c19e847 --- /dev/null +++ b/nomad-job/apps/rutorrentlocal.nomad @@ -0,0 +1,64 @@ + +job "rutorrentlocal" { + datacenters = ["homelab"] + priority = 80 + type = "service" + meta { + forcedeploy = "0" + } + constraint { + attribute = "${node.unique.name}" + operator = "set_contains" + value = "oberon" + } + group "bittorent" { + network { + mode = "host" + port "http" { + to = 8080 + } + port "torrent" { + static = 6881 + } + port "ecoute" { + static = 50000 + } + } + task "bittorent" { + driver = "podman" + service { + name = "bittorentlocal" + port = "http" + address_mode= "host" + tags = [ + ] + } + user = "root" + config { + + image = "docker.service.consul:5000/crazymax/rtorrent-rutorrent:edge" + ports = [ + "http", + "torrent", + "ecoute" + ] + volumes = [ + "/exports/nomad/rutorrent/data:/data", + "/exports/nomad/rutorrent/downloads:/downloads" + ] + + } + env { + PUID = 100001 + PGID = 10 + UMASK = 002 + WEBUI_PORT = "8080" + } + + resources { + memory = 650 + } + } + + } +} diff --git a/nomad-job/batch/batch-seedboxsync.nomad b/nomad-job/batch/batch-seedboxsync.nomad index f6c0753..682e314 100644 --- a/nomad-job/batch/batch-seedboxsync.nomad +++ b/nomad-job/batch/batch-seedboxsync.nomad @@ -74,6 +74,7 @@ job "batch-seedboxsync" { } resources { memory = 500 + memory_max = 1000 } } diff --git a/nomad-job/system/registry.nomad.hcl b/nomad-job/system/registry.nomad.hcl index fbc98f1..8a908c6 100644 --- a/nomad-job/system/registry.nomad.hcl +++ b/nomad-job/system/registry.nomad.hcl @@ -90,7 +90,7 @@ version: '0.1' } resources { memory = 150 - memory_max = 400 + memory_max = 600 } } task "docker-ghcr" { @@ -133,7 +133,7 @@ version: '0.1' } resources { memory = 150 - memory_max = 400 + memory_max = 600 } }