8000 Add stress test tool by crosbymichael · Pull Request #1331 · containerd/containerd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add stress test tool #1331

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

Merged
merged 1 commit into from
Aug 11, 2017
Merged

Add stress test tool #1331

merged 1 commit into from
Aug 11, 2017

Conversation

crosbymichael
Copy link
Member

This adds a stress binary to help stress test containerd. It is
different from a benchmarking tool as it only gives a simple summary at
the end.

It is built to run long, multi hour/day stress tests across builds of
containerd.

Output:

sudo ./bin/stress -d 20s -c 5
INFO[0000] pulling docker.io/library/alpine:latest      
INFO[0000] generating spec from image                   
INFO[0000] starting stress test run...                  
INFO[0020] worker 0 finished                            
INFO[0020] worker 2 finished                            
INFO[0020] worker 4 finished                            
INFO[0020] worker 1 finished                            
INFO[0020] worker 3 finished                            
INFO[0020] ending test run in 20.134 seconds            
INFO[0020] create/start/delete 150 containers in 20.134 seconds (7.450 c/sec) or (0.134 sec/c)  failures=0

As a side note, i have a 24hr stress test running on an instance for the latest build of containerd+runc.

Signed-off-by: Michael Crosby crosbymichael@gmail.com

This adds a `stress` binary to help stress test containerd.  It is
different from a benchmarking tool as it only gives a simple summary at
the end.

It is built to run long, multi hour/day stress tests across builds of
containerd.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
@codecov-io
Copy link

Codecov Report

Merging #1331 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1331   +/-   ##
=======================================
  Coverage   35.56%   35.56%           
=======================================
  Files          23       23           
  Lines        2874     2874           
=======================================
  Hits         1022     1022           
  Misses       1627     1627           
  Partials      225      225

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 70c2d36...fd75f1e. Read the comment docs.

@estesp
Copy link
Member
estesp commented Aug 10, 2017

Nice; definitely a good tool to have around--this can replace my hacky gist that I use instead of bucketbench for direct stress :)

Copy link
Member
@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@stevvooe
Copy link
Member

LGTM

Does this make sense as a subcommand of ctr?

@crosbymichael
Copy link
Member Author

@stevvooe i think its fine separate. its small and does a very specific job

tctx, cancel := context.WithTimeout(ctx, c.Duration)
go func() {
s := make(chan os.Signal, 1)
signal.Notify(s, syscall.SIGTERM, syscall.SIGINT)
Copy link
Member

Choose a reason for hiding this comment

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

os.Interrupt for windows portability?

Copy link
Member Author

Choose a reason for hiding this comment

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

i don't think it matters to have that with term being there

@crosbymichael crosbymichael merged commit bb44324 into containerd:master Aug 11, 2017
@crosbymichael crosbymichael deleted the stress branch August 11, 2017 15:21
ianlewis pushed a commit to ianlewis/containerd that referenced this pull request Dec 8, 2020
Fix using `http` for localhost, 127.0.0.1 and ::1 by default
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.

5 participants
0