Skip to content
代码片段 群组 项目
提交 6a5c3f45 编辑于 作者: Justin Tobler's avatar Justin Tobler 提交者: Evan Read
浏览文件

doc/hooks: Clarify documentation for Cluster hooks

Currently the documentation on how to set custom repository hooks for
Gitaly cluster is vague. The aim of this change is to clarify this
procedure to reduce abiguity.
上级 03bc41f2
No related branches found
No related tags found
无相关合并请求
......@@ -97,8 +97,9 @@ If the server hook code is properly implemented, it should execute when the Git
### Gitaly Cluster
If you use [Gitaly Cluster](gitaly/index.md), the scripts must be copied to every Gitaly node that has a replica of the repository. Every Gitaly node
needs a copy because any node can be made a primary at any time. Server hooks only run on primary nodes.
If you use [Gitaly Cluster](gitaly/index.md), an individual repository may be replicated to multiple Gitaly storages in Praefect.
Consequentially, the hook scripts must be copied to every Gitaly node that has a replica of the repository.
To accomplish this, follow the same steps for setting custom repository hooks for the applicable version and repeat for each storage.
The location to copy the scripts to depends on where repositories are stored:
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册