Skip to content

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

Open
dperny wants to merge 1 commit intomoby:new-allocatorfrom
dperny:new-allocator-add-node-allocation
Open

[new-allocator] Update new allocator to allocate node attachments as needed#2777
dperny wants to merge 1 commit intomoby:new-allocatorfrom
dperny:new-allocator-add-node-allocation

Conversation

@dperny
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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