【Gerrit】Performance Cheat Sheet

首先说下做这件事情的主因,组内有人说Project repo sync有点慢,废话不多说,直接上图.
786205-20190618171841984-49496203.png

786205-20190618171855033-1998400163.png

786205-20190618171905709-122265474.png

786205-20190618171922722-1676378779.png

相关官方文档参考链接:

我的数据:

~/review_site/logs# fgrep "git-upload-pack" sshd_log.2019-06-17 | wc -l
7477
~/review_site/logs# fgrep "git-receive-pack" sshd_log.2019-06-17 | wc -l
9

我的服务器配置:

mmmm@ubuntu:~$ free -m
              total        used        free      shared  buff/cache   available
Mem:          64391       12022        1280          20       51087       51664
Swap:         15258         510       14748
mmmm@ubuntu:~$ cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
2
mmmm@ubuntu:~$ cat /proc/cpuinfo | grep "cpu cores" | uniq
cpu cores   : 10
mmmm@ubuntu:~$ cat /proc/cpuinfo | grep "processor" | wc -l
40
mmmm@ubuntu:~$ cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
     40  Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz

我的配置改动展示:

[gerrit]
        basePath = git
        serverId = 9c50f982-2140-47e3-bb05-xxxxxxxxx
        canonicalWebUrl = http://xx.xx.xx.xx:8080/
[gc]
        interval = 1w
        startTime = Sun 8:30
[database]
        type = h2
        database = /xxxxx/xxxxx/review_site/db/ReviewDB
        poolLimit = 150
        poolMaxIdle = 16
[index]
        type = LUCENE
[auth]
        type = LDAP
[ldap]
        server = ldap://xx.xx.xx.xx
        username = cn=admin,dc=xxx,dc=xxx
        accountBase = ou=People,dc=xxx,dc=xxx
        groupBase = ou=Groups,dc=xxx,dc=xxx
[receive]
        enableSignedPush = false
        timeout = 4min
[sendemail]
        enable = true
        smtpServer = smtpinternal.xxxxx.com
        smtpServerPort = 25
        smtpUser = XxxxCodeReview@xxxx.com
        from = XxxxCodeReview<XxxxCodeReview@xxxx.com>
[cache]
        directory = cache
[container]
        user = root
        javaHome = /usr/lib/jvm/java-8-openjdk-amd64/jre
        heapLimit = 16g
[core]
        packedGitLimit = 4g
        packedGitWindowSize = 16k
        packedGitOpenFiles = 2048
[sshd]
        listenAddress = *:29418
        threads = 32
        batchThreads = 4
        CommandStartThreads = 3
[httpd]
        listenUrl = http://*:8080/
        maxThreads = 50
[gitweb]
        type = gitweb
        cgi = /usr/share/gitweb/gitweb.cgi
[plugins]
        allowRemoteAdmin = true
[pack]
        threads = 4

转载于:https://www.cnblogs.com/wucaiyun1/p/11046449.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值