您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

setup_scaling.mkd 1.1KB

Scaling Gitblit

My experience with scaling Gitblit to be very large is from interacting with those who do run very large Gitblit or Gerrit installs.

Configuring Big JGit Servers

-Xmx8g # gobs of JVM heap

# for `jgit daemon` or gerrit.config
[core]
    packedGitLimit = 4g # around 50% of JVM heap
    packedGitOpenFiles = 8192 # don't forget to configure ulimit
    streamFileThreshold = 2047m # avoids pathological inflate
    deltaBaseCacheLimit = 50m

# applies to `jgit gc`
[pack]
    bigFileThreshold = 20m # don't delta compress big binaries
    indexVersion = 2 # use index v2

-- Shawn Pearce, co-team lead on JGit @ Google (slides)

How does these Gerrit settings apply to Gitblit?

Gerrit & Gitblit are both JGit-based servers. They have similar configuration options. Here are the relevant Gitblit settings:

git.packedGitLimit = 4g
git.packedGitOpenFiles = 8192
git.streamFileTreshold = 2047m
git.deltaBaseCacheLimit = 50m