I discovered that my pure App-Engine project (no Compute Engine Instances at all) is heavily using Google Compute Engine API (26,165 requests) but that is not visible as API use on the dashboard. Additionally, in Quotas I find strange items:
Google Compute Engine Networks Global 1 / 15
Google Compute Engine Firewall rules Global 2 / 200
Google Compute Engine Routes 2 / 250
I could disable the Compute Engine API, but I fear consequences if I don't understand what I am doing here.
Does anyone know further details or experience something similar?
PS: I also noticed that old deployed versions of my appengine-code from 2013 showed up, which I have deleted again.
My app is a standard env python one.
I do see the quotas you mentioned in the IAM & Admin Quotas page, but with different limits:
Google Compute Engine Networks Global 1 / 5
Google Compute Engine Firewall rules Global 4 / 100
Google Compute Engine Routes 2 / 200
I suspect that these are automatically driven by the standard env GAE infra (as opposed to being configured by the app itself for the flex env). Their visibility might not be intentional, tho.
I do see a few GCE API calls as well (but then my app is not very active) on the API Manager page:
Google Compute Engine API 17
I accidentally clicked on this API's Disable button and got this warning (potentially hinting at what this API is used for):
Disable Google Compute Engine API
Code that uses this project's keys, client IDs, or service accounts
will not be able to call this API.
Do you want to disable this API: Google Compute Engine API?
By clicking on the actual Google Compute Engine API text/link and then to the Quota tab I can see:
Queries per day Unlimited
Queries per 100 seconds 2,000
Queries per 100 seconds per user 2,000
My peak over the last 30 days is 15, so I won't worry about it :)
I do not see any unexpected older app version.
Related
My service sends messages to users, and I want to throttle on the following criteria; Saying a user A belongs to group G.
max 5 messages within last hour to user A
max 100 messages with last hour to members belong to group A
The number of messages and floating window size are configurable.
Any recommended options?
Is Cloud Endpoints an option?
Apigee is too expensive for our service.
More Background:
use app engine standard environment python2.7
the request is internal; a app engine service send request to another app engine service
Thanks in advance.
You can use API Gateway with App Engine instead of Apigee or Cloud Endpoints API Gateway quotas, it provides support for Python 2.7 and supports quotas like the ones you need.
What is the maximum number of services that an App Engine Flex app can have?
I found this site, under limits is the max number of services 5. Is this correct?
The Maximum services per application that the documentation you linked refers to are Backend services. The limit is the number of backend services available to the GAE flex application. This applies to running versions of GAE.
Also, regarding the last part of the limits documentation:
If you expect a notable upcoming increase in usage, you can proactively request adjustments from the App Engine Quotas page in the GCP Console.
This means that you can request an increase for the maximum services your application have access to by going to the GCP Quotas page and selecting Compute Engine API as Service. In the list of quotas you'll find the Backend services quota. With the current usage and the current limit. Select it and click Edit quotas to request an increase.
I have a piece of code, based on NodeJs, that does not serve any HTTP request, but monitors some online systems and sends report emails.
This code is run by a shell script and keeps running 24x7.
Which Google Cloud offering is best suited to host this?
I tried with App Engine, but after one hour of console inactivity, the console exists and the script stops running.
I am not sure if Compute Engine would be best for this. I can host this in AWS EC2, it would work there... but wondering about Google.
Any tips appreciated.
Thanks
This can be done with a simple Python app running in App Engine Standard Platform. See this post for details.
If you're able to modify it so it can run periodically you could run it on AWS Lambda with a schedule as trigger and use SES to send out e-mails.
Alternatively, if you have control over the "online systems", you could use CloudWatch custom metrics and create alerts based on the thresholds of your metrics.
If you must use Google Cloud, you could use Google Cloud Functions instead of AWS Lambda, and Google Cloud Monitoring / Logging.
The second version of Google Cloud Functions can run for up to 60 minutes (thanks to Google Cloud Run).
To sum up on GCP:
Google Cloud Functions 1nd: 9 mins
Google Cloud Functions 2nd: 60 mins
Google Cloud Run: 60 mins
Google App Engine: 10 minutes (Automatic scaling) and 24 hours (Basic scaling)
Google Compute engine : infinite (you manage the VM)
On February 23rd I received an email that they are turning down the App Engine Admin Console and moving to Cloud Platform Console, then on February 25th I received this in email:
Your Google Cloud Platform project(s): MY_PROJECT_ID [Project Number(s):
MY_PROJECT_NUMBER ] has/have been in the billing disabled state for more
than 200 days. All related Google Compute Engine resources are
scheduled to be deleted in as soon as 7 days.
If you take no action within 7 days, you will be unable to recover any
resources under Google Compute Engine in this project. If disabling
billing was unintentional, please follow the online instructions and
re-enable billing for this project within 7 days to avoid the project
clean up.
I received this for just one app and I have no idea what is going on. I'm nowhere near exceeding free quota on this app, I get less than 100 visits a month.
By reading their new billing pages I see that they still have free quota, so why would they delete my app and why just one out of four apps that I have?
The email does not say that they are deleting your App Engine app. They will be deleting Compute Engine resources associated with this app.
You do not need Compute Engine for App Engine. You may not be using Compute Engine at all and may have started some Compute Engine resources by accident.
...and on the next day they wrote...
The email quoted below was sent to some Google Cloud Platform
customers in error.
If you do not use Google Compute Engine, you can safely ignore that
message. We apologize for any confusion this has caused. We received
feedback from many customers who do not use the Google Compute Engine
service (for example, they only use Google App Engine). Your Google
App Engine apps will continue to operate normally, and you do not need
to take any action at this time.
Thanks, The Google Compute Engine Team
Is there a google app engine api to access the usage stats of an app. I want to display the 'Datastore Read Operations' of an app to users so they know how close to the limit they are.
Can this be done on google app engine ?
Currently there is no api to programatically access information on app engine datastore usage statistics including read, write quotas.
There was an app engine monitoring api project that was being considered to serve this purpose, but it seems to be on hold.
The feature request for a quota statistics api is still open. You can check if this potamus project for estimating usage information can be useful for your requirement.