The current implementation of mesos constraints introduced in
SPARK-6707 rejects offers not matching the constraints with default refuseDuration of 5 seconds.
Even though spark will never launch tasks on these offers, mesos keeps sending the same offers again every 5 seconds making them unavailable for other frameworks.
Spark should reject those offers for a longer period of time to prevent offer starvation when running a lot of frameworks.
- links to