【Gerrit】Performance Cheat Sheet
首先说下做这件事情的主因,组内有人说Project repo sync有点慢,废话不多说,直接上图.




我的数据:
~/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
【Gerrit】Performance Cheat Sheet的更多相关文章
- 【BZOJ2806】[Ctsc2012]Cheat 广义后缀自动机+二分+单调队列优化DP
[BZOJ2806][Ctsc2012]Cheat Description Input 第一行两个整数N,M表示待检查的作文数量,和小强的标准作文库的行数接下来M行的01串,表示标准作文库接下来N行的 ...
- 【Gerrit】持续集成工具Jenkins的安装配置与使用过程中遇到的问题整理
1.下载war包 https://jenkins.io/download/ 2.安装 java -jar jenkins.war Error: Feb 21, 2019 2:17:25 AM wins ...
- 【原创】leetCodeOj --- Excel Sheet Column Title 解题报告
题目地址: https://oj.leetcode.com/problems/excel-sheet-column-title/ 题目内容: Given a positive integer, ret ...
- 【Gerrit】Gerrit cmd query (gerrit命令行查询change信息)
本文仅展现个人使用情况和理解,英文原址:https://review.openstack.org/Documentation/cmd-query.html 基本使用格式: ssh -p <por ...
- 【Gerrit】gerrit server搭建
Part 1 Gerrit Prerequisites: 1.Java JDK>1.7 2.Git 3.SSH server 4.DB part 2 Set local gerrit serv ...
- 【Gerrit】Gerrit与Jenkins/Hudson CI服务器搭建
配置Git 很多系统(例如Linux)已经默认提供了Git,在Git主页也可以找到安装程序.对于Windows用户,最好的选择是MsysGit.请注意,如果你安装了Apple Developer To ...
- 【LeetCode】168 & 171- Excel Sheet Column Title & Excel Sheet Column Number
168 - Excel Sheet Column Title Given a positive integer, return its corresponding column title as ap ...
- 【LeetCode】168. Excel Sheet Column Title
题目: Given a positive integer, return its corresponding column title as appear in an Excel sheet. For ...
- 【LeetCode】171. Excel Sheet Column Number
题目: Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, r ...
随机推荐
- VBA Code for Word Navigation Pane 【failed】 view-showheading-method-word
https://msdn.microsoft.com/VBA/Word-VBA/articles/view-showheading-method-word View.ShowHeading Metho ...
- 数组filter方法对数组元素进行过滤
Array.prototype.filter对数组中元素进行过滤 /** * @method reduce * @param {number} item 当前迭代的数组元素 * @param {num ...
- activiti自己定义流程之整合(五):启动流程时获取自己定义表单
流程定义部署之后,自然就是流程定义列表了,但和前一节一样的是,这里也是和之前单独的activiti没什么差别.因此也不多说.我们先看看列表页面以及相应的代码,然后在一步步说明点击启动button时怎样 ...
- java--css+js做的树形菜单(完整版)
jsp页面: <%@ page language="java" import="java.util.*" pageEncoding="UTF-8 ...
- WPF Chart 图标
DevExpress: <dxc:ChartControl.Diagram> <dxc:XYDiagram2D.SeriesTemplate> </dxc:XYDiagr ...
- java及jdbc与sql之间日期的转换
javaSE中主要为日期字符串和日期对象之间的转换 JDBC中主要是util中Date与sql中作为数据库中Date的转换 public class DateDemo { public static ...
- [UWP]使用Acrylic(亚克力)
原文:[UWP]使用Acrylic(亚克力) 1. 前言 在 如何使用Fluent Design System 这篇文章里已经简单介绍过Reveal的用法,这篇再详细介绍其它内容. 自Windows ...
- Access control differentiation in trusted computer system
A trusted computer system that offers Linux® compatibility and supports contemporary hardware speeds ...
- 利用WPF建立自己的3d gis软件(非axhost方式)(七)实现简单的粒子效果
原文:利用WPF建立自己的3d gis软件(非axhost方式)(七)实现简单的粒子效果 先下载SDK:https://pan.baidu.com/s/1M9kBS6ouUwLfrt0zV0bPew密 ...
- js限制文本框input只能输入数字
JS判断只能是数字和小数点. ,文本框只能输入数字代码(小数点也不能输入) 复制代码 代码示例:<input onkeyup="this.value=this.value.replac ...