mesosphere / marathon

Deploy and manage containers (including Docker) on top of Apache Mesos at scale.
https://mesosphere.github.io/marathon/
Apache License 2.0
4.07k stars 846 forks source link

Set mesos offer constraints based on app constraints and instances state #7229

Closed asekretenko closed 3 years ago

asekretenko commented 3 years ago

Now, if the flag --use_offer_constraints is set, Marathon will generate Mesos offer constraints from the placement constraints in the RunSpec, taking into account the current active instances in case of UNIQUE and MAX_PER constraints. The offer constraints are passes into Mesos via the UPDATE_FRAMEWORK call; the offer constraints update rate is limited via the --min_offer_constraints_update_interval.

JIRA issues: MARATHON-8764

timcharper commented 3 years ago

fantastic work, @asekretenko !