Details
-
Bug
-
Status: Accepted
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
mesos-execute cannot be used to run tasks on reserved resources, e.g., and invocation
$ mesos-execute \
--resources=disk(some/role):32;cpus:0.1;mem:32 \
--command=true \
--name=<NAME> \
--role=some/role \
--master=<MASTER>
will not be able to use disk resources reserved to some/role.
This is due to the way mesos-execute performs its offer matching, e.g., as of 9af920c75d1
if (!launched && offered.toUnreserved().contains(requiredResources)) {
Any reservations are stripped from offers before matching against the required resources.
We should update mesos-execute so it can make use of reserved resources.