Skip to content

Added unpackLimit config to receive-pack, fetch

Son Luong Ngoc requested to merge sluongng/gitaly:sluongngoc/unpack-limit into master

See omnibus-gitlab#5248

This should help preventing git to unpack objects when receive a push from client OR when fetching from remote (in case of mirroring upstream) and store the pack transferred as-is.

The git-repack housekeeping process will handle most of the optimization in this case. But it will happen in the background and does not affect customer facing.

Worth to note that transfer.unpackLimit includes receive.unpackLimit + fetch.unpackLimit + fastimport.unpackLimit.

I dont find fastimport being used anywhere in Gitaly so I only added the first 2 configs explicitly instead.

Edited by Son Luong Ngoc

Merge request reports