Skip to content
代码片段 群组 项目
提交 ae024702 编辑于 作者: Jacob Vosmaer's avatar Jacob Vosmaer
浏览文件

Override GIT_STRATEGY in .gitlab-ci.yml

This adds a hard-coded 'GIT_STRATEGY: clone' to .gitlab-ci.yml.
Without this, misconfigured forks of gitlab-org/gitlab can use the
'fetch' strategy which is bad for the pack-objects cache hit ratio.
Without a good hit ratio, such misconfigured forks cause CPU
saturation events on the Gitaly server that hosts them.

See https://gitlab.com/gitlab-com/gl-infra/scalability/-/issues/1584
for more information.
上级 590b2ee3
No related branches found
No related tags found
无相关合并请求
......@@ -65,6 +65,8 @@ variables:
# we override the max_old_space_size to prevent OOM errors
NODE_OPTIONS: --max_old_space_size=3584
GIT_DEPTH: "20"
# 'GIT_STRATEGY: clone' optimizes the pack-objects cache hit ratio
GIT_STRATEGY: "clone"
GIT_SUBMODULE_STRATEGY: "none"
GET_SOURCES_ATTEMPTS: "3"
DEBIAN_VERSION: "bullseye"
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册