I recently ran into an issue where Nomad has reserved too much CPU & memory althoough configured otherwise. This can result in tasks being killed by the OOMKill.
OOM Killed
Workaround
There is a workaround by overriding the available memory and/or CPU power in your Nomad client config file.
Nomad client config
You can compute your "real" CPU compute power by multiplying the number of cores with the MHz. Example: 4 core CPU with 2 GHz each = 4 * 2000
= 8000
.
To get your CPUs clock speed, use the lscpu util:
lscpu | grep MHz
The Nomad client config is located at /etc/nomad/nomad.hcl
by default.
client {
memory_total_mb = 16000
cpu_total_compute = 8000
}
Sources
Allow for 0 res allocations / Disable resource constraints for particular agent #5672
Hashicorp Nomad and the memory options with the docker driver
Read more...
How to style <progress> Element with Tailwind
Styling the HTML progress element isn't as straight forward as you think. We'll take a look and craft pretty progresses with Tailwind CSS.
Laravel dd() not showing Dump as HTML
I recently ran into an issue where the Laravel dd() Helper did not show anything, what the heck?
Comments