Reputation: 267
Is it possible for my GAE to be balanced accross regions? Like US and Europe.
https://cloud.google.com/about/locations/
Reading the link above it says that it scales automatically within or accross multi-regional locations.
What does that mean? Do I have to enable automatic scaling across regions? If so, how do I do that?
And secondly, if it does handle automatic scaling across regions, the choice one makes for App engine location
when creating a new project, is that irrelevant for a Google App Engine instance?
Upvotes: 15
Views: 10431
Reputation: 1664
You can use a potential solution using HTTPS LB with Serverless NEG, Serverless NEG connects internal services directly without GCE. See https://stackoverflow.com/a/62660953/4185100
Upvotes: 0
Reputation:
See this from Google Groups: https://groups.google.com/forum/m/#!topic/google-appengine/svMhwuFC5zk
The short answer today is no it cannot be accomplished in App Engine as is.
But, if you feel like hacking, it seems the above thread is suggesting setting up a load balancer to serve Compute Engine and then have these instances route to your "different" projects with App Engine deployed in your various regions (i.e. one deployment in a region per project). Seems like a mess, but possible.
There may be light at the end of the tunnel (eventually): https://issuetracker.google.com/issues/65039982
Upvotes: 5
Reputation: 78573
You cannot change the region. Your app will be served from the region you chose when creating the app. Anyone can use the app, but users closer to the selected region will have lower latency.
While the App Engine service itself operates in multiple regions, an App Engine app is served from a single region. The app will, however, scale across multiple zones within that region.
See App Engine Locations for more.
Upvotes: 2
Reputation: 1270
Yon asked this question on the mailing list, where it was answered. To reiterate what folks said there: App Engine is automatically scaled across multiple regions, but those regions are defined by Google. You'd have to set up another project to handle traffic in the EU, for example.
Upvotes: -5