Skip to content

Conversation

@ssalinas
Copy link
Member

@ssalinas ssalinas commented May 1, 2019

While looking into some odd offer issues, I noticed that our invocations of checking offers differed slightly between the SchedulerImpl and the SchedulerPoller. This does two things:

  • Consolidates all offer evaluation logic for new and cached offers in the SingularityMesosOfferScheduler class, so the same logic is called in all places
  • Moves the drainPendingQueue operation to only the scheduler poller, since there is no need to call it on every offer run (which can be multiple times a second), making offer evaluation a bit more efficient
  • Add logging on all possible offers that were used to launch a task so we have a better record of all of them

@ssalinas ssalinas added the hs_qa label May 22, 2019
@baconmania
Copy link
Contributor

🚢

@ssalinas ssalinas merged commit f1b2960 into master Jun 7, 2019
@ssalinas ssalinas deleted the revisit_offer_cache branch June 7, 2019 15:51
@ssalinas ssalinas added this to the 0.23.0 milestone Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants