Node.js 在index.js中设置函数最大实例限制

Node.js 在index.js中设置函数最大实例限制,node.js,firebase,google-cloud-functions,Node.js,Firebase,Google Cloud Functions,我们是否能够在index.js导出声明中指定最大实例数 e、 g.这个 exports.myFunction = functions.region(MY_REGION).https.onCall((data, context) => { }); 这似乎是神奇的配置: functions .runWith({ maxInstances: 1 }) ... 见:

我们是否能够在index.js导出声明中指定最大实例数

e、 g.这个

exports.myFunction = functions.region(MY_REGION).https.onCall((data, context) => {

});


这似乎是神奇的配置:

functions
    .runWith({ maxInstances: 1 })
    ...
见: