简体   繁体   English

gitlab API 有速率限制吗

[英]Does gitlab API have a rate limit

github 对 OAuth 客户端的速率限制为 5000/小时,但我无法从gitlab 中找到相同的信息(除了创建新用户和重置密码的 6/分钟),是否意味着没有限制?

The answer is no longer "no" , at least on gitlab.com:答案不再是“否” ,至少在 gitlab.com 上是这样:

We enabled capacity limiting on GitLab.com to reduce impact of GitLab Runners on stability of GitLab.我们在 GitLab.com 上启用了容量限制,以减少 GitLab Runners 对 GitLab 稳定性的影响。

Now each API response has the following headers:现在每个 API 响应都有以下标头:

RateLimit-Limit: 600
RateLimit-Observed: 12
RateLimit-Remaining: 588

From this issue , it looks like the limit is 10 requests per second per IP address.这个问题来看,每个 IP 地址的限制似乎是每秒 10 个请求。

截至今天(2016 年 9 月),答案是否定的。

It looks like GitLab has now (December 2019) documented their rate limits.看起来 GitLab 现在(2019 年 12 月)已经记录了他们的速率限制。

gitlab.com-specific rate limits are documented here: https://docs.gitlab.com/ee/user/gitlab_com/index.html#gitlabcom-specific-rate-limits gitlab.com 特定的速率限制记录在此处: https ://docs.gitlab.com/ee/user/gitlab_com/index.html#gitlabcom-specific-rate-limits

TL;DR: 10 requests per second per IP address (as @Maxim mentioned) TL;DR:每个 IP 地址每秒 10 个请求(如@Maxim 所述)

And I believe this is for enterprise rate limiting: https://docs.gitlab.com/ee/security/rate_limits.html我相信这是用于企业速率限制: https : //docs.gitlab.com/ee/security/rate_limits.html

For self-managed deploys the rate limits are configurable.对于自我管理的部署,速率限制是可配置的。 For GitLab.com specific rate limits see here .对于 GitLab.com 特定的速率限制,请参见此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM