Skip to content

[manager/allocator] Logging for allocation workflows#2614

Merged
cyli merged 1 commit into
moby:masterfrom
anshulpundir:logs
May 1, 2018
Merged

[manager/allocator] Logging for allocation workflows#2614
cyli merged 1 commit into
moby:masterfrom
anshulpundir:logs

Conversation

@anshulpundir
Copy link
Copy Markdown
Contributor

@anshulpundir anshulpundir commented Apr 27, 2018

This is to help debug some of the recent issues around tasks stuck in state "new", desired state "running".

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2018

Codecov Report

Merging #2614 into master will increase coverage by 0.07%.
The diff coverage is 59.25%.

@@            Coverage Diff            @@
##           master   #2614      +/-   ##
=========================================
+ Coverage   61.72%   61.8%   +0.07%     
=========================================
  Files         134     134              
  Lines       21770   21781      +11     
=========================================
+ Hits        13438   13462      +24     
+ Misses       6884    6875       -9     
+ Partials     1448    1444       -4

Copy link
Copy Markdown
Contributor

@nishanttotla nishanttotla left a comment

Choose a reason for hiding this comment

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

LGTM.

I don't know that it's a big deal, but maybe this will also be covered in the allocator rewrite? @dperny

@dperny
Copy link
Copy Markdown
Collaborator

dperny commented Apr 30, 2018

In the allocator rewrite, everything will be returned as errors from the lower level, and logged at the very top level.

Copy link
Copy Markdown
Contributor

@cyli cyli left a comment

Choose a reason for hiding this comment

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

LGTM, although maybe in the method name would we want to include the Allocate object? So something like (*Allocator).allocateTasks, similar to how the dispatcher log messages look?

Signed-off-by: Anshul Pundir <anshul.pundir@docker.com>
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.

4 participants