The App Engine Managed VMs hosting environment lets you run App Engine applications on configurable Compute Engine Virtual Machines (VMs).This VM-based hosting environment offers more flexibility and provides more CPU and memory options.
Managed VMs instances are Docker-container-based, and with the Beta gcloud SDK, it is now possible to edit the configuration used by a module's instances.This tutorial walks through the use of Managed VMs and the new gcloud SDK for a Java Web Application.It shows how you can test Managed VMs locally as well as deploy using the new SDK; and shows how to use a non-default .The code for this tutorial is here: https://github.com/Google Cloud Platform/appengine-java-vm-guestbook-extras. The first stage of the example shows how you can 'escape the App Engine sandbox' by using some Java libraries that don't run on App Engine.The second stage shows how you can edit a Managed VM module's to further configure its instances.
In this case, we'll install a linux utility, and also write to the instances' local filesystem.
We will also use the latest Jetty 9.3.2 runtime that needs the Open JDK8 JVM.
First, complete the following steps: This tutorial uses Maven 3.1 or above to build its Java projects, so install Maven as necessary.
Be familiar with the Managed VMs Maven specific documentation located at https://cloud.google.com/appengine/docs/java/managed-vms/maven If you are new to git, please refer to the git documentation.
Then, grab the starter code that we'll use for this tutorial, from this repo: https://github.com/Google Cloud Platform/appengine-java-vm-guestbook-extras.
This app uses as its starting point the (familiar to many) App Engine "guestbook" sample, but some extras are added that highlight the capabilities of Managed VMs.