https://github.com/kunalkushwaha/ctr-powertest
container runtime testsuite
https://github.com/kunalkushwaha/ctr-powertest
containerd containers cri crio testing-tools
Last synced: 6 months ago
JSON representation
container runtime testsuite
- Host: GitHub
- URL: https://github.com/kunalkushwaha/ctr-powertest
- Owner: kunalkushwaha
- License: mit
- Created: 2017-08-15T12:45:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-04T02:10:14.000Z (about 8 years ago)
- Last Synced: 2024-06-20T12:37:56.921Z (about 2 years ago)
- Topics: containerd, containers, cri, crio, testing-tools
- Language: Go
- Homepage:
- Size: 7.61 MB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ctr-powertest - _Container runtime test tool_
--------------
Easy and extensible tool for any OCI supported container runtime.
Useful to run same testcases on supported runtimes.
Currently supports
- [containerd](https://github.com/containerd/containerd)
- Status : WIP
- ``Containerd`` support is 80% completed.
- [k8s CRI](http://blog.kubernetes.io/2016/12/container-runtime-interface-cri-in-kubernetes.html)
- Any runtime that implementes Kubernetes Container Runtime Interface
- __Tested for cri-containerd & cri-o__
- Status : WIP
- ``CRI`` support is 60% completed.
Usage:
`` ctr-powertest -p [-r ] [flags] [args]``
Usage Example:
`` ctr-powertest -p cri -r cri-containerd stress -t image-pull``
Examples
```
$ sudo ./ctr-powertest -p containerd basic
INFO[0000] Running tests on containerd v1.0.0-beta.1-23-g70b353d.m
INFO[0000] TestPullContainerImage..
INFO[0000] OK..
INFO[0000] TestCreateContainers..
INFO[0000] OK..
INFO[0000] TestCreateRunningContainers..
INFO[0000] OK..
INFO[0000] TestCreateRunningNWaitContainers..
INFO[0006] OK..
$ sudo ./ctr-powertest -p cri -r cri-containerd basic
INFO[0000] Running tests on &VersionResponse{Version:0.1.0,RuntimeName:cri-containerd,RuntimeVersion:1.0.0-alpha.0-35-gd50c610-dirty,RuntimeApiVersion:0.0.0,}
INFO[0000] TestPullContainerImage..
INFO[0003] OK..
INFO[0003] TestCreateContainers..
INFO[0006] OK..
INFO[0006] TestCreateRunningContainers..
INFO[0008] OK..
INFO[0008] TestCreateRunningNWaitContainers..
INFO[0011] OK..
```
Usage:
```
$ sudo ./ctr-powertest --help
container runtime testing tool
Usage:
ctr-powertest [flags]
ctr-powertest [command]
Available Commands:
basic runs basic tests
profile profile container operations.
stress Run container tests in parallel (Stress Test)
Flags:
-d, --debug debug mode
-p, --proto string Protocol [ containerd, cri ] (default "containerd")
-r, --runtime string CRI-Runtime [ cri-containerd, crio ] (default "cri-containerd")
```
#### Performace:
##### Running performance test
Performace test can be directly run on system by running following commands
_it build and run ``crio`` & ``cri-containerd`` in docker container_
_(original idea [cri-containerd-flame](https://github.com/cpuguy83/cri-containerd-flame))_
```
make crio
make cri-containerd
```

* _All using same runc version_
#### Important TODO:
- Implement ``Exec`` interface for CRI and containerd.
- Implement ``Wait`` & ``Kill`` for CRI
Contribution , Feedback and reviews are welcome :).