A slim Alpine-based docker image for running ghz load tests.
A good way to use the image with minimal configuration, is to use volumes to mount your proto(s) and config file(s) into the container before executing your call.
This will allow you to call ghz
very easily:
docker run \
--volume "${PWD}/protos:/ghz/protos" \
--volume "${PWD}/config.json:/ghz/config.json" \
obvionaoe/ghz \
--config=/ghz/config.json \
--proto=/ghz/protos/HelloWorld.proto \
--call=helloworld.Greeter.SayHello \
0.0.0.0:50051
This will start the ghz load test.
You can show the help message by running:
docker run obvionaoe/ghz --help
For more information on running ghz, see: https://ghz.sh