hashipi

Raspberry Pi Test Cluster for HashiCorp Vault, Nomad and Consul
git clone https://git.in0rdr.ch/hashipi.git
Log | Files | Refs | README

commit c62fe4a76298087edef2df5f970e4d3c31a440c2
parent 22736de3d8f37532f9abae2e425c66b46f302a44
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Thu, 25 May 2023 00:52:14 +0200

feat(nomad): reserve client host resources

Diffstat:
Mnomad.sh | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/nomad.sh b/nomad.sh @@ -70,6 +70,16 @@ client { host_network "private" { cidr = "127.0.0.1/32" } + + # Avoid resource contention between host/workload when oversubscribing + # memory. Reserve a portion of the node's resources from receiving tasks. + # https://developer.hashicorp.com/nomad/docs/job-specification/resources#memory-oversubscription + reserved { + # CPU to reserve, in MHz + cpu = 1000 + # memory to reserve, in MB + memory = 256 + } } plugin "nomad-driver-podman" {