简体   繁体   中英

Gitlab artifacts upload so slow

I am using gitlab(not a self host) ci with a windows runner(self hosted).

The size of the artifacts is about 50mb, the Internet speed is 100mb/s.

But the artifacts are uploaded to gitlab a very long time(about 1 hour). How can I find the reason for this strange behavior and fix this problem?

It is long standing issue in gitlab runner, that artifact creation and and upload can consume a significant amount of time.

Consider that you using a 3rd party sharing service, that you zip/upload/download your artifacts without using gitlab to do so.

A common problem is that compressing archives takes too long. So if you would like to use gitlab to manage the artifacts, you could try to set

variables:
  FF_USE_FASTZIP: "true"
  TRANSFER_METER_FREQUENCY: "2s"
  ARTIFACT_COMPRESSION_LEVEL: "fastest"
  CACHE_COMPRESSION_LEVEL: "fastest"

in your .gitlab-ci.yml .

For further details please consult the linked issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM