mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +00:00
Use it to do load testing and observe scaling. 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
- Deploy the
nodeinfo
function - Deploy this function
- Send a request like through the
hey
function to load test thenodeinfo
function
-m POST -d '{}' http://127.0.0.1:8080/function/nodeinfo.openfaas-fn
Tips
hey
does not randomize the request payload, there's nothing saying you cannot call it a bunch with different payloads, though.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.