Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
Container registry
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
提交
d791b1ef
提交
d791b1ef
编辑于
8 years ago
作者:
Jacob Vosmaer
浏览文件
操作
下载
补丁
差异文件
Add gitaly admin docs
上级
6c3ce620
No related branches found
分支 包含提交
No related tags found
标签 包含提交
无相关合并请求
变更
2
隐藏空白变更内容
行内
左右并排
显示
2 个更改的文件
doc/administration/gitaly/index.md
+86
-0
86 个添加, 0 个删除
doc/administration/gitaly/index.md
doc/install/installation.md
+3
-0
3 个添加, 0 个删除
doc/install/installation.md
有
89 个添加
和
0 个删除
doc/administration/gitaly/index.md
0 → 100644
+
86
−
0
浏览文件 @
d791b1ef
# Gitaly
[
Gitaly
](
https://gitlab.com/gitlab-org/gitlay
)
(
introduced
in GitLab
9.
0) is a service that provides high-level RPC access to Git
repositories. As of GitLab 9.0 it is still an optional component with
limited scope.
GitLab components that access Git repositories (gitlab-rails,
gitlab-shell, gitlab-workhorse) act as clients to Gitaly. End users do
not have direct access to Gitaly.
## Configuring Gitaly
The Gitaly service itself is configured via environment variables.
These variables are documented
[
in the gitaly
repository
](
https://gitlab.com/gitlab-org/gitaly/blob/master/doc/configuration/README.md
)
.
To change a Gitaly environment variable in Omnibus you can use
`gitaly['env']`
in
`/etc/gitlab/gitlab.rb`
. Changes will be applied
when you run
`gitlab-ctl reconfigure`
.
```
ruby
gitaly
[
'env'
]
=
{
'GITALY_MY_VARIABLE'
=>
'value'
}
```
To change a Gitaly environment variable in installations from source
you can edit
`/home/git/gitaly/env`
.
```
shell
GITALY_MY_VARIABLE
=
'value'
```
Changes to
`/home/git/gitaly/env`
are applied when you run
`service
gitlab restart`
.
## Configuring GitLab to not use Gitaly
Gitaly is still an optional componennt in GitLab 9.0. This means you
can choose to not use it.
In Omnibus you can make the following change in
`/etc/gitlab/gitlab.rb`
and reconfigure. This will both disable the
Gitaly service and configure the rest of GitLab not to use it.
```
ruby
gitaly
[
'enable'
]
=
false
```
In source installations, edit
`/home/git/gitlab/config/gitlab.yml`
and
make sure
`socket_path`
in the
`gitaly`
section is commented out. This
does not disable the Gitaly service; it only prevents it from being
used.
Apply the change with
`service gitlab restart`
.
```
yaml
gitaly
:
# socket_path: tmp/sockets/private/gitlay.socket
```
## Disabling or enabling the Gitaly service
Be careful: if you disable Gitaly without instructing the rest of your
GitLab installation not to use Gitaly, you may end up with errors
because GitLab tries to access a service that is not running.
To disable the Gitaly service in your Omnibus installation, add the
following line to
`/etc/gitlab/gitlab.rb`
:
```
ruby
gitaly
[
'enable'
]
=
false
```
When you run
`gitlab-ctl reconfigure`
the Gitaly service will be
disabled.
To disable the Gitaly service in an installation from source, add the
following to
`/etc/default/gitlab`
:
```
shell
gitaly_enabled
=
false
```
When you run
`service gitlab restart`
Gitaly will be disabled.
\ No newline at end of file
此差异已折叠。
点击以展开。
doc/install/installation.md
+
3
−
0
浏览文件 @
d791b1ef
...
...
@@ -483,6 +483,9 @@ the `gitaly:` section is uncommented.
gitaly:
socket_path: tmp/sockets/private/gitaly.socket
For more information about configuring Gitaly see
[
doc/administration/gitaly
](
../administration/gitaly
)
.
### Setup Logrotate
sudo cp lib/support/logrotate/gitlab /etc/logrotate.d/gitlab
...
...
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录