4 ms·
I recently started running more Google Cloud VMs in the UK instead of the US. It was costing me £2 a day to run the VMs, but somehow I also paid £12 a day for "
by mostlystatic 7y ago
I recently started running more Google Cloud VMs in the UK instead of the US. It was costing me £2 a day to run the VMs, but somehow I also paid £12 a day for "GCP Storage egress between NA and EU”.
Turns out that by default Google's Docker container registry only stores the Docker images in the US. So each time I launched a VM the Docker image was downloaded from the US. I wrote more about it here: https://www.mattzeunert.com/2019/10/13/reducing-docker-image-size-and-cutting-gcp-cost.html https://www.mattzeunert.com/2019/10/13/reducing-docker-image...
The billing interface didn't show that the Cloud Storage cost was related to the Docker images. I was investigating my normal Cloud Storage use, but it didn't explain why I was being charged so much. Only after a few days did I get the idea that it might be the Docker images that were causing it.
- merb 7y agoactually there is a eu mirror for the gcp registry eu.gcr.io
- chatmasta 7y agoThat seems like the kind of thing that should be configured by default on servers in the EU.
- sieabahlpark 7y agoIt's in their docs
- freehunter 7y agoTheir docs say it’s configured by default on EU servers?
- skj 7y agoYou say what image to use. There is no default.
- dodobirdlord 7y agoIt's not really clear to me what that would mean. Auto-replicating customer data like docker images across national borders is a non-starter for legal compliance reasons. That's got to be an opt-in, not an opt-out. So they can't just point outbound GCR requests at the EU registry and assume the customer's images are there.
- skj 7y agoIt's not a mirror, it's just another place to put your images. If you're eu based then it's definitely better to use eu.gcr.io for everything from the start.
- mostlystatic 7y agoYep, I started copying my images to the EU and Asia regions and now it's fine cost-wise. They don't have an Australia region for the container registry though, so launching VMs there is still pricy for me.