The official wrk docker image.
Maintained by: openEuler CloudNative SIG.
Where to get help: openEuler CloudNative SIG, openEuler.
Current wrk docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.
wrk is a modern HTTP benchmarking tool capable of generating significant load when run on a single multi-core CPU. It combines a multithreaded design with scalable event notification systems such as epoll and kqueue.
The tag of each wrk docker image is consist of the version of wrk and the version of basic image. The details are as follows
| Tag | Currently | Architectures |
|---|---|---|
| 4.2.0-oe2403sp4 | wrk 4.2.0 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| 4.2.0-oe2403sp1 | wrk 4.2.0 on openEuler 24.03-LTS-SP1 | amd64, arm64 |
In this usage, users can select the corresponding {Tag} based on their requirements.
Pull the openeuler/wrk image from docker
docker pull openeuler/wrk:{Tag}
Run with an interactive shell
You can start the container with an interactive shell to use wrk.
docker run -it --rm openeuler/wrk:{Tag} bash
Start a simple HTTP server
In the directory containing you index.html file, run:
nohup python3 -m http.server 8080 &
8080.nohup and & allow the sever to keep running in the background.Run a stress test using wrk
Once the server is running, use wrk to generate HTTP load:
wrk -t12 -c400 -d30s http://127.0.0.1:8080/index.html
Options:
-t12: Use 12 threads to generate load.-c400: Use 400 open HTTP connections.-d30s: Run the test for 30 seconds.http://127.0.0.1:8080/index.html: Target URL to test.If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.
Content type
Image
Digest
sha256:bae34504f…
Size
410.2 MB
Last updated
2 months ago
docker pull openeuler/wrkPulls:
5
Last week