How to setup a GAE managed VM

94 views
Skip to first unread message

Ken Bowen

unread,
Feb 12, 2015, 12:40:06 AM2/12/15
to google-a...@googlegroups.com
I have a moderate-sized AppEngine java app running in the classic GAE "sandbox".  It makes a few calls out to non-GAE systems to perform processing that can't be done in the sandbox (e.g., calls involving AWT).  Now I'd like to explore running it as a single module on a GAE managed VM over Linux, changing those external calls to local, but still using the DataStore.  My problem is that I'm confused as to how to set up a GAE managed VM.  When I go to my Developers Console (console.developers.google.com/project) and click "Create Project", I don't see any options for a GAE managed VM.  Can anyone point me in the right direction to get started?
Thanks,
Ken Bowen

Vinny P

unread,
Feb 12, 2015, 2:02:03 AM2/12/15
to google-a...@googlegroups.com
On Wed, Feb 11, 2015 at 11:40 PM, Ken Bowen <k...@form-runner.com> wrote:
My problem is that I'm confused as to how to set up a GAE managed VM.  When I go to my Developers Console (console.developers.google.com/project) and click "Create Project", I don't see any options for a GAE managed VM.  Can anyone point me in the right direction to get started?



The short version is that a Managed VM is a plain App Engine application (no changes in creation or upload), but with a few extra configuration commands in appengine-web.xml. There isn't anything special to configure within the developers console.

Here's a sample application that runs a guestbook app within a Managed VM - the README file contains instructions on setting everything up:  https://github.com/GoogleCloudPlatform/appengine-java-vm-guestbook-extras . Specifically, you'll want to look at the appengine-web part of the instructions.

  
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com



 

Deepak Singh

unread,
Feb 12, 2015, 9:24:39 AM2/12/15
to google-a...@googlegroups.com
I have a GAE java app running on F2/F4 instance which uses pageSpeed. So i would like to know that migrating to Managed VM will have page speed service running as usual ?

Regards
Deepak

--
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-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CALSvALAUfkapHH-AynxQ1z0-cF6LtMBMCRksuhOTPrAfUGwirQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Deepak Singh

Avanish Raju

unread,
Feb 12, 2015, 6:16:38 PM2/12/15
to google-a...@googlegroups.com
Ken, it's possible to run a multi-module Java Appengine app, with your first module running in the classic GAE "sandbox", and the 2nd module running a managed VM, and through a login:admin setting in your app.yaml configuration or similar, you can lock it down so that only your other Appengine module can access it, and so that it's hidden from public.
Check out this article for more Java-specific details. (When at least one of your modules is running GAE Java)
Check out this sample code for info on running multi-module Appengine apps.

And when you run gcloud preview app run <module1> <module2>, make sure to specify the prebuilt war directory of your GAE Java app.

Regards,
Avanish

Mario

unread,
Feb 16, 2015, 5:50:58 AM2/16/15
to google-a...@googlegroups.com
Hello Deepak,

I'd ask you to post this question in Stackoverflow.com. Thus, it will be seen by many developers that will be able to provide the most accurate answer to it. Furthermore, it will be easier to find it in the future, when another user has a similar question.

Thanks in advance.

Regards,

Mario C.
Google Cloud Platform.
Reply all
Reply to author
Forward
0 new messages