Nomad:修订间差异
跳到导航
跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
(→設定) |
(→設定) |
||
第24行: | 第24行: | ||
retry_join = ["10.1.1.10:4648", "10.1.1.11:4648", "10.1.1.12:4648"] | retry_join = ["10.1.1.10:4648", "10.1.1.11:4648", "10.1.1.12:4648"] | ||
} | } | ||
} | |||
</syntaxhighlight> | |||
Nomad client的部份,依照官方的建議放到<code>/etc/nomad.d/client.hcl</code>: | |||
<syntaxhighlight lang="hcl"> | |||
data_dir = "/srv/nomad" | |||
log_level = "INFO" | |||
client { | |||
enabled = true | |||
servers = ["10.1.1.10:4648", "10.1.1.11:4648", "10.1.1.12:4648 | |||
} | |||
ports { | |||
http = 5656 | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
2020年1月3日 (五) 07:29的版本
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
设定
Nomad server的部份,依照官方的建议放到/etc/nomad.d/server.hcl
:
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 client的部份,依照官方的建议放到/etc/nomad.d/client.hcl
:
data_dir = "/srv/nomad"
log_level = "INFO"
client {
enabled = true
servers = ["10.1.1.10:4648", "10.1.1.11:4648", "10.1.1.12:4648
}
ports {
http = 5656
}
常用指令
nomad server members -address=http://nomad-server:4646
nomad node status -address=http://nomad-server:4646
外部连结
- 官方网站 (英文)