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

In this guide

Enabling rate limits for the GitHub Enterprise API

Enabling rate limits on the GitHub Enterprise API can prevent overuse of resources by individual or unauthenticated users. For more information, see "Rate Limiting" in the GitHub Developer documentation.

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

  1. Rocketship icon for accessing site admin settingsIn the upper-right corner of any page, click .

  2. Management Console tab in the left sidebarIn the left sidebar, click Management Console.

  3. Checkbox for enabling API rate limitingUnder "Rate Limiting", select Enable API Rate Limiting.

  4. Type limits for authenticated and unauthenticated requests for each API, or accept the pre-filled default limits.
  5. Save settings buttonUnder the left sidebar, click Save settings.

Enabling abuse rate limits

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

  1. Rocketship icon for accessing site admin settingsIn the upper-right corner of any page, click .

  2. Management Console tab in the left sidebarIn the left sidebar, click Management Console.

  3. Checkbox for enabling abuse rate limitingUnder "Rate Limiting", select Enable Abuse Rate Limiting.

  4. Type limits for Total Requests, CPU Limit, and CPU Limit for Searching, or accept the pre-filled default limits.
  5. Save settings buttonUnder the left sidebar, click Save settings.

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. Rocketship icon for accessing site admin settingsIn the upper-right corner of any page, click .

  2. Management Console tab in the left sidebarIn the left sidebar, click Management Console.

  3. Checkbox for enabling Git rate limitingUnder "Rate Limiting", select Enable Git Rate Limiting.

  4. Fields for repository network and user ID limitsType limits for each repository network or user ID.
  5. Save settings buttonUnder the left sidebar, click Save settings.