google app engine deploy a custom vm app takes a long time to deploy

倾然丶 夕夏残阳落幕 提交于 2019-12-06 03:10:49
Dan Cornilescu

A good chunk of the deployment time is often spent uploading the docker image, largely depending on the image size (in your case pretty big - 3.5GB), your internet connection upload speed and your server's "closeness" to the GAE region datacenter.

You might get a significant upload speed boost by performing the deployment from a cloud-hosted VM (ideally a GCE machine hosted in the same region as your GAE app).

Building the image also takes time, some of it unavoidable. You might be able to speed it up a bit, see How can I speed up Rails Docker deployments on Google Cloud Platform?

Also, when re-deploying the app some unavoidable additional steps are required compared to the first app deployment, see why does google appengine deployment take several minutes to update service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!