Rate limits on Git LFS
- Tier: Free, Premium, Ultimate
- Offering: GitLab.com, GitLab Self-Managed
Git LFS (Large File Storage) is a Git extension for handling large files. If you use Git LFS in your repository, common Git operations can generate many Git LFS requests. You can enforce general user and IP rate limits, but you can also override the general setting to enforce additional limits on Git LFS requests. This override can improve the security and durability of your web application.
On GitLab.com
On GitLab.com, Git LFS requests are subject to authenticated web request rate limits. These limits are set to 1000 requests per minute per user.
Each Git LFS object uploaded or downloaded generates an HTTP request that counts toward this limit.
Projects with multiple large files may encounter an HTTP rate limit error. This error occurs during cloning or pulling, when performed from a single IP address in automated environments like CI/CD pipelines.
On GitLab Self-Managed
Git LFS rate limits are disabled by default on GitLab Self-Managed instances. Administrators can configure dedicated rate limits specifically for Git LFS traffic. When enabled, these dedicated LFS rate limits override the default user and IP rate limits.
Configure Git LFS rate limits
Prerequisites:
- You must be an administrator for the instance.
To configure Git LFS rate limits:
- On the left sidebar, at the bottom, select Admin.
- Select Settings > Network.
- Expand Git LFS Rate Limits.
- Select Enable authenticated Git LFS request rate limit.
- Enter a value for Max authenticated Git LFS requests per period per user.
- Enter a value for Authenticated Git LFS rate limit period in seconds.
- Select Save changes.
Related topics
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support