Configuring rate limits

You can set rate limits for GitHub Enterprise Server using the 管理控制台.

Enabling rate limits for the GitHub Enterprise Server APIs

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

You can exempt a list of users from API rate limits using the ghe-config utility in the administrative shell. For more information, see "Command-line utilities."

Note: The 管理控制台 lists the time period (per minute or per hour) for each rate limit.

  1. From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .

    Screenshot of the rocket ship icon for accessing site admin settings

  2. If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.

    Screenshot of "Site admin" link

  3. 在左侧边栏中,单击 管理控制台左侧边栏中的 管理控制台 选项卡

  4. Under "Rate Limiting", select Enable HTTP API Rate Limiting. Checkbox for enabling API rate limiting

  5. Type limits for authenticated and unauthenticated requests for each API, or accept the pre-filled default limits.

  6. 在左侧边栏下,单击 Save settings(保存设置)管理控制台 中的 Save settings 按钮

  7. 等待配置运行完毕。

Enabling secondary rate limits

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

  1. From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .

    Screenshot of the rocket ship icon for accessing site admin settings

  2. If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.

    Screenshot of "Site admin" link

  3. 在左侧边栏中,单击 管理控制台左侧边栏中的 管理控制台 选项卡

  4. Under "Rate Limiting", select Enable Secondary Rate Limiting. Checkbox for enabling secondary rate limiting

  5. Type limits for Total Requests, CPU Limit, and CPU Limit for Searching, or accept the pre-filled default limits.

  6. 在左侧边栏下,单击 Save settings(保存设置)管理控制台 中的 Save settings 按钮

  7. 等待配置运行完毕。

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 an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .

    Screenshot of the rocket ship icon for accessing site admin settings

  2. If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.

    Screenshot of "Site admin" link

  3. 在左侧边栏中,单击 管理控制台左侧边栏中的 管理控制台 选项卡

  4. Under "Rate Limiting", select Enable Git Rate Limiting. Checkbox for enabling Git rate limiting

  5. Type limits for each repository network or user ID. Fields for repository network and user ID limits

  6. 在左侧边栏下,单击 Save settings(保存设置)管理控制台 中的 Save settings 按钮

  7. 等待配置运行完毕。

此文档对您有帮助吗?

隐私政策

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或者, 了解如何参与。