Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Insufficient tokens for quota 'administrator' and limit 'CLIENT_PROJECT-100s' of service 'pubsub.googleapis.com' for consumer 'project_number:#'

I sometimes get the following error when creating a subscription:

Insufficient tokens for quota 'administrator' and limit 'CLIENT_PROJECT-100s' of service 'pubsub.googleapis.com' for consumer 'project_number:'

Waiting it out does the trick, but I'd like to increase the quota. In the IAM & Admin section of the Google Cloud Console, I can filter on the Pub/Sub API, but can't find the limit...

like image 822
IAmCoder Avatar asked Jun 07 '17 13:06

IAmCoder


People also ask

How many messages can Pubsub handle?

There is no limit on the number of retained messages. If subscribers don't use a subscription, the subscription expires. The default expiration period is 31 days.

How do I request GPU quota GCP?

To request GPU quota, go to the Google Cloud Console and select the project you want to use. Then, click on the “Menu” icon in the top-left corner and select “APIs & Services”. On the API page, select “Quotas” from the left-hand menu. On the Quotas page, click on the “+ New Quota” button.

What is quota limit?

A disk quota is a limit set by a system administrator that restricts certain aspects of file system usage on modern operating systems. The function of using disk quotas is to allocate limited disk space in a reasonable way.


2 Answers

You are running up against the quota for administrative operations. In the Quotas page, under "Quota type," select "All quotas," then under "Service" select "Google Cloud Pub/Sub API." The quota you want to increase is "Administrator operations per 100 seconds," which you can update up to the maximum allowed limit of 10,000 per 100 seconds, as detailed on the Pub/Sub quota page. Here is a screenshot of the entity you need to update: Google Cloud Console Quotas page

like image 165
Kamal Aboul-Hosn Avatar answered Oct 17 '22 10:10

Kamal Aboul-Hosn


I was hitting a similar error.

I checked the quota section — as per Kamal Aboul-Hosn's suggestion — however it was already maxed out.

A work around was to put a sleep function in the code so the API wouldn't get hammered over a hundred second period. I hope that helps.

like image 1
Sam Perry Avatar answered Oct 17 '22 09:10

Sam Perry