Newbie question about Flexible Environment

68 views
Skip to first unread message

Jamsheed Mistri

unread,
Sep 14, 2018, 1:53:18 PM9/14/18
to Google App Engine
Hi there! I'm new to Google App Engine and I have a standard web application running as of now. I'd like to run a python flexible environment in parallel with my standard environment, but from what I can tell from a quick Google search, it seems as if you can't do that. 

Is it true that you must have a new Google Cloud project for each environment, or can I run both a standard and flexible environment in one Google Cloud project? If so, how?

Thanks so much, and sorry if this is a duplicate thread — I couldn't find the answer anywhere!

George (Cloud Platform Support)

unread,
Sep 14, 2018, 4:43:50 PM9/14/18
to Google App Engine
Hello Jamsheed, 

It depends on the separation requirements for your two services. Withing one project, services share some App Engine resources. For example, Cloud Datastore, Memcache, and Task Queues are all shared resources between services in an App Engine project. If this is OK with you, deploying one service to the Standard Environment, the other to Flexible is possible. You need to specify env: flex in the app.yaml configuration file, if you need the service to be deployed to the Flexible Environment. Each service is reached by a different URL: https://[SERVICE_ID]-dot-[MY_PROJECT_ID].appspot.com or http://[SERVICE_ID].[MY_CUSTOM_DOMAIN] . More about routing at "How Requests are Routed".  You may gather more insight by reading the "Microservices Architecture on Google App Engine" documentation page

Flexible Environment is characterized by slightly different requirements, when compared to the reference to the Standard Environment, so you may benefit by reading the "Migrating Services from the Standard Environment to the Flexible Environment" page

Josh Moore

unread,
Sep 14, 2018, 6:34:42 PM9/14/18
to google-a...@googlegroups.com
To directly answer your question, both Standard and Flexible deployments can exist in the same project.  Typically, they would exist as a separate GAE service within the project.

--
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/9fbc5bd5-3b87-4e58-abfd-160aa6a4ce06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jamsheed Mistri

unread,
Sep 17, 2018, 1:30:05 PM9/17/18
to Google App Engine
Thanks to both of you!
Reply all
Reply to author
Forward
0 new messages