Skip to content

Move resource managemnt to be the responsibility of the TaskRunner#1953

Merged
nishantmonu51 merged 1 commit intoapache:masterfrom
metamx:taskRunnerResourceManagement
Jan 20, 2016
Merged

Move resource managemnt to be the responsibility of the TaskRunner#1953
nishantmonu51 merged 1 commit intoapache:masterfrom
metamx:taskRunnerResourceManagement

Conversation

@drcrallen
Copy link
Copy Markdown
Contributor

@drcrallen drcrallen added this to the 0.9.0 milestone Nov 11, 2015
@drcrallen
Copy link
Copy Markdown
Contributor Author

Net reduction in lines... SCORE

@drcrallen
Copy link
Copy Markdown
Contributor Author

I'll rebase after preliminary review.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

similar to getWorkers() , getScalingStats() is also tied to some specific TaskRunners and ScalingStat looks like related much more to autoscaling . not sure if we are introducing same kind of coupling again via this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My issue here is how to handle io.druid.indexing.overlord.http.OverlordResource#getScalingState

This is intended to be a baby step

@himanshug
Copy link
Copy Markdown
Contributor

looks OK given that there is a need for this. I am assuming you need this to implement "Tiered" TaskRunner .

@nishantmonu51
Copy link
Copy Markdown
Member

looks good to me, will check again when rebased.

@drcrallen drcrallen force-pushed the taskRunnerResourceManagement branch from aa6860e to 5713ae9 Compare December 18, 2015 23:56
@drcrallen
Copy link
Copy Markdown
Contributor Author

@nishantmonu51 / @himanshug Fixed merge conflicts

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

will revert this. It modifies the pending task exec from non-daemon to daemon

@drcrallen
Copy link
Copy Markdown
Contributor Author

@nishantmonu51 / @himanshug Fixed merge conflicts any other comments?

@fjy
Copy link
Copy Markdown
Contributor

fjy commented Jan 13, 2016

I would like to look this over before this gets merged. We choose to move the resource management out of the TaskRunner for several reasons and this PR is moving it back.

@drcrallen
Copy link
Copy Markdown
Contributor Author

@fjy Sure. I spoke with @gianm about it one day, so this isn't completely out of the blue.

@drcrallen
Copy link
Copy Markdown
Contributor Author

@fjy but this PR has been up for 2 months, and I have mentioned it multiple times in dev syncs. If you are going to review it please do it promptly.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

isn't above code already done in INITIALIZED and is duplicate ? possibly introduced while fixing conflicts ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

probably, yes. fixing

@nishantmonu51
Copy link
Copy Markdown
Member

looks pretty good to me, only few minor nitpicks and #1953 (comment)

@drcrallen drcrallen force-pushed the taskRunnerResourceManagement branch from 4a6b4f1 to 976d4c9 Compare January 13, 2016 18:38
@drcrallen
Copy link
Copy Markdown
Contributor Author

@nishantmonu51 fixed comments

@fjy
Copy link
Copy Markdown
Contributor

fjy commented Jan 13, 2016

I think moving resource mgmt back to the taskrunner is fine. At first we were thinking that we might replace remote task runner with something else, but if task tiering is blocking on this, I am fine with the changes. @gianm any thoughts?

@nishantmonu51
Copy link
Copy Markdown
Member

👍

@gianm
Copy link
Copy Markdown
Contributor

gianm commented Jan 20, 2016

This looks good to me, I think it makes sense for the autoscaling to be folded into the task runner, since in practice they ended up being really tightly coupled anyway. Removing getWorkers from the interface makes sense to me too since that was something that only made sense for the RTR.

👍

nishantmonu51 added a commit that referenced this pull request Jan 20, 2016
Move resource managemnt to be the responsibility of the TaskRunner
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.

6 participants