Configuring rate limits

You can set rate limits for GitHub Enterprise Server using the Management Console.

In this article

Did this doc help you?

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.

Enabling rate limits for the GitHub Enterprise Server API

Enabling rate limits on the GitHub Enterprise Server API can prevent overuse of resources by individual or unauthenticated users. For more information, see "Resources in the REST API."

Note: The Management Console lists the time period (per minute or per hour) for each rate limit.

  1. From a GitHub Enterprise Server administrative account, click in the upper-right corner of any page.
    Rocketship icon for accessing site admin settings
  2. In the left sidebar, click Management Console.
    Management Console tab in the left sidebar
  3. Under "Rate Limiting", select Enable API Rate Limiting.
    Checkbox for enabling API rate limiting
  4. Type limits for authenticated and unauthenticated requests for each API, or accept the pre-filled default limits.
  5. Under the left sidebar, click Save settings.
    The Save settings button in the Management Console
  6. Wait for the configuration run to complete.

Enabling abuse rate limits

Setting abuse rate limits protects the overall level of service on your GitHub Enterprise Server instance.

  1. From a GitHub Enterprise Server administrative account, click in the upper-right corner of any page.
    Rocketship icon for accessing site admin settings
  2. In the left sidebar, click Management Console.
    Management Console tab in the left sidebar
  3. Under "Rate Limiting", select Enable Abuse Rate Limiting.
    Checkbox for enabling abuse rate limiting
  4. Type limits for Total Requests, CPU Limit, and CPU Limit for Searching, or accept the pre-filled default limits.
  5. Under the left sidebar, click Save settings.
    The Save settings button in the Management Console
  6. Wait for the configuration run to complete.

Enabling Git rate limits

You can apply Git rate limits per repository network or per user ID. Git rate limits are expressed in concurrent operations per minute, and are adaptive based on the current CPU load.

  1. From a GitHub Enterprise Server administrative account, click in the upper-right corner of any page.
    Rocketship icon for accessing site admin settings
  2. In the left sidebar, click Management Console.
    Management Console tab in the left sidebar
  3. Under "Rate Limiting", select Enable Git Rate Limiting.
    Checkbox for enabling Git rate limiting
  4. Type limits for each repository network or user ID.
    Fields for repository network and user ID limits
  5. Under the left sidebar, click Save settings.
    The Save settings button in the Management Console
  6. Wait for the configuration run to complete.

Did this doc help you?

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.