Hello Andy,

I did some more research and the consensus is that at this time this really 
cannot be done with App Engine, flexible or standard, as this use case goes 
against the design goals of App Engine and is not supported. The main 
selling point of App Engine is that it will automatically manage and load 
balance instances on which to run your application, meaning you use App 
Engine when you do not wish to manage instances yourself. As such it 
already runs its own load balancer and there's no way to have it play well 
with the Compute Engine Load Balancer.

To quickly answer your questions: you cannot direct traffic to an App 
Engine service using the Compute Engine Load Balancer; Cloud DNS on its own 
is not a load balancer and therefore cannot do fail-over; You cannot copy 
projects directly. The only way to have 2 projects be identical is to 
duplicate actions on both projects or to migrate the data and configuration 
of each product in a project.

It sounds like you really should be doing this using Container Engine 
<https://cloud.google.com/container-engine/>, which uses the same container 
technology as App Engine Flexible but gives you greater control to manage 
the distribution, replication and scaling of your instances.

Could you tell me if there's a specific reason why you feel like you need 
to use App Engine? If I understand this better I might be able to give a 
better and more complete recommendation as to how you can accomplish this 
on the Google Cloud Platform.

Sincerely,

Yannick

On Wednesday, July 26, 2017 at 9:18:26 AM UTC-4, andy wrote:
>
> Hi Yannick,
>
> Thank you so much for the response.
>
> The links you have shared is more to do with Compute (as u have already 
> mention).
>
> Our mandate is to  deploy the application in "App Engine" (we can use a 
> combination of standard & flex), and it should be resistant to regional 
> failures (should be able to run from another region if there is an outage).
>
> If I deploy the front-end service using "Flex" environment and the 
> back-end services in "Standard", and create a copy of the same in another 
> region using another project -  
> 1. Would I be able to do a load balancing between the two flex servers ?
> 2. Would I be able to do a fail-over to Flex server in alternate region 
> using Cloud DNS ?
>
> Also is there a way to backup the entire App engine service deployed in 
> region "A" and copy it to another region "B" ?
>
> Kindly let me know the possibility of the above 3 options.
>
>
> Thanks
>
> Andy
>
> On Wednesday, July 26, 2017 at 2:19:33 AM UTC+5:30, Yannick (Cloud 
> Platform Support) wrote:
>>
>> Hello Andy,
>>
>> App Engine is a regional service 
>> <https://cloud.google.com/appengine/docs/locations> and while it is 
>> replicated to all zones of a region to reduce potential downtime, it cannot 
>> span to more than a region. The recommended way to deploy your application 
>> to several regions is to use one region per project, but there is no good 
>> way to load balance between those projects if you use App Engine Standard.
>>
>> This means that the real answer to accomplish what you want to do is to 
>> use Compute Engine, or at the very least App Engine Flexible. Compute 
>> Engine gives you more liberty to create instances in any region of the 
>> world and to load balance between them however you like.
>>
>> Read more on this subject in these articles:
>>
>>    - Building Scalable and Resilient Web Applications on Google Cloud 
>>    Platform 
>>    <https://cloud.google.com/solutions/scalable-and-resilient-apps>
>>    - Designing Robust Systems 
>>    <https://cloud.google.com/compute/docs/tutorials/robustsystems>
>>    
>> I hope this helps.
>>
>> On Tuesday, July 25, 2017 at 9:12:51 AM UTC-4, andy wrote:
>>>
>>> Hi ,
>>>
>>> I am planning to deploy an Enterprise Grade Application in Google App 
>>> Engine. With both Standard & Flex environment.
>>>
>>> How do I ensure the DR in case a region goes down.
>>>
>>> Example : I deploy my application in AppEngine "N.Virginia" region & if 
>>> there is an outage in the region , how to do I serve the requests from 
>>> another region ?
>>> Could anyone explain on how do I setup a DR site for AppEngine 
>>> Applications.
>>>
>>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a241560f-7a06-454e-81cd-97e7f7b08a41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to