Skip to content

Allocate a conhost during Windows service startup#3450

Merged
crosbymichael merged 1 commit intocontainerd:masterfrom
kevpar:windows-alloc-console
Jul 25, 2019
Merged

Allocate a conhost during Windows service startup#3450
crosbymichael merged 1 commit intocontainerd:masterfrom
kevpar:windows-alloc-console

Conversation

@kevpar
Copy link
Copy Markdown
Member

@kevpar kevpar commented Jul 25, 2019

Creating a console for containerd causes it to be inherited by any child
processes, which gives us performance and reliability improvements. See
comment in code for more information.

Another option considered here would be to invoke each child process
with the DETACHED_PROCESS flag. This would save us the containerd
console allocation. The difficulty of this approach would be ensuring
that all process invocation points have had this flag added, and that
any future invocations also use the flag.

Signed-off-by: Kevin Parsons [email protected]

Creating a console for containerd causes it to be inherited by any child
processes, which gives us performance and reliability improvements. See
comment in code for more information.

Another option considered here would be to invoke each child process
with the DETACHED_PROCESS flag. This would save us the containerd
console allocation. The difficulty of this approach would be ensuring
that all process invocation points have had this flag added, and that
any future invocations also use the flag.

Signed-off-by: Kevin Parsons <[email protected]>
@jterry75
Copy link
Copy Markdown
Contributor

@crosbymichael - Never seen the vendor script timeout before :)

Copy link
Copy Markdown
Contributor

@jterry75 jterry75 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 think this is the right approach over adding this to every cmd invocation. Containerd is a distributed model based on process activation for many things so simply inheriting the conhost seems a good approach which your comment makes clear. Thanks

@kevpar kevpar marked this pull request as ready for review July 25, 2019 17:22
@kevpar
Copy link
Copy Markdown
Member Author

kevpar commented Jul 25, 2019

FYI: We're still investigating the underlying issue that is causing these conhost launches to fail. But even if that were fixed, this is still a righteous change as we won't waste time creating conhosts when we don't actually want them.

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

@crosbymichael crosbymichael merged commit 2190c0e into containerd:master Jul 25, 2019
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.

3 participants