An HTTP server that counts the requests.
Run the server, for instance in docker:
docker build . -t dxdtmeter2
docker run --rm -it --net=host -e ADDR=:8080 -e CONTROL_ADDR=:8081 dxdtmeter2
Create the load:
We'll use hey.
go get github.com/rakyll/hey
hey http://127.0.0.1:8080
Read the counter value:
curl http://127.0.0.1:8081/get
Reset the counter value:
curl http://127.0.0.1:8081/reset
Content type
Image
Digest
Size
3.1 MB
Last updated
over 5 years ago
docker pull mozgiii/dxdtmeter2