Geoffroy Jabouley created MESOS-4022:
----------------------------------------
Summary: Slave ports range resource syntax is not intuitive for a
specific port
Key: MESOS-4022
URL: https://issues.apache.org/jira/browse/MESOS-4022
Project: Mesos
Issue Type: Improvement
Components: slave
Affects Versions: 0.25.0
Environment: Ubuntu 14.04 LTS
Reporter: Geoffroy Jabouley
Priority: Minor
Current Mesos slave range syntax for resources is not intuitive, and can
sometimes lead to unexpected results.
Let's say i want to offer ports:
* 10000
* 30000 to 31000
* 50000
Current correct syntax is: *[10000-10000,30000-31000,50000-50000]*
A more logical syntax would be: *[10000,30000-31000,50000]*
Some potential side effects of the actual syntax
||Resource syntax||Resulting offer||Expected offer||
|[31000-33000,50000]|ERROR|{noformat}ports(*):[31000-33000,50000]{noformat}
|[10000,31000-33000,50000]|{noformat}ports(*):[10000-50000]{noformat}|{noformat}ports(*):[10000,31000-33000,50000]{noformat}
|[31000-33000,50000,50010]|{noformat}ports(*):[31000-33000,
50000-50010]{noformat}|{noformat}ports(*):[31000-33000, 50000, 50010]{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)