ContainerSolutions / mesos-starter

Home Page:https://container-solutions.com/mesos-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When not using distinct hosts, offers result in duplicate port allocation

philwinder opened this issue · comments

Example config:

spring.application.name=port-bug
mesos.framework.name=port-bug
mesos.zookeeper.server=172.17.0.3:2181
mesos.master=zk://${mesos.zookeeper.server}/mesos
mesos.resources.cpus=0.1
mesos.resources.mem=16
mesos.resources.count=3
mesos.resources.ports.CUSTOM_PORT.host=ANY
mesos.command=echo $CUSTOM_PORT ; sleep 9999999
logging.level.com.containersolutions.mesos=DEBUG

Start with: --spring.config.location=port-bug.properties --debug

Yields three task info's that look like this:

...
slave_id {
  value: "90a9aa65-c913-416a-af4b-213944dbf049-S0"
}
...
resources {
  name: "ports"
  type: RANGES
  ranges {
    range {
      begin: 31000
      end: 31000
    }
  }
}
...

Not a bug.