mesosphere/marathon — pull request #384 by guenter (2014-07-11 15:41:28+00:00)
Title: Prefer to use app ports if available in an offer

Marathon currently selects random ports from the range offered by Mesos when launching a task. This PR first tries to select the app ports configured by the users, then falls back to random.

A future change could be to optionally reject an offer if the configured app ports are not available.