2020-01-08 04:07:53 -05:00
---
type: reference
---
# GitLab application limits
GitLab, like most large applications, enforces limits within certain features to maintain a
minimum quality of performance. Allowing some features to be limitless could affect security,
performance, data, or could even exhaust the allocated resources for the application.
2020-07-17 05:09:43 -04:00
## Rate limits
Rate limits can be used to improve the security and durability of GitLab.
For example, a simple script can make thousands of web requests per second. Whether malicious, apathetic, or just a bug, your application and infrastructure may not be able to cope with the load. Rate limits can help mitigate these types of attacks.
Read more about [configuring rate limits ](../security/rate_limits.md ) in the Security documentation.
### Issue creation
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/28129) in GitLab 12.10.
This setting limits the request rate to the issue creation endpoint.
Read more on [issue creation rate limits ](../user/admin_area/settings/rate_limit_on_issues_creation.md ).
- **Default rate limit** - Disabled by default
### By User or IP
This setting limits the request rate per user or IP.
Read more on [User and IP rate limits ](../user/admin_area/settings/user_and_ip_rate_limits.md ).
- **Default rate limit** - Disabled by default
### By raw endpoint
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/30829) in GitLab 12.2.
This setting limits the request rate per endpoint.
Read more on [raw endpoint rate limits ](../user/admin_area/settings/rate_limits_on_raw_endpoints.md ).
- **Default rate limit** - 300 requests per project, per commit and per file path
### By protected path
This setting limits the request rate on specific paths.
GitLab rate limits the following paths by default:
```plaintext
'/users/password',
'/users/sign_in',
'/api/#{API::API.version}/session.json',
'/api/#{API::API.version}/session',
'/users',
'/users/confirmation',
'/unsubscribes/',
'/import/github/personal_access_token',
'/admin/session'
```
Read more on [protected path rate limits ](../user/admin_area/settings/protected_paths.md ).
- **Default rate limit** - After 10 requests, the client must wait 60 seconds before trying again
### Import/Export
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/35728) in GitLab 13.2.
This setting limits the import/export actions for groups and projects.
| Limit | Default (per minute per user) |
| ----- | ----------------------------- |
| Project Import | 6 |
| Project Export | 6 |
| Project Export Download | 1 |
| Group Import | 6 |
| Group Export | 6 |
| Group Export | Download | 1 |
Read more on [import/export rate limits ](../user/admin_area/settings/import_export_rate_limits.md ).
### Rack attack
This method of rate limiting is cumbersome, but has some advantages. It allows
throttling of specific paths, and is also integrated into Git and container
registry requests.
Read more on the [Rack Attack initializer ](../security/rack_attack.md ) method of setting rate limits.
- **Default rate limit** - Disabled
## Gitaly concurrency limit
Clone traffic can put a large strain on your Gitaly service. To prevent such workloads from overwhelming your Gitaly server, you can set concurrency limits in Gitaly’ s configuration file.
Read more on [Gitaly concurrency limits ](gitaly/index.md#limit-rpc-concurrency ).
- **Default rate limit** - Disabled
2020-01-08 04:07:53 -05:00
## Number of comments per issue, merge request or commit
2020-05-21 02:08:25 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/22388) in GitLab 12.4.
2020-01-08 04:07:53 -05:00
There's a limit to the number of comments that can be submitted on an issue,
merge request, or commit. When the limit is reached, system notes can still be
added so that the history of events is not lost, but user-submitted comments
will fail.
- **Max limit:** 5.000 comments
2020-01-13 13:08:05 -05:00
2020-04-01 14:07:56 -04:00
## Size of comments and descriptions of issues, merge requests, and epics
2020-05-21 02:08:25 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/61974) in GitLab 12.2.
2020-04-01 14:07:56 -04:00
There is a limit to the size of comments and descriptions of issues, merge requests, and epics.
Attempting to add a body of text larger than the limit will result in an error, and the
item will not be created.
It's possible that this limit will be changed to a lower number in the future.
- **Max size:** ~1 million characters / ~1 MB
2020-04-03 11:09:56 -04:00
## Number of issues in the milestone overview
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/39453) in GitLab 12.10.
The maximum number of issues loaded on the milestone overview page is 3000.
When the number exceeds the limit the page displays an alert and links to a paginated
[issue list ](../user/project/issues/index.md#issues-list ) of all issues in the milestone.
- **Limit:** 3000 issues
2020-01-13 13:08:05 -05:00
## Number of pipelines per Git push
2020-05-21 02:08:25 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/51401) in GitLab 11.10.
2020-01-13 13:08:05 -05:00
The number of pipelines that can be created in a single push is 4.
This is to prevent the accidental creation of pipelines when `git push --all`
or `git push --mirror` is used.
Read more in the [CI documentation ](../ci/yaml/README.md#processing-git-pushes ).
## Retention of activity history
2020-05-21 02:08:25 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/21164) in GitLab 8.12.
2020-01-13 13:08:05 -05:00
2020-05-21 02:08:25 -04:00
Activity history for projects and individuals' profiles was limited to one year until [GitLab 11.4 ](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/52246 ) when it was extended to two years, and in [GitLab 12.4 ](https://gitlab.com/gitlab-org/gitlab/-/issues/33840 ) to three years.
2020-01-14 13:08:31 -05:00
2020-03-30 08:07:40 -04:00
## Number of embedded metrics
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/14939) in GitLab 12.7.
There is a limit when embedding metrics in GFM for performance reasons.
- **Max limit:** 100 embeds
2020-02-26 01:09:00 -05:00
## Number of webhooks
2020-08-12 11:10:02 -04:00
On GitLab.com, the [maximum number of webhooks and their size ](../user/gitlab_com/index.md#webhooks ) per project, and per group, is limited.
2020-02-26 01:09:00 -05:00
2020-02-27 19:09:08 -05:00
To set this limit on a self-managed installation, run the following in the
2020-04-06 11:10:04 -04:00
[GitLab Rails console ](troubleshooting/debug.md#starting-a-rails-console-session ):
2020-01-28 01:09:01 -05:00
```ruby
# If limits don't exist for the default plan, you can create one with:
# Plan.default.create_limits!
2020-02-26 01:09:00 -05:00
# For project webhooks
2020-06-19 08:09:07 -04:00
Plan.default.actual_limits.update!(project_hooks: 100)
2020-02-26 01:09:00 -05:00
# For group webhooks
2020-06-19 08:09:07 -04:00
Plan.default.actual_limits.update!(group_hooks: 100)
2020-01-28 01:09:01 -05:00
```
2020-07-16 02:09:33 -04:00
NOTE: **Note:**
Set the limit to `0` to disable it.
2020-01-28 01:09:01 -05:00
2020-03-29 17:08:00 -04:00
## Incoming emails from auto-responders
2020-05-21 02:08:25 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/30327) in GitLab 12.4.
2020-03-29 17:08:00 -04:00
GitLab ignores all incoming emails sent from auto-responders by looking for the `X-Autoreply`
header. Such emails don't create comments on issues or merge requests.
2020-04-01 11:07:45 -04:00
## Amount of data sent from Sentry via Error Tracking
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/14926) in GitLab 12.6.
Sentry payloads sent to GitLab have a 1 MB maximum limit, both for security reasons
and to limit memory consumption.
2020-05-05 17:09:42 -04:00
## Max offset allowed via REST API for offset-based pagination
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/34565) in GitLab 13.0.
When using offset-based pagination in the REST API, there is a limit to the maximum
requested offset into the set of results. This limit is only applied to endpoints that
support keyset-based pagination. More information about pagination options can be
found in the [API docs section on pagination ](../api/README.md#pagination ).
To set this limit on a self-managed installation, run the following in the
[GitLab Rails console ](troubleshooting/debug.md#starting-a-rails-console-session ):
```ruby
# If limits don't exist for the default plan, you can create one with:
# Plan.default.create_limits!
2020-06-19 08:09:07 -04:00
Plan.default.actual_limits.update!(offset_pagination_limit: 10000)
2020-05-05 17:09:42 -04:00
```
- **Default offset pagination limit:** 50000
2020-07-16 02:09:33 -04:00
NOTE: **Note:**
Set the limit to `0` to disable it.
2020-05-05 17:09:42 -04:00
2020-01-20 22:08:37 -05:00
## CI/CD limits
### Number of jobs in active pipelines
2020-05-21 02:08:25 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/32823) in GitLab 12.6.
2020-01-20 22:08:37 -05:00
The total number of jobs in active pipelines can be limited per project. This limit is checked
each time a new pipeline is created. An active pipeline is any pipeline in one of the following states:
- `created`
- `pending`
- `running`
If a new pipeline would cause the total number of jobs to exceed the limit, the pipeline
will fail with a `job_activity_limit_exceeded` error.
- On GitLab.com different [limits are defined per plan ](../user/gitlab_com/index.md#gitlab-cicd ) and they affect all projects under that plan.
2020-03-03 04:07:54 -05:00
- On [GitLab Starter ](https://about.gitlab.com/pricing/#self-managed ) tier or higher self-managed installations, this limit is defined for the `default` plan that affects all projects.
2020-01-20 22:08:37 -05:00
This limit is disabled by default.
2020-03-03 04:07:54 -05:00
To set this limit on a self-managed installation, run the following in the
2020-04-06 11:10:04 -04:00
[GitLab Rails console ](troubleshooting/debug.md#starting-a-rails-console-session ):
2020-01-20 22:08:37 -05:00
```ruby
# If limits don't exist for the default plan, you can create one with:
# Plan.default.create_limits!
2020-06-19 08:09:07 -04:00
Plan.default.actual_limits.update!(ci_active_jobs: 500)
2020-01-20 22:08:37 -05:00
```
2020-07-16 02:09:33 -04:00
NOTE: **Note:**
Set the limit to `0` to disable it.
2020-02-10 01:09:14 -05:00
2020-03-06 06:28:26 -05:00
### Number of CI/CD subscriptions to a project
2020-05-21 02:08:25 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/9045) in GitLab 12.9.
2020-03-06 06:28:26 -05:00
The total number of subscriptions can be limited per project. This limit is
checked each time a new subscription is created.
If a new subscription would cause the total number of subscription to exceed the
limit, the subscription will be considered invalid.
- On GitLab.com different [limits are defined per plan ](../user/gitlab_com/index.md#gitlab-cicd ) and they affect all projects under that plan.
2020-03-12 23:09:49 -04:00
- On [GitLab Starter ](https://about.gitlab.com/pricing/#self-managed ) tier or higher self-managed installations, this limit is defined for the `default` plan that affects all projects.
2020-03-06 06:28:26 -05:00
2020-03-12 23:09:49 -04:00
To set this limit on a self-managed installation, run the following in the
2020-04-06 11:10:04 -04:00
[GitLab Rails console ](troubleshooting/debug.md#starting-a-rails-console-session ):
2020-03-06 06:28:26 -05:00
```ruby
2020-06-19 08:09:07 -04:00
Plan.default.actual_limits.update!(ci_project_subscriptions: 500)
2020-03-06 06:28:26 -05:00
```
2020-07-16 02:09:33 -04:00
NOTE: **Note:**
Set the limit to `0` to disable it.
2020-03-06 06:28:26 -05:00
2020-03-17 14:09:44 -04:00
### Number of pipeline schedules
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/29566) in GitLab 12.10.
The total number of pipeline schedules can be limited per project. This limit is
checked each time a new pipeline schedule is created. If a new pipeline schedule
would cause the total number of pipeline schedules to exceed the limit, the
pipeline schedule will not be created.
On GitLab.com, different limits are [defined per plan ](../user/gitlab_com/index.md#gitlab-cicd ),
and they affect all projects under that plan.
On self-managed instances ([GitLab Starter](https://about.gitlab.com/pricing/#self-managed)
or higher tiers), this limit is defined for the `default` plan that affects all
projects. By default, there is no limit.
To set this limit on a self-managed installation, run the following in the
2020-04-06 11:10:04 -04:00
[GitLab Rails console ](troubleshooting/debug.md#starting-a-rails-console-session ):
2020-03-17 14:09:44 -04:00
```ruby
2020-06-19 08:09:07 -04:00
Plan.default.actual_limits.update!(ci_pipeline_schedules: 100)
2020-03-17 14:09:44 -04:00
```
2020-06-09 11:08:05 -04:00
### Number of instance level variables
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/216097) in GitLab 13.1.
The total number of instance level CI/CD variables is limited at the instance level.
This limit is checked each time a new instance level variable is created. If a new variable
would cause the total number of variables to exceed the limit, the new variable will not be created.
On self-managed instances this limit is defined for the `default` plan. By default,
this limit is set to `25` .
To update this limit to a new value on a self-managed installation, run the following in the
[GitLab Rails console ](troubleshooting/debug.md#starting-a-rails-console-session ):
```ruby
2020-06-19 08:09:07 -04:00
Plan.default.actual_limits.update!(ci_instance_level_variables: 30)
2020-06-09 11:08:05 -04:00
```
2020-07-17 20:09:34 -04:00
### Maximum file size per type of artifact
2020-07-22 11:09:28 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/37226) in GitLab 13.3.
2020-07-17 20:09:34 -04:00
2020-07-22 11:09:28 -04:00
Job artifacts defined with [`artifacts:reports` ](../ci/pipelines/job_artifacts.md#artifactsreports )
2020-09-13 20:09:36 -04:00
that are uploaded by the runner are rejected if the file size exceeds the maximum
2020-07-22 11:09:28 -04:00
file size limit. The limit is determined by comparing the project's
2020-09-07 11:09:04 -04:00
[maximum artifact size setting ](../user/admin_area/settings/continuous_integration.md#maximum-artifacts-size )
2020-07-22 11:09:28 -04:00
with the instance limit for the given artifact type, and choosing the smaller value.
Limits are set in megabytes, so the smallest possible value that can be defined is `1 MB` .
Each type of artifact has a size limit that can be set. A default of `0` means there
is no limit for that specific artifact type, and the project's maximum artifact size
setting is used:
| Artifact limit name | Default value |
|---------------------------------------------|---------------|
| `ci_max_artifact_size_accessibility` | 0 |
| `ci_max_artifact_size_archive` | 0 |
| `ci_max_artifact_size_browser_performance` | 0 |
| `ci_max_artifact_size_cluster_applications` | 0 |
| `ci_max_artifact_size_cobertura` | 0 |
| `ci_max_artifact_size_codequality` | 0 |
| `ci_max_artifact_size_container_scanning` | 0 |
| `ci_max_artifact_size_coverage_fuzzing` | 0 |
| `ci_max_artifact_size_dast` | 0 |
| `ci_max_artifact_size_dependency_scanning` | 0 |
| `ci_max_artifact_size_dotenv` | 0 |
| `ci_max_artifact_size_junit` | 0 |
| `ci_max_artifact_size_license_management` | 0 |
| `ci_max_artifact_size_license_scanning` | 0 |
| `ci_max_artifact_size_load_performance` | 0 |
| `ci_max_artifact_size_lsif` | 20 MB ([introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/37226) in GitLab 13.3) |
| `ci_max_artifact_size_metadata` | 0 |
| `ci_max_artifact_size_metrics_referee` | 0 |
| `ci_max_artifact_size_metrics` | 0 |
| `ci_max_artifact_size_network_referee` | 0 |
| `ci_max_artifact_size_performance` | 0 |
| `ci_max_artifact_size_requirements` | 0 |
| `ci_max_artifact_size_sast` | 0 |
| `ci_max_artifact_size_secret_detection` | 0 |
| `ci_max_artifact_size_terraform` | 5 MB ([introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/37018) in GitLab 13.3) |
| `ci_max_artifact_size_trace` | 0 |
For example, to set the `ci_max_artifact_size_junit` limit to 10MB on a self-managed
installation, run the following in the [GitLab Rails console ](troubleshooting/debug.md#starting-a-rails-console-session ):
2020-07-17 20:09:34 -04:00
```ruby
Plan.default.actual_limits.update!(ci_max_artifact_size_junit: 10)
```
2020-04-07 14:09:19 -04:00
## Instance monitoring and metrics
2020-04-10 14:09:32 -04:00
### Incident Management inbound alert limits
2020-04-22 08:09:29 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17859) in GitLab 12.5.
2020-04-10 14:09:32 -04:00
Limiting inbound alerts for an incident reduces the number of alerts (issues)
that can be created within a period of time, which can help prevent overloading
your incident responders with duplicate issues. You can reduce the volume of
alerts in the following ways:
- Max requests per period per project, 3600 seconds by default.
- Rate limit period in seconds, 3600 seconds by default.
2020-04-07 14:09:19 -04:00
### Prometheus Alert JSON payloads
2020-04-22 08:09:29 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19940) in GitLab 12.6.
2020-04-07 14:09:19 -04:00
Prometheus alert payloads sent to the `notify.json` endpoint are limited to 1 MB in size.
2020-05-18 14:08:22 -04:00
### Generic Alert JSON payloads
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/16441) in GitLab 12.4.
Alert payloads sent to the `notify.json` endpoint are limited to 1 MB in size.
2020-07-09 14:10:09 -04:00
### Metrics dashboard YAML files
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/34834) in GitLab 13.2.
The memory occupied by a parsed metrics dashboard YAML file cannot exceed 1 MB.
The maximum depth of each YAML file is limited to 100. The maximum depth of a YAML
file is the amount of nesting of its most nested key. Each hash and array on the
path of the most nested key counts towards its depth. For example, the depth of the
most nested key in the following YAML is 7:
```yaml
dashboard: 'Test dashboard'
links:
- title: Link 1
url: https://gitlab.com
panel_groups:
- group: Group A
priority: 1
panels:
- title: "Super Chart A1"
type: "area-chart"
y_label: "y_label"
weight: 1
max_value: 1
metrics:
- id: metric_a1
query_range: 'query'
unit: unit
label: Legend Label
```
2020-09-08 11:08:41 -04:00
## Environment Dashboard limits **(PREMIUM)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/33895) in GitLab 13.4.
See [Environment Dashboard ](../ci/environments/environments_dashboard.md#adding-a-project-to-the-dashboard ) for the maximum number of displayed projects.
2020-02-10 10:08:54 -05:00
## Environment data on Deploy Boards
[Deploy Boards ](../user/project/deploy_boards.md ) load information from Kubernetes about
Pods and Deployments. However, data over 10 MB for a certain environment read from
Kubernetes won't be shown.
## Merge Request reports
Reports that go over the 20 MB limit won't be loaded. Affected reports:
2020-09-07 11:09:04 -04:00
- [Merge Request security reports ](../user/project/merge_requests/testing_and_reports_in_merge_requests.md#security-reports )
2020-02-10 10:08:54 -05:00
- [CI/CD parameter `artifacts:expose_as` ](../ci/yaml/README.md#artifactsexpose_as )
2020-08-21 17:10:01 -04:00
- [Unit test reports ](../ci/unit_test_reports.md )
2020-02-10 10:08:54 -05:00
2020-08-27 02:10:37 -04:00
## Advanced Search limits
2020-02-10 01:09:14 -05:00
2020-07-27 08:09:50 -04:00
### Maximum file size indexed
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/8638) in GitLab 13.3.
You can set a limit on the content of repository files that are indexed in
Elasticsearch. Any files larger than this limit will not be indexed, and thus
will not be searchable.
Setting a limit helps reduce the memory usage of the indexing processes as well
as the overall index size. This value defaults to `1024 KiB` (1 MiB) as any
text files larger than this likely aren't meant to be read by humans.
NOTE: **Note:**
You must set a limit, as an unlimited file size is not supported. Setting this
value to be greater than the amount of memory on GitLab's Sidekiq nodes will
lead to GitLab's Sidekiq nodes running out of memory as they will pre-allocate
this amount of memory during indexing.
2020-02-10 01:09:14 -05:00
### Maximum field length
2020-05-21 02:08:25 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/201826) in GitLab 12.8.
2020-02-10 01:09:14 -05:00
You can set a limit on the content of text fields indexed for Global Search.
2020-02-11 22:08:55 -05:00
Setting a maximum helps to reduce the load of the indexing processes. If any
2020-02-10 01:09:14 -05:00
text field exceeds this limit then the text will be truncated to this number of
characters and the rest will not be indexed and hence will not be searchable.
2020-07-27 08:09:50 -04:00
This is applicable to all indexed data except repository files that get
indexed, which have a separate limit (see [Maximum file size
indexed](#maximum-file-size-indexed)).
2020-02-10 01:09:14 -05:00
- On GitLab.com this is limited to 20000 characters
2020-03-03 04:07:54 -05:00
- For self-managed installations it is unlimited by default
2020-02-10 01:09:14 -05:00
2020-03-03 04:07:54 -05:00
This limit can be configured for self-managed installations when [enabling
2020-02-10 01:09:14 -05:00
Elasticsearch](../integration/elasticsearch.md#enabling-elasticsearch).
2020-07-16 02:09:33 -04:00
NOTE: **Note:**
Set the limit to `0` to disable it.
2020-02-13 07:08:49 -05:00
## Wiki limits
2020-07-17 11:09:13 -04:00
- [Wiki page content size limit ](wikis/index.md#wiki-page-content-size-limit ).
2020-02-13 07:08:49 -05:00
- [Length restrictions for file and directory names ](../user/project/wiki/index.md#length-restrictions-for-file-and-directory-names ).
2020-03-25 11:07:47 -04:00
2020-05-14 14:08:06 -04:00
## Snippets limits
See the [documentation on Snippets settings ](snippets/index.md ).
2020-06-17 08:08:42 -04:00
## Design Management limits
See the [Design Management Limitations ](../user/project/issues/design_management.md#limitations ) section.
2020-03-25 11:07:47 -04:00
## Push Event Limits
### Webhooks and Project Services
2020-05-21 02:08:25 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/31009) in GitLab 12.4.
2020-03-25 11:07:47 -04:00
Total number of changes (branches or tags) in a single push. If changes are more
than the specified limit, hooks won't be executed.
More information can be found in these docs:
- [Webhooks push events ](../user/project/integrations/webhooks.md#push-events )
2020-03-30 17:08:01 -04:00
- [Project services push hooks limit ](../user/project/integrations/overview.md#push-hooks-limit )
2020-03-25 11:07:47 -04:00
### Activities
2020-05-21 02:08:25 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/31007) in GitLab 12.4.
2020-03-25 11:07:47 -04:00
Total number of changes (branches or tags) in a single push to determine whether
individual push events or bulk push event will be created.
More information can be found in the [Push event activities limit and bulk push events documentation ](../user/admin_area/settings/push_event_activities_limit.md ).
2020-08-21 11:10:03 -04:00
## Package Registry Limits
### File Size Limits
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/218017) in GitLab 13.4.
On GitLab.com, the maximum file size for a package that's uploaded to the [GitLab Package Registry ](../user/packages/package_registry/index.md )
2020-08-24 14:10:19 -04:00
is 5 gigabytes.
2020-08-21 11:10:03 -04:00
Limits are set per package type.
To set this limit on a self-managed installation, run the following in the
[GitLab Rails console ](troubleshooting/debug.md#starting-a-rails-console-session ):
```ruby
# File size limit is stored in bytes
# For Conan Packages
Plan.default.actual_limits.update!(conan_max_file_size: 100.megabytes)
# For NPM Packages
Plan.default.actual_limits.update!(npm_max_file_size: 100.megabytes)
# For NuGet Packages
Plan.default.actual_limits.update!(nuget_max_file_size: 100.megabytes)
# For Maven Packages
Plan.default.actual_limits.update!(maven_max_file_size: 100.megabytes)
# For PyPI Packages
Plan.default.actual_limits.update!(pypi_max_file_size: 100.megabytes)
2020-09-28 05:09:35 -04:00
# For Debian Packages
Plan.default.actual_limits.update!(debian_max_file_size: 100.megabytes)
2020-08-21 11:10:03 -04:00
```
Set the limit to `0` to allow any file size.