Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Change to launch multiple tasks if offer is big enough #23

Closed
wants to merge 5 commits into from

Conversation

everpeace
Copy link
Contributor

Hi folks,
I've tried to make a patch for #14.

Belows are summary of my patch:

  • AppResource was introduces to compare resources used tasks to be launched. AppResource describes quantities of CPUs and mem and provides some algebra for (CPUs, mem).
  • Attributes of TaskBuilder is now TaskQueue, String=>TaskID.
  • TaskBuilder#buildIfMatched was changed to TaskBuilder#buildUtmostTasksFor. This method fetches as many tasks as possible from taskQueue.
  • newTasks in MarathonScheduler was changes to delegate TaskBuilder#buildUtmostTasksFor.

Could you review my commits and let me have your comments?

newTasks was changed to try to take tasks from taskQueue as many as possible.
…resourced but original offered resource.

To take tasks as many as possible from taskQueue, task should be generated based on remained resource.
…o TaskBuilder.

Consequently, TaskScheduler(taskQueue,newTaskId).buildUtmostTasksFor(offer) was introduced.
}

// AppDefinition can be viewed as AppResource
implicit def AppDefinition2AppResource(app: AppDefinition)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clean up formatting here, use {} for method def and if/else

@everpeace
Copy link
Contributor Author

This branch needs to resolve some conflicts and refactoring for merging to master.
I close this because I've created new pull request #32.

@everpeace everpeace closed this Sep 13, 2013
@guenter guenter deleted the patch/issue-14 branch November 28, 2013 01:09
jasongilanfarr pushed a commit that referenced this pull request Jun 16, 2016
* Make LaunchQueue unopinionated towards AppDefinitions.

* Introduced RunSpec trait
* renamed properties to RunSpec

* Minor changes

* removed unused dependency
* fixed comment
* Fixed potential issue in TaskBuilder

* addressed review comments
aquamatthias pushed a commit that referenced this pull request Jun 17, 2016
* Make LaunchQueue unopinionated towards AppDefinitions.

* Introduced RunSpec trait
* renamed properties to RunSpec

* Minor changes

* removed unused dependency
* fixed comment
* Fixed potential issue in TaskBuilder

* addressed review comments
@marcomonaco marcomonaco added the pr label Mar 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants