本文介绍了Appengine部署今天特别缓慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个小型的java项目需要部署
它包括9000多个文件

命令:mvn gcloud:deploy



但我得到日志:

  ... 
[信息]信息:上传[/home/steven/work/idigisign/target/appengine-staging/__static__/node_modules/rx/src/core/linq/observable/when.js]至[7dfb30ad32893c5042dba03601f006a40419fab0]
[INFO] DEBUG:上传[/家用/史蒂芬/工作/ idigisign /目标/ AppEngine上分期/资产/全球/插件/自举开关/ JS /自举switch.min.js]至[7e0725897d7b99c3c33b56915d202e2dde552ea9]
] [INFO信息:上载[/家用/史蒂芬/工作/ idigisign /目标/ AppEngine上分期/资产/全球/插件/自举开关/ JS /自举switch.min.js]至[7e0725897d7b99c3c33b56915d202e2dde552ea9]
] [INFO DEBUG:上传[/家用/史蒂芬/工作/ idigisign /目标/ AppEngine上分期/ node_modules /是重定向/ index.js]至[7e0afe4775bf7f8558665760171c01948c22f771]
] [INFO信息:上载[/家庭/史蒂芬/工作/上传[/ home / steven / work / idigisign / target / appengine-staging / node_modules / idigisign / target / appengine-staging / node_modules / is-redirect / index.js]到[7e0afe4775bf7f8558665760171c01948c22f771]
[INFO] rxjs / SRC / util的/ Map.ts]至[7e11722f4cd9ce91ec99b97710fbc4e7f40be09d]
...

每分钟大约50美元
所以它会花费180分钟...

这是非常慢的

有人能帮助我吗?


解决方案

设置环境变量 CLOUDSDK_APP_USE_GSUTIL = 1 然后再试一次;这为文件上传使用了一个不太可靠但更快的代码路径(有计划加速默认代码路径)。


We have a small java project need to deployit include 9000+ files

command : mvn gcloud:deploy

but I get the Log:

    ...
[INFO] INFO: Uploading [/home/steven/work/idigisign/target/appengine-staging/__static__/node_modules/rx/src/core/linq/observable/when.js] to [7dfb30ad32893c5042dba03601f006a40419fab0]
    [INFO] DEBUG: Uploading [/home/steven/work/idigisign/target/appengine-staging/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js] to [7e0725897d7b99c3c33b56915d202e2dde552ea9]
    [INFO] INFO: Uploading [/home/steven/work/idigisign/target/appengine-staging/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js] to [7e0725897d7b99c3c33b56915d202e2dde552ea9]
    [INFO] DEBUG: Uploading [/home/steven/work/idigisign/target/appengine-staging/node_modules/is-redirect/index.js] to [7e0afe4775bf7f8558665760171c01948c22f771]
    [INFO] INFO: Uploading [/home/steven/work/idigisign/target/appengine-staging/node_modules/is-redirect/index.js] to [7e0afe4775bf7f8558665760171c01948c22f771]
    [INFO] DEBUG: Uploading [/home/steven/work/idigisign/target/appengine-staging/node_modules/rxjs/src/util/Map.ts] to [7e11722f4cd9ce91ec99b97710fbc4e7f40be09d]
...

About 50 per minuteSo it will spent 180 minute...

It is extraodinarily slow

anybody can help me?

解决方案

Set the environment variable CLOUDSDK_APP_USE_GSUTIL=1 and try again; this uses a less-reliable but faster codepath for file upload (there are plans to speed up the default codepath).

这篇关于Appengine部署今天特别缓慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-02 01:41