Why does this happen: Quota 'N2_CPUS' exceeded. Limit: 24.0 in region us-central1 - google-compute-engine

I got the error when trying to create a 64 CPU compute engine. However, looking at the Quota (IAM & Admin), I see the quota at 72. Does anyone know why this is happening and what I can do about it? Thank you very much!

There is a quota set for each of the separate machine types (N1, N2, N2D, etc). You can see your current quotas for this by running:
gcloud compute regions describe --project=PROJECT_ID [REGION]
See the Compute Engine quota documentation. You can then submit a request to increase this quota by going to the Quotas page in the console. Navigate by clicking the Metric pull down and click "None" to clear everything, then type "N2" and select the "N2 CPUS", then click the Location drop down to select the regions you care about. Check the appropriate boxes, then click Edit Quotas and follow the instructions. Typically the quota gets changed within ~2 days.

As this request is quite high and needs capacity planning with our sales team, same with your request for N2_CPUS. We recommend for you to contact sales team [1] for capacity planning, and we will be happy to have someone contact you.
[1] https://cloud.google.com/contact/

Related

Google Cloud Platform : increase the quota above the default

I'd like to increase the quota for access to my APIs.
Looking around, I found this link,
but the information does not satisfy my needs.
Google Cloud Platform limits me with very low numbers, and when trying to increase the quotas in specific ones that I desire, I am not allowed, I am asked to click on
  "... For values above 2,400, sign up for a higher quota" and click to go to this page https://cloud.google.com/contact/
On this page I have no specific form for this service or guidance.
My account is an upgrade account - with billing possible.
how can I have this increase - above the number set by google, to meet my needs?
To address this kind of issues, please file a support case via https://console.cloud.google.com/google/maps-apis/support in order to open personalized communication channel.
This is the correct channel for these kind of queries as it needs account investigation.

New Google Maps Platform - How do I set my own usage limits?

In their notifications about the new billing system for the Google Maps APIs, Google very clearly state that you "can set usage limits to protect against unexpected increases". However, I haven't found any documentation regarding how to set these usage limits against an API key. Does anyone know how to do this?
To clarify, I would like to set my own daily usage limits against my API key to prevent it ever going over the free threshold for the static maps API.
I understand Google means that you can set your custom daily quota for each individual API in order to stay within free 200$, not a global per API key/project/Billing account daily quota. As far as I know there is no such thing as limit per daily usage in $ per Billing account yet.
There are alerts that you can establish in your Billing account and receive notifications if your usage is close to the defined budget. Have a look at the following document that explain how to set alerts:
https://cloud.google.com/billing/docs/how-to/budgets?hl=en
If your project uses only Static Maps API, it is easy to set daily quota to stay within 200$ per month. The price sheet says that you can have up to 100 000 free requests per month. That means 100 000 / 31 = 3225 free requests per day. You can go to Quota section of Static Maps API in your project
https://console.developers.google.com/google/maps-apis/apis/static-maps-backend.googleapis.com/quotas?project=YOUR_PROJECT_ID&duration=PT1H
and change your daily quota as shown in my screenshots
edit number requests per day
and you are set.
I hope this helps!
OK a bit late for reply, but maybe somebody else can use this.
You do get tons of free map hits etc.
If you don't link a pay account, then you are limited to 1 hit per day (that's google maps) which is useless. All other quotas like 10000 per 100 sec etc are secondary to the 1 hit per day.
Now once you have linked your pay account or a Credit Card etc, to google development console then you get full quota for free user, plus more if you go over your quota covered by your Credit Card.
However don't panic, for first year it's all free and you get $300 (at this moment) worth of free stuff.
Even if you go over this limit Google will first ask you if you wish to change to payment system or continue with free.
If you decide to pay then you will be charged per indicated on google dev site.
If you decide to go with free option then the service to your site will stop until next rotation, i.e. day or month etc depending on service.
see this table.
Unless you have millions of hit on your map page or app, then the free quota is more than enough for normal sites.
Here is a price calculator by google.
As you see you get a lot of unlimited stuff and some paid if you go over your recurring credit of $200 or $300
Google makes it so complicated because it involves people coming from old system and those registering between roll over etc.
perhaps this will help too.
You can also set budgets and alerts just in case you go over budget (via Billing section of dev site)
So in short :) you get tons of free and if you have a lot of visitors the surely you make some money to pay for the services.
Note that google charges for all their API services in 1 place so if you use say Geocoding and firebase and cloud dev etc then you will soon start paying.
Sorry for any typos, I did this fast.
Capping API Usage
Depending on the API, you can explicitly cap requests in a variety of ways, including: requests per day, requests per 100 seconds, and requests per 100 seconds per user.
You might want to limit the billable usage by setting caps. For example, to prevent getting billed for usage beyond the free courtesy usage limits, you can set requests per day caps.
For more info, check this doc: https://cloud.google.com/apis/docs/capping-api-usage

Can I stop google billing me if I reach my free api limit

Apparently google now require you to give them billing details for using there google maps on your web site. If I understand it correctly you get $200 free allowance and after that they start charging you.
Is there a way to say to google, don’t charge me after the free $200 and just stop displaying the map?
There is no way to do that.
The only 2 things available now is to:
Based on your monthly usage, calculate approximately your daily usage (per API) and set daily limits. You can do so by going to the API Console, select an API, navigate to the Quotas tab, and edit the daily or per-second quotas. You can use this Calculator.
Set billing budgets and alarms.
To control your spend, you can set billing budgets and alarms so that you are notified when your usage reaches a given budget. Here’s how.
Be noticed that these alarms are only "an alarm based on a budget", they won't stop the usage from your project.
I asked about this in the Cloud support, and they told me this:
You can use Programmatic Budget Notifications in order to perform
custom actions when reaching spend thresholds. For instance, you can
disable billing on your project when reaching the free tier limit.
https://cloud.google.com/billing/docs/how-to/notify
Note this will disable the billing completely and can even cause your Cloud projects to be deleted!
See the warning:
This example removes billing from your project, shutting down all resources. Resources might not shut down gracefully, and might be irretrievably deleted. There is no graceful recovery if you disable billing. You can re-enable billing, but there is no guarantee of service recovery and manual configuration is required.
Some things may be outside your control. Google support has confirmed to me that their own bot hits count towards billable maps API usage. So they decide the level of spidering, and then charge for it.
I believe this is called the "Fish in a Barrel" business model

Is the pingdom uptime monitor increasing my GA bounce rate

I've been looking at my Google analytics account and noticed a surge in the bounce rate. Is it possible the PINGDOM uptime monitor is causing this increase? There seems to be a correlation between the two.
Many thanks
That is very likely since Pingdom's uptime monitor makes a HTTP(S) call to page(s) on your website to verify that they're up. You can avoid this simply by excluding their IP addresses from being logged as visits by Google Analytics by adding them to GA's exclusion list, as documented in the Google Analytics help pages.
I think it cant increase your bounce rate. cause analytics filtering bots, but if you sure that pingdom run analytics.js and was not filtering by default, you can add they domain/ip in custom filter (in view).
As a first step, you could check, if increased bounce rate can be credited to any traffic sources. This might already be linked to Pingdom as a referrer. You should also check with Pingdom FAQ or Support, whether they run your scripts during their measurements. E.g. this product or product feature of theirs claims to run javascripts.
If scripts are executed during measurement, then Analytics scripts are also very likely to executed, and therefore a call will be made to GA servers for your site. In this case, solutions mentioned in other responses can be used, e.g. filterin based on traffic source's domain or IP.
If scripts are not run, then you'll have to look for other reasons behind. Again, traffic source base breakdown of bounce rate could be a good place to start.

Documents List API authorizes less than 10 requests/second?

I am forced to use the Documents List API (and not the Drive SDK) because I need exact info about the ACLs, while the Drive SDK usually only provides the first/last name in the ACL info.
I am processing more than 1 million docs for which I need the ACLs. However, I discovered that when I try to perform more than 10 requests/second, I get "Request rate limit exceeded" errors from the Documents List API.
The answer to this question makes me think that the quota is supposed to be much bigger, can anyone confirm ?
You might want to double check in google apis that you have set it up to 10 requests a second by default its set lower then that. The Max you can set it to is 10 requests a second there is nothing you can do to change that. Its probably to prevent you from flooding the server.
If you do encounter the error you can Implementing exponential backoff and then try again after the alloted time has passed.
You could try batching as described here https://developers.google.com/google-apps/documents-list/#batching_resource_operations_into_a_single_request
My experience when using the Drive SDK equivalent wasn't great, ie. I got "rate limit exceeded" at the same rate as with individual requests. However since you're using the older API, you might have more luck.