-
Notifications
You must be signed in to change notification settings - Fork 452
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
add a benchmark testcase for measuring the time of creating pod and a container #419
Conversation
Init a slice with length 0, otherwise it will init it with capability as length and the following append operation will append the value and there will be "length" zero value in front. Signed-off-by: Fupan Li <lifupan@gmail.com>
For some hypervisor based containers, it would take much longer time to create a pod, thus it's better expand the tiemout value from 2 to 5 to avoid timeout errors. Signed-off-by: Fupan Li <lifupan@gmail.com>
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
fcce0c8
to
9381fbd
Compare
I signed it |
Hi @Random-Liu |
9381fbd
to
c444bf2
Compare
pkg/benchmark/README.md
Outdated
```sh | ||
go get github.com/kata-containers/runtime | ||
pushd $GOPATH/src/github.com/kata-containers/runtime | ||
git remote add hyper https://github.com/hyperhq/kata-runtime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there deltas between upstream Kata Containers and the hyperhq version still? I'd prefer to see testing done against upstream?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, nice catch. I forgot to update it to master.
Updated.
pkg/benchmark/README.md
Outdated
### Install critest | ||
|
||
```sh | ||
go get https://github.com/lifupan/cri-tools.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question as above - once this lands, the upstream version should suffice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
This PR is not Kata-specific, on the contrary, it introduces some more cases, which are cared about more in the multi-runtime scenarios. For the README file, it described how to test with Kata Containers, which is not directly related with the cases, and should be claimed as an example. |
Add a testcase for measuring the time of creating a pod and container. Signed-off-by: Fupan Li <lifupan@gmail.com>
Hi @Random-Liu Any comments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feiskyer, lifupan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
add a benchmark testcase for measuring the time of creating pod and a container, plus some fixes.