Gitaly: set receive.unpackLimit 1
From gitlab-org/omnibus-gitlab#5248
Mirror of gitlab-org/omnibus-gitlab!4086 (closed)
Reducing unpacklimit value to 1
(from the default 100) should help
speed up git fetch
(in case of fetching from upstream mirror) and
git receive-pack
(in case of handling a git push).
In both case, instead of unpacking the pack objects into loose objects so later we can re-pack them during maintenance operations (gc / repack), we just store the pack objects as-is and repack them later.
This should improve the speed which we need to write onto NFS as it will
be 1 single write vs the multiple writes (up to 100
according to default
settings) every pack received.
- Implements
transfer.unpackLimit
- Affects:
- fastimport.unpackLimit
- fetch.unpackLimit
- receive.unpackLimit
Reference: https://www.git-scm.com/docs/git-config