[google-appengine] Re: Deploy two versions of same app at same time

2019-10-08 Thread Nicholas Swekosky
Can you please provide more context regarding the project, service, 
version, and instance with respect to the deployment?

On Monday, October 7, 2019 at 7:01:20 AM UTC-5, Mahmmoud Mahdi wrote:
>
> Hello All,
> Is possible to deploy two version of same app at same time using gcloud 
> command
> Thanks
>

-- 
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/9ced684f-bddf-4805-8998-f077c20e54d1%40googlegroups.com.


[google-appengine] Re: PubSub Pull Topic on AppEngine Standard

2019-10-01 Thread Nicholas Swekosky
Thanks George. I ended up asking the question elsewhere and getting quicker 
answers.

   - 
   
https://groups.google.com/forum/?utm_medium=email_source=footer#!msg/google-appengine/Nt090ZbKzlA/rpIR6_JkBgAJ
   
I appreciate the feedback and will keep it in mind for the future

On Tuesday, October 1, 2019 at 1:21:01 PM UTC-5, George (Cloud Platform 
Support) wrote:
>
> Hello Nicholas, 
>
> You may set up apps in different environments as subscribers to Pub/Sub 
> messaging, all this described on Receiving messages using Pull 
> . It is not clear what you 
> mean by deploying Flex instances to App Engine Standard instances. You can 
> surely adapt code and create separate apps in Standard Environment, if you 
> prefer. 
>
> Pull subscription workers need to actively check for messages, so they 
> won't wake up. If this is not what you want, you should check Using push 
> subscriptions .  
>

-- 
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/b95d6e00-a6a2-4862-a707-680704f9edde%40googlegroups.com.


[google-appengine] Re: 2 questions regarding migration from Flex to Standard

2019-10-01 Thread Nicholas Swekosky
Totally missed those pages Oqueli. Thanks for pointing those out.

I must say that it was a bit difficult to find those so I'm glad you 
pointed them out. I'm a big fan of the documentation but it can be quite 
large to traverse sometimes.

On Tuesday, October 1, 2019 at 7:58:50 AM UTC-5, Oqueli Martinez Sanchez 
wrote:
>
> Regarding your first question. As documented here [1] Your app Engine 
> should be subscribed to receive push requests. A Pub/Sub subscription can 
> be configured to send messages as an HTTP POST request to a URL which can 
> be your App Engine Standard URL. On App Engine Standard you have at least 
> two options managing App Scalation. If your App Scales to Zero, the HTTP 
> Post from Pub/Sub will immediately "Wake up" your instance and execute the 
> logic you have programmed. Take into account that "Waking up" your App 
> Engine Standard instance would take some warm up time. You can also 
> configure your app.yaml [2] to not scale to zero, and have a 
> min_idle_instance value of 2 or 3 to handle the pubsub requests without 
> warm up time involved. This is up to you. 
>
> Regarding your second question.It is encouraged by Google to use the 
> Product Client Libraries which have the Application Default Credentials 
> included, for you not to struggle with authentication using Google's 
> products. So yes, Start up your instance with the Standard libraries and 
> use the product client libraries needed. 
>
> [1] https://cloud.google.com/pubsub/docs/push
> [2] https://cloud.google.com/appengine/docs/standard/python/config/appref
> On Monday, September 30, 2019 at 11:42:28 AM UTC-5, Nicholas Swekosky 
> wrote:
>>
>> I'm considering migrating from AppEngine Flex to AppEngine Standard and I 
>> have significant experience with both. I have 2 quick questions regarding 
>> the migration and figured would post them here. Any insight would be 
>> appreciated.
>>
>> 1. Let's say I have an AppEngine Standard service who's sole job is to 
>> pull from a PubSub subscription and do some work. Let's say some time has 
>> gone by and no work has been posted to that PubSub topic so my worker has 
>> scaled to 0. If something new has been posted to that PubSub topic, will 
>> that sandbox AppEngine Standard worker automatically scale to 1 to begin 
>> working again?
>>
>> 2. Let's say I have a service on AppEngine Flex that I'm considering 
>> migrating to AppEngine Standard. My existing service uses Google Cloud's 
>> golang libraries and I'm considering the amount of work it would take to 
>> migrate to the AppEngine Standard client libraries. For simplicity, let's 
>> assume I'm only using AppEngine, PubSub, OAuth, & Datastore. Could I only 
>> use the AppEngine Standard libraries to start the instance and use the 
>> Google Cloud libraries for PubSub, OAuth, & Datastore?
>>
>> Please let me know if more detail is needed for these 2 questions. Thanks 
>> so much!
>>
>

-- 
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/c43b4234-044b-40f7-bd3d-1635281d5886%40googlegroups.com.


[google-appengine] Re: 2 questions regarding migration from Flex to Standard

2019-10-01 Thread Nicholas Swekosky
Thanks Vitaly. I'll keep this in mind when experimenting tomorrow.

On Tuesday, October 1, 2019 at 12:24:24 AM UTC-5, Vitaly Bogomolov wrote:
>
> Hi, Nicholas.
>
> 1. Let's say I have an AppEngine Standard service who's sole job is to 
>> pull from a PubSub subscription and do some work. Let's say some time has 
>> gone by and no work has been posted to that PubSub topic so my worker has 
>> scaled to 0. If something new has been posted to that PubSub topic, will 
>> that sandbox AppEngine Standard worker automatically scale to 1 to begin 
>> working again?
>>
>
> You can try this case by yourself, but (imho) - no, your AppEngine SE 
> service won't start. The simplest solution is to call warmup request to 
> start the instance of SE service.
>
> WBR, Vitaly. 
>

-- 
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/fccb995b-256c-4aad-875c-3de9247dc1f7%40googlegroups.com.


[google-appengine] PubSub Pull Topic on AppEngine Standard

2019-09-30 Thread Nicholas Swekosky
Hello,

I have multiple workers on AppEngine Flex instances pulling from PubSub. 
I'm looking to cut some costs and was curious if I could deploy these 
instances to AppEngine Standard instances.

If I deploy workers pulling from a PubSub subscription, will they wake up 
when a new message is ready to be pulled?

-- 
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/65e510f2-f6ae-4cac-adf5-26c77cb65a75%40googlegroups.com.


[google-appengine] 2 questions regarding migration from Flex to Standard

2019-09-30 Thread Nicholas Swekosky
I'm considering migrating from AppEngine Flex to AppEngine Standard and I 
have significant experience with both. I have 2 quick questions regarding 
the migration and figured would post them here. Any insight would be 
appreciated.

1. Let's say I have an AppEngine Standard service who's sole job is to pull 
from a PubSub subscription and do some work. Let's say some time has gone 
by and no work has been posted to that PubSub topic so my worker has scaled 
to 0. If something new has been posted to that PubSub topic, will that 
sandbox AppEngine Standard worker automatically scale to 1 to begin working 
again?

2. Let's say I have a service on AppEngine Flex that I'm considering 
migrating to AppEngine Standard. My existing service uses Google Cloud's 
golang libraries and I'm considering the amount of work it would take to 
migrate to the AppEngine Standard client libraries. For simplicity, let's 
assume I'm only using AppEngine, PubSub, OAuth, & Datastore. Could I only 
use the AppEngine Standard libraries to start the instance and use the 
Google Cloud libraries for PubSub, OAuth, & Datastore?

Please let me know if more detail is needed for these 2 questions. Thanks 
so much!

-- 
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/588bea81-57c0-4c78-a56d-a57e541f786d%40googlegroups.com.