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

[JENKINS-58065] Making ContainerExecProc periodically send a newline to keep a socket alive #513

Merged
merged 2 commits into from
Jun 18, 2019

Conversation

jglick
Copy link
Member

@jglick jglick commented Jun 18, 2019

JENKINS-58065

The deeper issue is that BourneShellScript returns a Proc which does not promptly exit (it will not exit until the user process does), which is wasteful given that the Proc is discarded (we do not check its stdio nor exit code). I do not believe jenkinsci/durable-task-plugin#92 addresses that. Even if that were fixed, this patch could be useful for slow SynchronousNonBlockingStepExecutions (gigantic Git clone, perhaps).

Tested interactively in an AKS cluster.

Copy link
Member

@Vlatombe Vlatombe left a comment

Choose a reason for hiding this comment

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

LGTM

@Vlatombe
Copy link
Member

AFAIU, this timeout is controlled by kubelet

--streaming-connection-idle-timeout duration
Maximum time a streaming connection can be idle before the connection is automatically closed. 0 indicates no timeout. Example: '5m' (default 4h0m0s)

@Vlatombe Vlatombe merged commit 1c6cdac into jenkinsci:master Jun 18, 2019
Vlatombe added a commit that referenced this pull request Jun 18, 2019
@jglick jglick deleted the ContainerExecProc-keepalive branch June 18, 2019 12:44
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