我有一个通过公共ip可用的mesos主机。
我有一个奴隶提供一些资源。
我试着部署一个小应用程序,但没有响应
25646:[2016-12-13 15:26:57,440] INFO Offer [bd40f00f-ce24-4014-b1b1-82db64e68c10-O92]. Considering resources with roles {*} without resident reservation labels. Insufficient ports in offer for run spec [/nginx-test-n2] (mesosphere.marathon.tasks.PortsMatcher:marathon-akka.actor.default-dispatcher-1073)
25647:[2016-12-13 15:26:57,440] INFO Offer [bd40f00f-ce24-4014-b1b1-82db64e68c10-O92]. Insufficient resources for [/nginx-test-n2] (need cpus=0.2, mem=32.0, disk=0.0, gpus=0, ports=(), available in offer: [id { value: "bd40f00f-ce24-4014-b1b1-82db64e68c10-O92" } framework_id { value: "40aadcc7-8e0f-4634-af46-29d9c33bc03e-0000" } slave_id { value: "bd40f00f-ce24-4014-b1b1-82db64e68c10-S1" } hostname: "myproj-slave-vm-1" resources { name: "disk" type: SCALAR scalar { value: 3985.0 } role: "*" } resources { name: "cpus" type: SCALAR scalar { value: 0.6 } role: "*" } resources { name: "mem" type: SCALAR scalar { value: 6478.0 } role: "*" } url { scheme: "http" address { hostname: "myproj-slave-vm-1" ip: "10.1.10.20" port: 5051 } path: "/slave(1)" }] (mesosphere.mesos.TaskBuilder$:marathon-akka.actor.default-dispatcher-1073)
一旦展开就是:
25628:[2016-12-13 15:26:52,425] INFO Offer [bd40f00f-ce24-4014-b1b1-82db64e68c10-O91].
Insufficient resources for [/nginx-test-n2] (need
cpus=0.2,
mem=32.0,
disk=0.0,
gpus=0,
ports=(),
available in offer:
[id {
value: "bd40f00f-ce24-4014-b1b1-82db64e68c10-O91"
}
framework_id {
value: "40aadcc7-8e0f-4634-af46-29d9c33bc03e-0000"
}
slave_id {
value: "bd40f00f-ce24-4014-b1b1-82db64e68c10-S1"
}
hostname: "myproj-slave-vm-1"
resources {
name: "disk"
type: SCALAR scalar {
value: 3985.0
}
role: "*"
}
resources {
name: "cpus"
type: SCALAR scalar {
value: 0.6
}
role: "*"
}
resources {
name: "mem"
type: SCALAR scalar {
value: 6478.0
}
role: "*"
}
url {
scheme: "http"
address {
hostname: "myproj-slave-vm-1"
ip: "10.1.10.20"
port: 5051
}
path: "/slave(1)"
}
]
我不明白为什么马拉松说'资源不足',因为从日志上看,似乎有足够的。。。
1条答案
按热度按时间3b6akqbq1#
我通过添加
resources=ports:[1-65000]
到代理执行命令: