Nomad
Nomad是HashiCorp推出的资源管理软体。
安装
这边是安装0.10.2版,记得到官方网站上确认最新版的号码后,修改对应的设定:
cd /tmp; wget https://releases.hashicorp.com/nomad/0.10.2/nomad_0.10.2_linux_amd64.zip; unzip nomad_0.10.2_linux_amd64.zip; sudo install -m 0755 nomad /usr/local/bin/; wget https://raw.githubusercontent.com/hashicorp/nomad/master/dist/systemd/nomad.service; sudo install nomad.service /lib/systemd/system/; sudo service daemon-reload; sudo systemctl enable nomad
设定
datacenter = "us-east-1a"
data_dir = "/srv/nomad"
log_level = "INFO"
region = "us-east-1"
server {
enabled = true
bootstrap_expect = 3
server_join {
retry_join = ["10.1.1.10:4648", "10.1.1.11:4648", "10.1.1.12:4648"]
}
}
常用指令
nomad server members -address=http://nomad-server:4646
nomad node status -address=http://nomad-server:4646
外部连结
- 官方网站 (英文)