Re: [google-appengine] Re: Google App Engine - Split Traffic and promote

2021-06-22 Thread 'Jordi (Google Cloud Platform Support)' via Google App Engine
Hello, 

To move from one version to another gradually you should take a look at 
Traffic migration. [1]
Note that this is not supported in the App Engine flexible environment.

[1] 
https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic

On Wednesday, June 16, 2021 at 7:34:23 PM UTC+2 bha...@gmail.com wrote:

> Oh thanks George!
>
> Either I use two services of the same code base one for prod and one for 
> staging. Or opt for two projects, one for prod and the other for staging?
>
> Then, traffic splitting works against a single service (without the 
> version specified in the URL). In other words, traffic is split among the 
> versions of the service and not among two different services.
>
> Is there a way to automate moving from one version to another gradually?
>
> On Wed, Jun 16, 2021 at 7:46 PM 'George (Cloud Platform Support)' via 
> Google App Engine  wrote:
>
>> Hello, 
>>
>> You are right, you can use traffic splitting to specify a percentage 
>> distribution of traffic across two or more of the versions within a 
>> service, as detailed on the "Split Traffic" page 
>> . 
>> Deploying with --promote would attract all traffic to the deployed version. 
>> However, by contrast, traffic splitting is applied to URLs that do not 
>> explicitly target a version. In other words, you'll need 2 separate 
>> services, one for your prod environment, the other for staging. Two 
>> versions would not work for traffic splitting. 
>>
>> You can access different versions by version URLs at any time. 
>>
>> On Tuesday, 15 June 2021 at 08:28:05 UTC-4 bha...@gmail.com wrote:
>>
>>>
>>> Hi,
>>> I would like to understand the relation between --promote (--no-promote) 
>>> and split traffic.
>>>
>>> - When I make a version deployment (--promote), it means it takes 100% 
>>> of the traffic
>>> - When I make a version deployment (--no-promote), it won't take any 
>>> traffic percentage. 
>>> *However, would I be able to visit this version by URL? Would this 
>>> version be stopped or active?*
>>> - Split Traffic it works sort of against (--promote). We use it when we 
>>> want to split the traffic among versions instead of promoting a single 
>>> version.
>>>
>>> I am planning to have two versions of my app. One is prod and another 
>>> staging.
>>>
>>> Only prod should serve clients. While staging should only be used 
>>> internally for testing, etc.
>>>
>>> Shall I use *--promote* with the prod environment and *--no-promote* 
>>> with the staging one?
>>>
>>> Thanks
>>> Bill
>>>
>> -- 
>>
> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google App Engine" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-appengine/kJO6TBILzxI/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> google-appengi...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/9d2dbb80-b62e-4f84-b372-5567ac7af1b6n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/24726306-f85e-4c24-89f8-a618bbe3ab94n%40googlegroups.com.


Re: [google-appengine] Re: Google App Engine - Split Traffic and promote

2021-06-16 Thread Bilal Haidar
Oh thanks George!

Either I use two services of the same code base one for prod and one for
staging. Or opt for two projects, one for prod and the other for staging?

Then, traffic splitting works against a single service (without the version
specified in the URL). In other words, traffic is split among the versions
of the service and not among two different services.

Is there a way to automate moving from one version to another gradually?

On Wed, Jun 16, 2021 at 7:46 PM 'George (Cloud Platform Support)' via
Google App Engine  wrote:

> Hello,
>
> You are right, you can use traffic splitting to specify a percentage
> distribution of traffic across two or more of the versions within a
> service, as detailed on the "Split Traffic" page
> .
> Deploying with --promote would attract all traffic to the deployed version.
> However, by contrast, traffic splitting is applied to URLs that do not
> explicitly target a version. In other words, you'll need 2 separate
> services, one for your prod environment, the other for staging. Two
> versions would not work for traffic splitting.
>
> You can access different versions by version URLs at any time.
>
> On Tuesday, 15 June 2021 at 08:28:05 UTC-4 bha...@gmail.com wrote:
>
>>
>> Hi,
>> I would like to understand the relation between --promote (--no-promote)
>> and split traffic.
>>
>> - When I make a version deployment (--promote), it means it takes 100% of
>> the traffic
>> - When I make a version deployment (--no-promote), it won't take any
>> traffic percentage.
>> *However, would I be able to visit this version by URL? Would this
>> version be stopped or active?*
>> - Split Traffic it works sort of against (--promote). We use it when we
>> want to split the traffic among versions instead of promoting a single
>> version.
>>
>> I am planning to have two versions of my app. One is prod and another
>> staging.
>>
>> Only prod should serve clients. While staging should only be used
>> internally for testing, etc.
>>
>> Shall I use *--promote* with the prod environment and *--no-promote*
>> with the staging one?
>>
>> Thanks
>> Bill
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-appengine/kJO6TBILzxI/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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/9d2dbb80-b62e-4f84-b372-5567ac7af1b6n%40googlegroups.com
> 
> .
>

-- 
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/CAFDSF-3bdd9kMuheJ%2B%3DXZY7vCKYJdfjQwOp95cPQRn_ivS1Gjw%40mail.gmail.com.


[google-appengine] Re: Google App Engine - Split Traffic and promote

2021-06-16 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello, 

You are right, you can use traffic splitting to specify a percentage 
distribution of traffic across two or more of the versions within a 
service, as detailed on the "Split Traffic" page 
. 
Deploying with --promote would attract all traffic to the deployed version. 
However, by contrast, traffic splitting is applied to URLs that do not 
explicitly target a version. In other words, you'll need 2 separate 
services, one for your prod environment, the other for staging. Two 
versions would not work for traffic splitting. 

You can access different versions by version URLs at any time. 

On Tuesday, 15 June 2021 at 08:28:05 UTC-4 bha...@gmail.com wrote:

>
> Hi,
> I would like to understand the relation between --promote (--no-promote) 
> and split traffic.
>
> - When I make a version deployment (--promote), it means it takes 100% of 
> the traffic
> - When I make a version deployment (--no-promote), it won't take any 
> traffic percentage. 
> *However, would I be able to visit this version by URL? Would this version 
> be stopped or active?*
> - Split Traffic it works sort of against (--promote). We use it when we 
> want to split the traffic among versions instead of promoting a single 
> version.
>
> I am planning to have two versions of my app. One is prod and another 
> staging.
>
> Only prod should serve clients. While staging should only be used 
> internally for testing, etc.
>
> Shall I use *--promote* with the prod environment and *--no-promote* with 
> the staging one?
>
> Thanks
> Bill
>

-- 
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/9d2dbb80-b62e-4f84-b372-5567ac7af1b6n%40googlegroups.com.