Hey guys, I was wondering if it’s possible to set maximum function instances of a google cloud function using serverless.yml.
I didn’t find anything on the docs and I’ve already tried adding attribute “maxInstances” to the .yml file but nothing changed.
Since I still haven’t found anything related to this question, I’ll try asking again!
gcloud has this command gcloud functions deploy FUNCTION_NAME --clear-max-instances
but sls
does not seem to have something similar.
Thanks!
I got it work as follow:
functions:
buildNumber:
runtime: nodejs8
handler: http
maxInstances: 1 <-- set it here
events:
- http: path
Hi, do you know if there is an option for minimum instances?
I tried minInstances but it didn’t work.
I’d really appreciate your help:)