serverless-google-cloudfunctions icon indicating copy to clipboard operation
serverless-google-cloudfunctions copied to clipboard

Add max number of invocations per function

Open teddy-codes opened this issue 6 years ago • 1 comments

Within the google cloud CLI, we are able to specify --max-instances, but within serverless I cannot find an option to do so.

Reference: https://cloud.google.com/functions/docs/max-instances

teddy-codes avatar Aug 01 '19 03:08 teddy-codes

You can add maxInstances in the serverless.yaml file now.

eg:

functions:
  my-function:
     handler: my-exported-function-name
     events: 
        - http: path
     maxInstances: 10

profoundpanda avatar Jan 07 '21 11:01 profoundpanda