1. replication插件重新加载
当修改replication配置文件(replication.config),需要重启gerrit生效,或者重新加载replication。
# 重新加载replication插件
ssh -p 29418 username@gerrit.company.com gerrit plugin reload replication
# 开始复制指令
ssh -p 29418 username@gerrit.company.com replication start --all
2. 查看gerrit当前队列
ssh -p 29418 username@gerrit.company.com gerrit show-queue -w
ssh -p 29418 lian.zhu@gerrit.company.com gerrit show-queue --wide --by-queue
3. 杀进程
ssh -p 29418 username@gerrit.company.com kill [task]
4. 查询当前gerrit内存使用情况
ssh -p 29418 username@gerrit.company.com gerrit show-caches
5. 查看已安装插件
ssh -p 29418 username@gerrit.company.com gerrit plugin ls