Skip to content
代码片段 群组 项目

Add the cicd minutes doc

已关闭 Qi Zhao requested to merge add_glossary_doc into main-jh
所有主题已解决!
文件
2
@@ -186,27 +186,56 @@ Job duration * Cost factor
一条流水线使用的 CI/CD 分钟数是流水线中运行的所有作业使用的总 CI/CD 分钟数。作业可以同时运行,因此总 CI/CD 分钟使用量可能高于流水线的端到端持续时间。
<!--
### Cost factor
### 消耗参数
The cost factor for a job running on a shared runner is:
在 JiHuLab 的共享运行器上运行作业的消耗参数为:
- `0.008` for public projects on GitLab SaaS, if [created 2021-07-17 or later](https://gitlab.com/gitlab-org/gitlab/-/issues/332708).
(For every 125 minutes of job time, you accrue 1 CD/CD minute.)
- `0.008` for projects members of GitLab [Open Source program](../../subscriptions/index.md#gitlab-for-open-source).
(For every 125 minutes of job time, you accrue 1 CD/CD minute.)
- `0` for public projects on GitLab self-managed instances, and for GitLab SaaS public projects created before 2021-07-17.
- `1` for internal and private projects.
- `1`:内部和私有项目。
- `0.5`[极狐GitLab 开源项目](../../subscriptions/index.md#gitlab-for-open-source)中的公开项目。
- `0.008`[极狐GitLab 开源项目](../../subscriptions/index.md#gitlab-for-open-source)中公开项目的公开派生。对于每 125 分钟的作业执行时间,
您会使用 1 个 CI/CD 分钟数。
- `1`:2022 年 10 月 1 日之后的其他公开项目。
对于每 1 分钟的作业执行时间,您会使用 1 个 CI/CD 分钟数。
- [免费版极狐GitLab 项目](#cost-factor-for-community-contributions-to-gitlab-projects)有另外的计算方式。
### Additional costs on GitLab SaaS
私有化部署的消耗参数为:
GitLab SaaS shared runners have different cost factors, depending on the runner type (Linux, Windows, macOS) and the virtual machine configuration.
- `0`:公开项目,不消耗 CI/CD 分钟数。
- `1`:内部和私有项目。
<a id="cost-factor-for-community-contributions-to-gitlab-projects"></a>
#### 免费版极狐GitLab 项目的消耗参数
使用免费版极狐GitLab 的贡献者在为极狐GitLab 维护的开源项目做出贡献时可以使用共享 Runner 上的 30 万分钟数。
这 30 万分钟数适用于所有 SaaS 层,消耗参数计算方式如下:
- `Monthly minute quota / 300,000 job duration minutes = Cost factor`
例如,专业版中每个月拥有 10,000 的 CI/CD 分钟数:
- 10,000 / 300,000 = 0.03333333333 消耗参数
对于降低的消耗参数:
- 合并请求源项目必须是极狐GitLab 所维护项目的派生。
<!--例如 [`gitlab-com/www-gitlab-com`](https://gitlab.com/gitlab-com/www-gitlab-com)
[`gitlab-org/gitlab`](https://gitlab.com/gitlab-org/gitlab) 等。-->
- 合并请求目标项目必须是派生的父项目。
- 流水线必须是合并请求、合并结果或合并队列流水线。
极狐GitLab 管理员可以使用名为 `ci_minimal_cost_factor_for_gitlab_namespaces`[标志](../../administration/feature_flags.md)将命名空间添加到降低的消耗参数中。
### JiHuLab SaaS 上的额外消耗
JiHuLab SaaS Runner 根据不同的 Runner 类型(Linux、Windows 或 macOS)和虚拟机配置,拥有不同的消耗参数。
| JiHuLab SaaS Runner 类型 | 机器类型 | CI/CD 分钟数消耗参数 |
|:---------------------------|:-----|:---------------------------------|
| Linux OS + Docker 执行器 | 小 | 1 |
| Linux OS + Docker 执行器 | 中 | 2 |
| Linux OS + Docker 执行器 | 大 | 3 |
| SaaS runner 类型 | 虚拟机配置 | CI/CD 分钟消耗因数 |
| :--------- | :------------------- | :--------- |
| Linux OS + Docker executor| 1 vCPU, 3.75 GB RAM |1|
| macOS + shell executor | 4 vCPU, 10 GB RAM| 6 |
-->
### 每月重置 CI/CD 分钟数
加载中