fn: cpus documentation (#682)

This commit is contained in:
Tolga Ceylan
2018-01-12 14:49:03 -08:00
committed by GitHub
parent 534057c8f7
commit aa17e3b7e0
6 changed files with 33 additions and 10 deletions

View File

@@ -83,6 +83,7 @@ curl -H "Content-Type: application/json" -X POST -d '{
"image": "fnproject/hello",
"type": "sync",
"memory": 128,
"cpus": "100m",
"config": {
"key": "value",
"key2": "value2",
@@ -125,6 +126,10 @@ In `async` functions the request will be ended with a `call_id` and the function
`memory` defines the amount of memory (in megabytes) required to run this function.
#### cpus (string)
`cpus` defines the amount of CPU cores (in MilliCPUs or floating-point number) required to run this function. For example, `500m` for 1/2 CPU cores or `0.5` for 1/2 CPU cores.
#### config (object of string values)
`config` is a map of values passed to the route runtime in the form of