Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

disable yamux keep alive#71

Merged
jodh-intel merged 1 commit intokata-containers:masterfrom
devimc:yamux/fixIODeadline
May 18, 2018
Merged

disable yamux keep alive#71
jodh-intel merged 1 commit intokata-containers:masterfrom
devimc:yamux/fixIODeadline

Conversation

@devimc
Copy link
Copy Markdown

@devimc devimc commented May 17, 2018

We don't know how much time a container can be paused, hence connection
write timeout should be disabled to don't close the connection while
the container is paused.

fixes kata-containers/agent#231
fixes #70

Signed-off-by: Julio Montes julio.montes@intel.com

proxy.go Outdated
// 10 seconds is too early to suspect that a problem with the underlying connection has occurred.
// Since we don't know how much time a container can be paused let's set this timeout to 100 years,
// probably we won't be there when that occurs ;(
sessionConfig.ConnectionWriteTimeout = year * 100
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ha! That made my day! 😄

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LOL !

@devimc is there any way to disable this timeout ? Something like providing 0 or -1 ?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why not disable keepalive directly? 100 years is amazing...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

hahahaha - dahh - good point, let me try xD

@jodh-intel
Copy link
Copy Markdown

jodh-intel commented May 17, 2018

lgtm

Approved with PullApprove

@codecov
Copy link
Copy Markdown

codecov bot commented May 17, 2018

Codecov Report

Merging #71 into master will increase coverage by 0.55%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #71      +/-   ##
==========================================
+ Coverage   35.34%   35.89%   +0.55%     
==========================================
  Files           2        2              
  Lines         232      234       +2     
==========================================
+ Hits           82       84       +2     
  Misses        139      139              
  Partials       11       11
Impacted Files Coverage Δ
proxy.go 31% <100%> (+0.69%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1641414...8cd1037. Read the comment docs.

@devimc devimc force-pushed the yamux/fixIODeadline branch 2 times, most recently from 7f0c3de to 0abecce Compare May 17, 2018 16:49
@devimc
Copy link
Copy Markdown
Author

devimc commented May 17, 2018

changes applied, thanks :)

@devimc
Copy link
Copy Markdown
Author

devimc commented May 17, 2018

let's wait a little for this PR kata-containers/tests#311

We don't know how much time a container can be paused, hence connection
write timeout should be disabled to don't close the connection while
the container is paused.

fixes kata-containers/agent#231
fixes kata-containers#70

Signed-off-by: Julio Montes <julio.montes@intel.com>
@devimc devimc force-pushed the yamux/fixIODeadline branch from 0abecce to 8cd1037 Compare May 17, 2018 20:36
@devimc devimc changed the title proxy: increase connection write timeout disable yamux keep alive May 17, 2018
@devimc
Copy link
Copy Markdown
Author

devimc commented May 17, 2018

kata-containers/tests#311 is green, we can merge it :)

@bergwolf
Copy link
Copy Markdown
Member

What's the benefit of keeping the proxy alive after a sandbox is paused? I think we can just kill the proxy process on pause and start it again when sandbox is resumed.

@devimc
Copy link
Copy Markdown
Author

devimc commented May 18, 2018

@bergwolf good point, did you file an issue for that ?

@jodh-intel jodh-intel merged commit c651693 into kata-containers:master May 18, 2018
@sboeuf
Copy link
Copy Markdown

sboeuf commented May 18, 2018

@bergwolf I am wondering if pausing the sandbox is really the thing to do here. Maybe we should not pause the VM and instead pause the container process directly inside the VM.

mcastelino pushed a commit to mcastelino/tests that referenced this pull request Jan 23, 2019
Check that yamux connection write timeout never occurs.
Connection write timeout occurs only if yamux default
configuration is used to create the client.

Depends-on: github.com/kata-containers/proxy#71

fixes clearcontainers#310

Signed-off-by: Julio Montes <julio.montes@intel.com>
@devimc devimc deleted the yamux/fixIODeadline branch April 25, 2019 21:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

yamux: keepalive failed: i/o deadline reached yamux: keepalive failed: i/o deadline reached

6 participants