我正在尝试将以下作业提交给我的游牧服务器。该作业基本上使用有效负载,这是我的localhost中的python文件。
job "agent-collector-bot" {
datacenters = ["staging"]
type = "batch"
periodic {
cron = "*/10 * * * *"
prohibit_overlap = true
}
group "python-bot" {
count = 1
task "slack-bot" {
driver = "raw_exec"
config {
command = "python"
args = ["local/agent-collector-slackbot.py"]
}
dispatch_payload {
file = "agent-collector-slackbot.py"
}
}
}
}
现在,当我看到游牧民族的工作状态时,它说:
snomad status agent-collector-bot /
ID = agent-collector-bot/periodic-1512465000
Name = agent-collector-bot/periodic-1512465000
Submit Date = 12/05/17 14:40:00 IST
Type = batch
Priority = 50
Datacenters = staging
Status = pending
Periodic = false
Parameterized = false
Summary
Task Group Queued Starting Running Failed Complete Lost
python-bot 1 0 0 0 0 0
Placement Failure
Task Group "python-bot":
* Constraint "missing drivers" filtered 5 nodes
我检查了我的游牧客户(全部5个)正在使用python ..有人可以帮帮我吗?
答案 0 :(得分:2)
输出中指定的驱动程序是raw_exec
,而不是python。
您需要在客户端配置(nomad raw_exec docs)
中启用它client {
options = {
"driver.raw_exec.enable" = "1"
}
}