Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change project from Google App Engine Flexible to Standard

I have a Java8 project currently configured to be deployed to GAE Flexible. Having Java8 now available in GAE Standard I would like to change to this (for cost and maintenance reasons plus quicker deploy).

Can anyone point me to the settings to change? Currently seeing Dev App Server does not support App Engine Flexible Environment applications. when running mvn appengine:run. I already checked the app.yaml, appengine-web.xml.

like image 236
Cloudsmith Co. Avatar asked Jul 03 '17 08:07

Cloudsmith Co.


People also ask

What is the difference between App Engine standard and flexible?

The standard environment can scale from zero instances up to thousands very quickly. In contrast, the flexible environment must have at least one instance running for each active version and can take longer to scale up in response to traffic. Standard environment uses a custom-designed autoscaling algorithm.

What is Google App Engine flexible environment?

Customizable infrastructure - App Engine flexible environment instances are Compute Engine virtual machines, which means that you can take advantage of custom libraries, use SSH for debugging, and deploy your own Docker containers. Performance options - Take advantage of a wide array of CPU and memory configurations.

Is App Engine more expensive than Compute Engine?

App Engine instances are more expensive than Compute Engine instances on a per hour basis. If you have a constant load, it's cheaper to keep a GCE instance running.


1 Answers

As Dan mentioned, the documentation highlights a lot of the differences.

As for your error, it's likely caused by your application still configured like a Flex app. Make sure you don't have this part:

runtime: python
env: flex

The key here is that the process is less like "migration" and more like "redeploying" or "redesigning" when moving from or to GAE (Google App Engine) standard. The safest way to simply take your code and just deploy to app engine standard from scratch (no existing configuration, just read GAE standard docs and start from there).

GAE standard gives you a lot of builtin access to our resources like Datastore and Cloud SQL, while most of the resource can be accessed from GAE Flex and even GCE (Google Compute Engine) through the use of libraries, it's just a lot easier on GAE standard. So I would recommend looking through the Standard -> Flex migration docs](https://cloud.google.com/appengine/docs/flexible/java/migrating) to get an idea on which APIs are available and how they have changed.

like image 172
Ying Li Avatar answered Sep 30 '22 05:09

Ying Li