mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Simplified language and reduced long running lines. Signed-off-by: Kyle Brennan <kylos101@gmail.com>
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:
- Deploy the
nodeinfo
function - Deploy this
hey
function - Use
hey
to load testnodeinfo
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 payloadhey
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.