Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does gitlab API have a rate limit

Tags:

gitlab

api

github has a rate limit of 5000/hour for OAuth client, but I can't find the same information from gitlab (apart from 6/minute for creating new users and resetting password), does it mean there's no limit?

like image 835
swang Avatar asked Jul 20 '16 10:07

swang


People also ask

Does your API implement rate limiting?

To prevent an API from being overwhelmed, API owners often enforce a limit on the number of requests, or the quantity of data clients can consume. This is called Application Rate Limiting. If a user sends too many requests, API rate limiting can throttle client connections instead of disconnecting them immediately.

Is there a limit to API calls?

In the API Console, there is a similar quota referred to as Requests per 100 seconds per user. By default, it is set to 100 requests per 100 seconds per user and can be adjusted to a maximum value of 1,000. But the number of requests to the API is restricted to a maximum of 10 requests per second per user.

What is GitHub API rate limit?

When using GITHUB_TOKEN , the rate limit is 1,000 requests per hour per repository. For requests to resources that belong to an enterprise account on GitHub.com, GitHub Enterprise Cloud's rate limit applies, and the limit is 15,000 requests per hour per repository.

What is rate limit in API connect?

API Connect supports two types of rate limiting: Rate limit. A specified number of calls to be accepted within a defined time period; for example, 100 calls per minute. In API Connect, rate limits can be defined as unlimited, or with a specified number of calls per second, minute, hour, day, or week.

What is the rate limit in GitLab?

The rate limit is 5 requests per minute per user. Introduced in GitLab 13.4. There is a rate limit for testing webhooks, which prevents abuse of the webhook functionality. The rate limit is 5 requests per minute per user. Introduced in GitLab 14.7. There is a rate limit per IP address on the /users/sign_up endpoint.

What is the maximum number of requests for a GitHub installation?

The maximum rate limit for an installation is 12,500 requests per hour. GitHub Apps that are installed on an organization or repository owned by a GitHub Enterprise Cloud account and make server-to-server requests have a rate limit of 15,000 requests per hour.

What is the GitHub app traffic rate limit?

Rate limits for GitHub Apps help control the rate of traffic. GitHub Apps making server-to-server requests use the installation's minimum rate limit of 5,000 requests per hour. Organization installations with more than 20 users receive another 50 requests per hour for each user.

What is the rate limit for server-to-server requests on GitHub?

GitHub Apps making server-to-server requests use the installation's minimum rate limit of 5,000 requests per hour. Organization installations with more than 20 users receive another 50 requests per hour for each user. Installations that have more than 20 repositories receive another 50 requests per hour for each repository.


2 Answers

The answer is no longer "no", at least on gitlab.com:

We enabled capacity limiting on GitLab.com to reduce impact of GitLab Runners on stability of GitLab.

Now each API response has the following headers:

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.

like image 89
Maxim Avatar answered Sep 17 '22 16:09

Maxim


For self-managed deploys the rate limits are configurable. For GitLab.com specific rate limits see here.

like image 35
mljrg Avatar answered Sep 17 '22 16:09

mljrg