Reputation: 1046
Are we able to specify the max instances in the index.js export declaration?
https://cloud.google.com/functions/docs/max-instances
e.g. this
exports.myFunction = functions.region(MY_REGION).https.onCall((data, context) => {
});
Upvotes: 1
Views: 362
Reputation: 598827
This seems to be the magic configuration:
functions
.runWith({ maxInstances: 1 })
...
See: https://github.com/firebase/firebase-functions/pull/624
Upvotes: 2