Alex Ellis (OpenFaaS Ltd) 77be2f3403 Update to latest Alpine base image
Version alpine:3.13 is now available

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2021-01-31 09:23:55 +00:00
..
2021-01-31 09:23:55 +00:00
2020-03-29 20:26:23 +01:00

Overview

hey is a HTTP load generator..

This is a OpenFaaS Dockerfile function, it wraps hey.

Use it to test your functions!

For example, generate load and watch them scale up and down!!!

Demo

From the OpenFaas Portal:

  1. Deploy the nodeinfo function
  2. Deploy this hey function
  3. Use hey to load test nodeinfo with a request body like this:
-m POST -d '{}' http://127.0.0.1:8080/function/nodeinfo.openfaas-fn

Tips

  • hey does not randomize the request payload
  • hey defaults Content-Type to "text/html"
  • hey requires parameters to be in a certain order
    • For example, if you don't use the order above, the post body may be empty.