Import and export rate limits

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab Self-Managed

You can configure the rate limits for file imports and exports of projects and groups, for imports from other sources, and for relations exports used by direct transfer. For information on the default rate limits, see import and export rate limits and direct transfer limits.

When a user exceeds a rate limit, it is logged in auth.log.

Change an import or export rate limit

Prerequisites:

  • Administrator access.

To change a rate limit:

  1. In the upper-right corner, select Admin.
  2. In the left sidebar, select Settings > Network.
  3. Expand Import and export rate limits.
  4. Change the value of any rate limit. The rate limits are per minute per user, not per IP address. The relations export rate limits are also per project or group. The project export rate limit per top-level group or personal namespace is per 10 minutes, not per user. Set to 0 to disable a rate limit.
SettingApplies toDefault
Maximum project import requests per minuteFile-based project imports, starting an import from any source in the UI, and starting a GitHub, Bitbucket Cloud, or Bitbucket Server import with the API.6
Maximum project export requests per 10 minutes per top-level group or personal namespaceProject export requests across all projects in a top-level group and its subgroups, or in a personal namespace, from the UI and the API. Each export request also counts against the per-user project export rate limit. Requests that are rejected still count, so one project can use up the limit for the whole group. 0 means no limit. While the project_export_by_root_namespace_rate_limit feature flag is disabled, requests over the limit are logged but not rejected.0

Change the GitHub gists import rate limit

The rate limit for importing GitHub gists is not available in the Admin area. The default is 6 requests per minute per user.

Prerequisites:

  • Administrator access.

To change the rate limit, use one of the following:

  • The application settings API:

    shell
    curl --request PUT \
      --header "PRIVATE-TOKEN: <your_access_token>" \
      --url "https://gitlab.example.com/api/v4/application/settings?github_gists_import_limit=10"
  • The Rails console:

    ruby
    ApplicationSetting.current.update!(github_gists_import_limit: 10)

Set to 0 to disable the rate limit.