请教Git服务器运维经验

42 views
Skip to first unread message

Justin Wong

unread,
Oct 9, 2015, 2:39:26 AM10/9/15
to tuna-g...@googlegroups.com, thu-opensourc...@googlegroups.com, ustc...@googlegroups.com
Hi there,

我是 TUNA mirrors 管理员。TUNA AOSP 镜像业务目前处于吃满服务器CPU/内存/磁盘IO状态,难以继续运行。

之前看了 Git 2.0 之后从 JGit 引来了 Bitmap 索引,号称提速很多,但是能查到的资料很有限,JGit 的资料
更少,相关的文档只看到了 Google 的运维经验 [1]

请问是否有人有运维大规模 Git 服务的经验,可以分享一下?


Cheers,
Justin

[1] https://www.eclipsecon.org/2013/sites/eclipsecon.org.2013/files/Scaling%20Up%20JGit%20-%20EclipseCon%202013.pdf
--
Justin Wong

Blog: https://bigeagle.me/
Fingerprint: 15CC 6A61 738B 1599 0095 E256 CB67 DA7A 865B AC3A
signature.asc

Justin Wong

unread,
Oct 10, 2015, 8:56:44 AM10/10/15
to tuna-g...@googlegroups.com, thu-opensourc...@googlegroups.com, ustc...@googlegroups.com
更新 Git 到 2.6.0, 对所有目录执行了一遍 git repack -abd 建立 bitmap 索引,目前看起来效果拔群。

昨天大约凌晨1点建完的索引,
附件中 service_traffic_IPv4 是 mirrors 流量图,绿色部分为 git://
的流量,昨天0点之前和今天白天的流量都比较大;
cpu 是 CPU 占用率,在今天流量大于昨天0点之前的情况下,今天基本一直在100以下。


--
Justin Wong
Fingerprint: 15CC 6A61 738B 1599 0095 E256 CB67 DA7A 865B AC3A

> Email had 1 attachment:
> + signature.asc
> 1k (application/pgp-signature)
cpu-day.png
service_traffic_IPv4-day.png
Reply all
Reply to author
Forward
0 new messages