Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Exceeded total max instances in your project when deploying Functions

Hi, recently I got error when deploying Cloud Functions:

You may not have more than 32 total max instances in your project

What is this limit? I found only this in relation to the error, but I don't have anything in AppEngine. I tried deleting all Functions but then I can't deploy some of them, when I reach this limit. 

Best regards

4 3 879
3 REPLIES 3

I got response from the Support that: 

Please know that Cloud Functions enforce a max instance limit per project of 32 for certain projects.

How is this even possible? Instead of those hundred and thousands of instances as claimed I get 32?

Am I supposed to remove 15 Functions that are above this limit? WTF.

That crazy that such a critical issue doesn't sounds the cloud functions team alarm.
I opened an issue in their issue tracker, which already has 20+ upvotes: https://issuetracker.google.com/issues/297544165

and no response.

There is also very active issue in github: https://github.com/firebase/firebase-tools/issues/6298
Also, without any official response. WTF...

So basically it seems that Google started aggressive cost saving  policy limiting instance quota for selected projects using 1st gen functions. From that I gather certain new regions are affected more than others. Temporary solution is to change that region but I opted to migrate to 2nd gen functions where such limits don't apply (because of concurrency I guess). 

I don't mind the change in itself (I was planning to migrate functions in near future) but the way this new policy was implemented is simply appalling - disabling a project without any warning. 

Kinda shows what mindset the company has.