From 7bc4ae1f8b769c6f2eff0b682b6cd8a18f9ec153 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Fri, 29 Dec 2023 07:36:23 -0800 Subject: [PATCH] Reserve node memory to reduce OOM kills --- ansible_playbooks/ansible_hosts.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ansible_playbooks/ansible_hosts.yml b/ansible_playbooks/ansible_hosts.yml index bd48058..2e88044 100644 --- a/ansible_playbooks/ansible_hosts.yml +++ b/ansible_playbooks/ansible_hosts.yml @@ -5,6 +5,7 @@ all: hosts: n1.thefij: nomad_node_role: both + nomad_reserved_memory: 1024 # nomad_meta: # hw_transcode.device: /dev/dri # hw_transcode.type: intel @@ -26,12 +27,13 @@ all: mode: "0755" read_only: false n2.thefij: + nomad_node_role: both + nomad_node_class: ingress + nomad_reserved_memory: 1024 nfs_mounts: - src: 10.50.250.2:/srv/volumes path: /srv/volumes/moxy opts: proto=tcp,rw - nomad_node_class: ingress - nomad_node_role: both nomad_unique_host_volumes: - name: nextcloud-data path: /srv/volumes/nextcloud @@ -47,6 +49,7 @@ all: read_only: false pi4: nomad_node_role: both + nomad_reserved_memory: 512 nomad_meta: hw_transcode.device: /dev/video11 hw_transcode.type: raspberry