mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: cpus documentation (#682)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user