Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new-allocator] Update new allocator to allocate node attachments as needed #2777

Open
wants to merge 1 commit into
base: new-allocator
Choose a base branch
from

Conversation

dperny
Copy link
Collaborator

@dperny dperny commented Nov 1, 2018

- What I did

Forward ports the changes in #2725 to the new allocator.

- How I did it

Rewrote portions of the codebase concerned with node allocation.

- How to test it

Includes automated tests

Forward ports the changes in moby#2725 to the new allocator.

Signed-off-by: Drew Erny <drew.erny@docker.com>
service := store.GetService(tx, t.ServiceID)
if service != nil {
services = append(services, service)
// only new tasks need to be allocated. However, if a task
Copy link
Contributor

Choose a reason for hiding this comment

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

Not gonna lie, this 450 line-function is a bit hard to follow... Might be worthwhile to break it up a little bit?

Copy link
Contributor

Choose a reason for hiding this comment

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

(comment on the whole processPendingAllocations func, not just this line)

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.

2 participants