mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Updates for readability
Simplified language and reduced long running lines. Signed-off-by: Kyle Brennan <kylos101@gmail.com>
This commit is contained in:
parent
c3c1d0c2fe
commit
28e53aaf4b
@ -10,9 +10,11 @@ For example, generate load and watch them scale up and down!!!
|
||||
|
||||
## Demo
|
||||
|
||||
From the OpenFaas Portal:
|
||||
|
||||
1. Deploy the `nodeinfo` function
|
||||
2. Deploy this function
|
||||
3. Send a request like through the `hey` function to load test 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
|
||||
@ -20,6 +22,8 @@ For example, generate load and watch them scale up and down!!!
|
||||
|
||||
## 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.
|
||||
* `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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user