You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 年之前
1234567891011121314151617181920212223242526272829303132
  1. ## Scaling Gitblit
  2. My experience with scaling Gitblit to be very large is from interacting with those who do run very large Gitblit or Gerrit installs.
  3. ### Configuring Big JGit Servers
  4. -Xmx8g # gobs of JVM heap
  5. # for `jgit daemon` or gerrit.config
  6. [core]
  7. packedGitLimit = 4g # around 50% of JVM heap
  8. packedGitOpenFiles = 8192 # don't forget to configure ulimit
  9. streamFileThreshold = 2047m # avoids pathological inflate
  10. deltaBaseCacheLimit = 50m
  11. # applies to `jgit gc`
  12. [pack]
  13. bigFileThreshold = 20m # don't delta compress big binaries
  14. indexVersion = 2 # use index v2
  15. -- Shawn Pearce, co-team lead on JGit @ Google ([slides](http://www.eclipsecon.org/2013/sites/eclipsecon.org.2013/files/Scaling%20Up%20JGit%20-%20EclipseCon%202013.pdf))
  16. ### How does these Gerrit settings apply to Gitblit?
  17. Gerrit & Gitblit are both JGit-based servers. They have similar configuration options. Here are the relevant Gitblit settings:
  18. git.packedGitLimit = 4g
  19. git.packedGitOpenFiles = 8192
  20. git.streamFileTreshold = 2047m
  21. git.deltaBaseCacheLimit = 50m