2021-12-26

Hashicorp Nomad 設定 docker shm_size

由於組織內部之前使用Hashicorp Nomad來作為workload orchestrator, 管理docker,
在job file裡並未設定shared memory size導致docker dufault 192MB不敷使用出現:
ERROR: could not resize shared memory segment
PostgreSQL: xxx to 196864 bytes: No space left on device

在Nomad job file 設定如下:
task 設定檔下: 單位是byte, 所以1GB 要寫成 1*1024*1024*1024 = 1073741824

config {
   shm_size = 1073741824
}

docker driver 文件: https://www.nomadproject.io/docs/drivers/docker
但實在是不友善,所以有人提交需求改為 human friendly
https://github.com/hashicorp/nomad/issues/10879

No comments:

Post a Comment