GraphQL API: rate limits for bulk IP allow list mutations (~5,000 entries)? #214466
Replies: 2 comments
|
What the GraphQL limits page pins down: secondary limits are counted per HTTP request. A request with mutations costs 5 points no matter how many aliased mutations it carries, against 2,000 points/minute, and with at most 100 concurrent requests. What it doesn't say is whether IP allow list mutations count toward the 80/min and 500/hour content-creation limit. That list isn't published, so nobody outside GitHub can promise A or B is safe. What I'd do in practice:
If you need a guaranteed rate for the initial 5,000-entry load, that's a question for GitHub Support, since only they can say how these mutations are classified. |
|
The suggestion to use CIDR aggregation and send only the changes makes a lot of sense. I would also recommend starting with smaller batches and monitoring the API responses before increasing the batch size. It would be really useful if GitHub could clarify whether IP allow list mutations count towards the content-generating secondary limits and publish a maximum entry limit. That would make large-scale integrations much easier and safer to manage. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
API
Body
We keep an organization's IP allow list (GitHub Enterprise Cloud) in sync with IP ranges that our SaaS providers publish, via the GraphQL API (
createIpAllowListEntry,updateIpAllowListEntry,deleteIpAllowListEntry).The list is about to grow from ~700 to ~5,000 entries, because one provider alone publishes ~3,000 CIDRs. We're trying to find the fastest pace that won't get the token blocked.
What we do today: one mutation per request, 1 request per second, nothing in parallel, at most 400 mutations per hour. We assume the "500 content-generating requests per hour" secondary limit applies, so 5,000 entries take ~13 hours.
Example – adding 5,000 entries:
Questions:
I've read Rate limits and query limits for the GraphQL API. It says a request with mutations costs 5 points, but it doesn't say whether these mutations count as content-generating, or how aliased mutations are counted. Has anyone bulk-loaded thousands of allow list entries, and what pace worked for you?
All reactions