Hi, I believe the cost of GCS and GCR is almost negligible. Container Registry images are stored in a Standard class buckets whose price is $0.026 per GB per month <https://cloud.google.com/container-registry/pricing>. Also the first 5 GB in the App Engine default bucket <https://cloud.google.com/appengine/docs/standard/python3/using-cloud-storage#default_bucket> are free. In any case I would refer to the Cloud Storage pricing <https://cloud.google.com/storage/pricing> documentation for a detailed description of the charges using this product.
On Friday, April 24, 2020 at 4:08:10 AM UTC+2, Nikhil Tibrewal wrote: > > Thanks David. So I had to read a lot of Google cloud SDK code to figure > out how GAE, CloudBuild, GCR and GCS are used to orchestrate a deployment > onto GAE. > > I'm doing all this because the files in GCS and GCR cost money, that > storage is not free. So I'd like to understand it. My questions have > narrowed down to the following: > > 1) During `app deploy`, CloudBuild fetches source files from GCS, builds > images (or uses cached ones if any in GCR), and pushes the latest image to > GCR under the `ttl-2h` folder. I see that this ttl is respected for most > images there, except the ones from 2 most recent builds. Why is this? > 2) Following point 1, it seems all images are stored in cloud also (maybe > under us.artifacts?), but that's not free: > https://cloud.google.com/container-registry/pricing. So can you point to > any documentation to explain us.artifacts bucket and what temp files are in > there? > 3) Link you shared for default and staging buckets only mentions pricing > on the default bucket (which btw is always empty). Can you share any > information on the pricing of staging and us.artifacts bucket? Are those > free since they're used for intermediate steps which I have no visibility > into? > > Thanks in advance! > > On Thursday, April 23, 2020 at 10:41:20 AM UTC-4, David (Cloud Platform > Support) wrote: >> >> Hello, >> >> Here is some information about the default and staging buckets >> <https://cloud.google.com/appengine/docs/standard/python3/using-cloud-storage#default_bucket>. >> >> As for the artifact, this is a bucket for the build cache which holds >> intermediary build output. The staging and artifact buckets hold temporary >> files which are part of the deployment process. It is not recommended to >> delete any of these buckets but it won’t break your project if you do. >> >> Manually running the command "gcloud app deploy" should check for any >> file changes and only upload those files that were updated. The behavior >> may be different if done from a Cloud Build step. In this case, it would >> need to use previous builds in order to speed up the building time. For >> more information about making your builds faster, please see our >> documentation on best practices for speeding up builds >> <https://cloud.google.com/cloud-build/docs/speeding-up-builds>. >> >> Please review this document about running Django on GAE standard >> <https://cloud.google.com/python/django/appengine#deploying_the_app_to_the_standard_environment_> >> >> which provides information about Django's collectstatic. Build steps wise: >> >> >> >> args: ['-m', 'pip', 'install', '-t', '.', '-r', 'requirements.txt'] >> >> args: ['./manage.py', 'collectstatic', '--noinput'] >> > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/bc90aeac-dc4c-4ff4-8521-6ad41cd82f4b%40googlegroups.com.