Google App Engine Deleting Version is not reducing Quota - google-app-engine

I have a free App in Google App Engine.
I am nearing my quota limit for Code and Static File Storage.
I deleted a couple version of the uploaded code 2 days ago.
My Code and Static File Storage still reflects the same 0.85 G
How long does it take for the quota to reflect the change.

From How resources are replenished:
App Engine resets all resource measurements at the beginning of each
calendar day (except for Stored Data, which always represents the
amount of datastore storage in use).
and
Daily quotas are replenished daily at midnight Pacific time.
Per-minute quotas are refreshed every 60 seconds.
So I'd re-check after midnight PST.

Related

Multi-region Cloud Storage charges

I've read a few similar posts but haven't really understood why I am getting charged.
I recently (middle of May) switched from Python 2.7 environment with webapp2 to Python 3 with Flask. I switched from using old ndb to the new ndb. I am using Standard (not Flex) This application has very limited use and I thought was limited to a single region. The project size is 176.3 KB
At the end of the May the following was added to my bill:
Standard Storage US Multi-region 0D5D-6E23-4250 0.33
gibibyte month
I'm wondering why I have 'multi-region' anything. I thought I was set up for a single region. I never got billed for anything using Python 2.7 and webapp2 with old ndb. This application is small with limited use. When I delete the region bucket it just comes back when a new version is deployed. I thought there was a 5GB free use limit?
Could you please check the buckets in the Console Storage browser? When you create an app sometimes is created as well a bucket named multiregionName.artifacts.projectID.appspot.com. This bucket is Multi-region. You can check whether this bucket was created with the new versions you upgraded. If you check in the overview of the Bucket you can get the Creation time, Location-type and Location.
Also, according to GAE Default Cloud Storage bucket:
The Default Cloud Storage bucket has a free quota for daily usage as shown below. You create this free default bucket in the Google Cloud Console App Engine settings page for your project.
The following quotas apply specifically to use of the default bucket. See pricing for Cloud Storage Multi-Regional buckets for a description of these quotas.
In a nutshell, I would check the content of the multiregional bucket. If it has something investigate the actual usage and decide either to delete something or not.
Otherwise just calculate the estimated cost according to the pricing table and verify that is correct.
UPDATE
I created an GAE App and it created the following buckets:
joss-xxx.appspot.com
staging.joss-xxx.appspot.com Multiregion
us.artifacts.joss-xxx.appspot.com Multi-region
I tested deleting the buckets as you did and each time I deploy I get those three buckets again. So here the explanation:
joss-xxx.appspot.com is the default bucket for GAE, and has a 5GB free storage quota and is provided for your usage.
About the staging Bucket I found this (1) and this (2) which mentions:
Note: When you create a default bucket, you also get a staging bucket with the same name except that staging. is prepended to it. You can use this staging bucket for temporary files used for staging and test purposes; it also has a 5 GB limit, but it is automatically emptied on a weekly basis.
App Engine also creates a bucket that it uses for temporary storage when it deploys new versions of your app. This bucket, named staging.project-id.appspot.com, is for use by App Engine only. Apps can't interact with this bucket.
The artifacts bucket, {region}.artifacts.{app-id}.appspot.com is used to build the docker container that GAE Flexible deploys. Even when I deployed an Standard app, this bucket was created. Deleting this bucket will likely increase your deploy times as the new deployment cannot build on your previous deployment.
Given the aforementioned, I think the behavior you are facing is totally expected.
I've seen the same behavior for my app, I'm not sure if you have reached to any conclusion since you posted this question.
I deployed an app in an specific region but Google creates multi-region buckets automatically, in my case two of them are "multi-region" at least in the same region I stated, but for the artifact, I get a "multi-region" bucket in a completely different region, which is the one I'm getting charged by. Either way I'm not going over the free quotas so I don't understand why they are charging me for.
I was thinking on trying a "bucket move", manually recreating a single region bucket with the same name/properties and transferring the actual content to this new one, but I'm not sure if I'll break something, I'm still learning on these GCP topics.

Cloud Storage Triggers To Cloud Functions Stopped Working all of a sudden

We are using background Cloud Function with Cloud Storage Trigger (i.e. which gets triggered on Finalize/Create event from Cloud Storage Bucket in the same Google App Engine project).
These Cloud Functions process file uploads on some Bucket in Cloud Storage of same application. Files get written to these bucket folders continuously for 2-3 days and Cloud functions process every File based on Storage Trigger associated to it.
We ran this process on Saturday, 07 Sep 2019 at 07:19 am IST. This was working file till 09:27pm IST in evening the same day.
After then, Cloud Storage triggers stopped working and did not trigger Cloud Functions.
Triggers only worked next day after outage of 5-9 hours when we tested again.
We did not see any logs regarding ERROR on Cloud Storage and Cloud Function.
Neither there were any Quota issues in the target bucket.
Though it has started working now, but We are not sure what was wrong and would like to be aware of the cause of failure.
This is business critical module hence no such outage can be overlooked.
Help us locate the root cause of this failure.

AppEngine blobstore.CreateUploadURL call failing due to quota for paid app

When I try to store an image into my AppEngine blobstore, I get the following error:
The API call blobstore.CreateUploadURL() required more quota than is available.
My app is a paid app. I checked my storage bucket where Google stores blobstore data and it is at 5GB -- the limit they set for free apps. I have tried to find the quota settings both in my app engine settings as well as in the general quota settings for my project, but I can't seem to find my blobstore quota anywhere.
I expect to be able to store more than 5GB of data, but it seems that I've hit some sort of limit. I don't want to migrate to Google Cloud Storage because that will take time.
You will need to enable billing on your project to uncap the 5GB limit.
If you have a daily budget for your application it could affect the quota, you could raise it to a non-zero value and see if that helps.

Two different Datastore quotas for AppEngine

Per operation
GAE Quotas article states that Datastore quota measured in read/write operations (for example when you put an entity several write operations occurs per property):
The same is at GAE Home page:
Per entity
At the same time App Engine Pricing article states that quota measured in read/write per entity (here there is information that it's appeared recently):
Experimenting
In Google Cloud Console at App Engine Quotas tab there are details both for Datastore Write Operations and Datastore Entity Writes; putting an entity works fine when the first one exceeds its limit (I reached the limit and then put new entity to check, there is no billing enabled for the project):
My question is what is the real quota restrictions in GAE Datastore?
As of July 1, 2016, Cloud Datastore quotas and billing are based on entity reads and writes (and deletes) instead of read and write operations. The third link you provided in your question shows the correct information.
The other pages are out of date and should be updated shortly. Thanks for pointing them out!

Will I be billed if I do not have any projects on my Google Developers Console?

I just received an email from the Google Cloud Storage team, which states:
Hello Google Cloud Storage User,
Please be advised that, beginning July 14, 2015, Google will begin charging the following fees for Google Cloud Storage:
$0.01 per GB of data transferred between buckets located in different regions of the same continent
Egress rates per GB of data transferred between buckets located on different continents
Until then, you will be able to view your current usage in the billing details for your project in order to help you estimate the impact of these changes on your monthly spend.
For additional information and examples of this billing charge, please visit https://cloud.google.com/storage/pricing#network-regions
-- The Google Cloud Storage Team
Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
You have received this mandatory service announcement to update you about important changes to Google Cloud Platform or your account.
I just want to know if I'll be charged any money if I do not have any projects in my Google Developers Console?
I had one project which I deleted instantly, but it's still showing under the "projects pending deletion" section.
Here is how my console currently looks like:
You only get charged for usage, so you could have 100 projects, and if you don't do nothing then you'll pay for nothing.
The "project pending deletion" will disappear when as soon as it's deleted, probably 7 days after the request, don't worry about it.

Resources