Add section about memorySize and timeout config for functions

This commit is contained in:
Philipp Muens 2017-03-06 15:25:34 +01:00
parent 4a430e47fa
commit 35a14a9896

View File

@ -59,6 +59,28 @@ functions:
handler: otherHandler
```
## Memory size and timeout
The `memorySize` and `timeout` for the functions can be specified on the provider or function level. The provider wide definition causes all functions to share this config, whereas the function wide definition means that this configuration is only valid for the function.
The default `memorySize` is 256 and the default timeout is `60s` if not specified.
```yml
# serverless.yml
provider:
memorySize: 1024
timeout: 90s
functions:
first:
handler: first
second:
handler: second
memorySize: 512
timeout: 120s
```
## Handler signatures
Google Cloud Functions have different handler signatures dependent on the event type which will trigger them.