Repository storage paths
Repository storage paths
在 GitLab 8.10 中引入 .
GitLab 允许您定义多个存储库存储路径(有时称为存储碎片),以在多个安装点之间分配存储负载.
示例:这可以:
这不行,因为它嵌套了存储路径:
现在,您已经阅读了上面的警告提示,让我们编辑配置文件并添加备用存储库存储路径的完整路径. 在下面的示例中,我们添加了另外两个挂载点,分别称为nfs_1
和 .
Note: This example uses NFS. We do not recommend using EFS for storage as it may impact GitLab’s performance. See the for more details.
对于源安装
编辑
gitlab.yml
并添加存储路径:重新启动 GitLab,以使更改生效.
对于所有安装
Choose where new repositories will be stored
设置了多个存储路径后,您可以在管理区域>设置>存储库>存储库存储>新存储库的存储节点下选择新存储库的存储位置 .
可以为每个存储分配 0 到 100 的权重. 创建新项目时,将使用这些权重来确定将在其上创建存储库的存储位置.