简体   繁体   English

GCP App Engine:将服务从柔性环境迁移到标准环境

[英]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 参考并排,并确保您:

  1. Use valid settings for Standard (eg runtime: python39 instead of using the runtime_config field)使用标准的有效设置(例如runtime: python39而不是使用runtime_config字段)
  2. Remove any settings that are not applicable for Standard (eg, Healthchecks)删除不适用于标准的任何设置(例如,Healthchecks)

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.

相关问题 将 App Engine flexible 降级到 App Engine 标准环境 - Downgrade App engine flexible to app engine standard environment Google App Engine 如何从灵活环境转变为标准环境 - How do change from Google App Engine from Flexible Environment to Standard environment 无法在 App Engine 标准环境 (GCP) 中部署预构建映像 - Unable to deploy pre built image in app engine standard environment (GCP) 如何在 Google App Engine 柔性环境中设置 jetty 线程池 - how to set the jetty thread pool in Google App Engine flexible environment App Engine 灵活环境 - Dockerfile 安装过时版本的 GDAL - App Engine Flexible Environment - Dockerfile installing outdated version of GDAL 具有 4GB RAM 的 Google Cloud Platform App Engine 标准环境 - Google Cloud Platform App Engine Standard environment with 4GB RAM 如何在 Google App Engine 标准环境中使用 Google Cloud Build 或其他方法设置环境变量? - How to set environment variables using Google Cloud Build or other method in Google App Engine Standard Environment? 调用 App Engine 柔性环境 API 时如何停止混合内容浏览器错误? - How to stop mixed Content browser Error when calling App Engine Flexible Environment API? 如何更改部署在 App Engine 标准环境中的 django 上的默认 postgres 用户? - How to change default postgres user on django deployed on app engine standard environment? App Engine node.js标准环境下如何下载json文件到云存储 - How to download json file to cloud storage on app engine node.js standard environment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM