gitlab: git clone https with large repos fails

大兔子大兔子 提交于 2019-12-03 07:37:34

This is reported in issue 3079: https cloning requires a large amount of resources (CPU, but mainly memory) on the GitLab server, and currently (GitLab 5.x) large repos.

Even GitLab 6.0 comes with commits like 7ecebdd, mentioning timeouts when cloning large repo.

I haven't tested with GitLab 6, though (which should release tomorrow).

Consider implementing a chunking plugin for nginx, such as HttpChunkinModule.

I personally haven't deployed the above but have a client with similar issues.

In their case, the problem is on the client side, where we need to instruct devs to use the following tweak to their local git config:

git config http.postBuffer 524288000 #Set to 500MB

The above will simply allow larger git-related http requests on the client side (we've got plenty of memory on the server side).

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