Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

metrics: use docker kill rather than docker stop #563

Merged
merged 1 commit into from
Aug 3, 2018

Conversation

grahamwhaley
Copy link
Contributor

For many of our 'used' test containers, issuing a docker stop
actually results in the stop timing out (as it cannot signal the
container to stop for any one of a number of potential reasons),
and then docker reverts to a kill anyhow. The cost of this is a
10s delay per stop, whilst docker times out and then issues the
kill. That costs us heavily when we are doing multi-container tests
using say 20 or 100 containers, as each one takes a 10s overhead
on stop/kill/removing it.

Move all the metrics test stops to be kills.

Fixes: #561

Signed-off-by: Graham Whaley [email protected]

For many of our 'used' test containers, issuing a `docker stop`
actually results in the stop timing out (as it cannot signal the
container to stop for any one of a number of potential reasons),
and then docker reverts to a kill anyhow. The cost of this is a
10s delay per `stop`, whilst docker times out and then issues the
kill. That costs us heavily when we are doing multi-container tests
using say 20 or 100 containers, as each one takes a 10s overhead
on stop/kill/removing it.

Move all the metrics test `stops` to be `kills`.

Fixes: kata-containers#561

Signed-off-by: Graham Whaley <[email protected]>
@jodh-intel
Copy link
Contributor

jodh-intel commented Aug 3, 2018

lgtm

It would be great if we could drop the sleep 3's on the lines below the changes though :)

Approved with PullApprove

@chavafg
Copy link
Contributor

chavafg commented Aug 3, 2018

lgtm

Approved with PullApprove

@grahamwhaley
Copy link
Contributor Author

@jodh-intel - yeah - I need to verify that all the yamux type fixes have made it stable enough to drop those - and didn't have time right now. I thought I had an Issue open for that so we don't forget, but cannot see one. Let me go create....

@GabyCT GabyCT merged commit 3800d6c into kata-containers:master Aug 3, 2018
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.

4 participants