部署到GAE的弹性环境永远卡住了?

时间:2018-11-02 03:10:43

标签: google-app-engine

我尝试将一个简单的nodejs应用程序部署到GAE灵活的环境中。 使用此命令紧随the official guide

gcloud app deploy --verbosity=debug

我尝试了很多次。

日志永远给了我这些

DEBUG: Operation [apps/just-aloe-212502/operations/b1e812f6-299c-438e-b335-e35aa343242a] not complete. Waiting to retry.
Updating service [flex-env-get-started] (this may take several minutes)...⠛DEBUG: Operation [apps/just-aloe-212502/operations/b1e812f6-299c-438e-b335-e35aa343242a] not complete. Waiting to retry.
Updating service [flex-env-get-started] (this may take several minutes)...⠛DEBUG: Operation [apps/just-aloe-212502/operations/b1e812f6-299c-438e-b335-e35aa343242a] not complete. Waiting to retry.
Updating service [flex-env-get-started] (this may take several minutes)...⠹DEBUG: Operation [apps/just-aloe-212502/operations/b1e812f6-299c-438e-b335-e35aa343242a] not complete. Waiting to retry.
Updating service [flex-env-get-started] (this may take several minutes)...⠼DEBUG: Operation [apps/just-aloe-212502/operations/b1e812f6-299c-438e-b335-e35aa343242a] not complete. Waiting to retry.

发生了什么事?

我可以在本地成功运行简单的nodejs hello-world应用。而且,GAE标准环境可以正常工作。

1 个答案:

答案 0 :(得分:1)

我应注意,App Engine Flexible环境为based on Google Compute Engine,因此在部署应用程序时需要花费一些时间来配置基础架构。

新版本的App Engine Flexible应用程序的首次部署由于设置了内部基础架构而花费了一些时间,但是后续部署应该相对较快,因为它只会修改一些GCP资源,然后等待运行状况检查。

部署需要构建docker映像(如果您已经有预构建映像上传到gcr.io,则可以跳过)。使用pre-build (to gcr.io) docker image将跳过docker构建步骤并优化部署时间。