Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Function killed. Error: quota exceeded [closed]

Im working with Firebase's cloud functions on the Spark Plan.

I'm using a cronJob to invoke a function every 2 min.

I have recently gotten this error:

Function killed. Error: quota exceeded

When trying to deploy I get a similar error:

Deploy Error: Function load error: Error: quota exceeded

I know there is a quota on the spark plan but my stats are as follows:

118 Executions

207 Total invocations

The spark plan says you get 125,000/month free invocations is there a limit of executions? Ive tried deploying a new function but I get the same errors.

What quota am I exceeding?

like image 952
huddie96 Avatar asked Mar 20 '17 13:03

huddie96


1 Answers

Thanks for raising this question, it's something that should be covered better in the Firebase documentation.

You're correct that the Spark plan has a 125,000/month free function invocation limit. In addition however (and currently still unmentioned in the docs) there's per-day and a per-100-seconds limits too:

  • You can have 5000 function invocations per day.
  • You can have 50 function invocations per 100 seconds.

If these per-day or per-100s quotas are problematic for you, I suggest upgrading and using the free quota in the pay-as-you-go Blaze plan. You'll get even more free access (two million (!) invocations free), and all these quotas practically go away (only some abuse protections remaining).

like image 156
Robert-Jan Huijsman Avatar answered Oct 28 '22 21:10

Robert-Jan Huijsman