[英]GCP App Engine: Migrate services from the flexible environment to the standard environment
There is documentation on migrating GCP App Engine services from standard to flexible, though none on going the other direction.有关于将 GCP App Engine 服务从标准迁移到灵活的文档,但没有关于转向其他方向的文档。 It seems flexible is more stringent, and so less work is required going from flex to standard, but I'm not certain, as a simple change in the app.yaml is breaking the app.
似乎灵活更严格,因此从灵活到标准所需的工作更少,但我不确定,因为 app.yaml 中的一个简单更改正在破坏应用程序。
Any insight out there on smoothly changing from GCP App Engine flex env to standard?关于从 GCP App Engine flex env 顺利更改为标准的任何见解?
thank you-谢谢你-
The vast majority of the time, code written for Flex will work on Standard (unchanged).大多数时候,为 Flex 编写的代码将在标准(不变)上运行。 What you do need to do is make sure to make all the necessary changes in your app.yaml (it's not as simple as just removing
env: flex
).您需要做的是确保在您的 app.yaml 中进行所有必要的更改(它不像删除
env: flex
那样简单)。
One option to do this is pull up the Flex app.yaml reference side-by-side with the Standard app.yaml reference and make sure you:一种选择是将Flex app.yaml 参考与标准 app.yaml 参考并排,并确保您:
runtime: python39
instead of using the runtime_config
field)runtime: python39
而不是使用runtime_config
字段) In particular, pay attention to the Scaling settings, as they are similar, but have some easily-missed differences (eg min_num_instances
for Flex, min_instances
for Standard).尤其要注意 Scaling 设置,因为它们很相似,但也有一些容易被忽略的差异(例如
min_num_instances
用于 Flex, min_instances
用于 Standard)。
Also, if you are using Cloud SQL , there are some differences in how you configure the connection.此外,如果您使用的是云 SQL ,那么您配置连接的方式会有所不同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.