选择Git版本
rate_limit_on_pipelines_creation.md
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。
rate_limit_on_pipelines_creation.md 1.43 KiB
stage: Verify
group: Pipeline Execution
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments
Rate limits on pipeline creation
DETAILS: Tier: Free, Premium, Ultimate Offering: Self-managed
- Introduced in GitLab 15.0.
You can set a limit so that users and processes can't request more than a certain number of pipelines each minute. This limit can help save resources and improve stability.
For example, if you set a limit of 10
, and 11
requests are sent to the trigger API within one minute,
the eleventh request is blocked. Access to the endpoint is allowed again after one minute.
This limit is:
- Applied to the number of pipelines created for the same combination of project, commit, and user.
- Not applied per IP address.
- Disabled by default.
Requests that exceed the limit are logged in the application_json.log
file.
Set a pipeline request limit
To limit the number of pipeline requests:
- On the left sidebar, at the bottom, select Admin.
- Select Settings > Network.
- Expand Pipelines Rate Limits.
- Under Max requests per minute, enter a value greater than
0
. - Select Save changes.
- Enable
ci_enforce_throttle_pipelines_creation
feature flag to enable the rate limit.