You are not logged in.

#1 2023-06-02 18:41:21

gripped
Member
From: UK
Registered: 2013-03-15
Posts: 13
Website

[SOLVED] Arch Gitlab Rate limits

Would it be possible to tell me what they are ?
Or point me to where it's documented ?

Then I can make sure my script stays within them.

Cheers

Last edited by gripped (2023-06-05 10:45:05)

Offline

#2 2023-06-02 19:08:06

seth
Member
Registered: 2012-09-03
Posts: 51,235

Offline

#3 2023-06-02 19:20:23

gripped
Member
From: UK
Registered: 2013-03-15
Posts: 13
Website

Re: [SOLVED] Arch Gitlab Rate limits

I did.
At the moment I'm experimenting. I tried a few sleep lengths in between each iteration but the rate limit kicked in at the same point.
I've just tried collecting the exception and if 429 waiting 5 minutes and then retrying.
It was somewhere between 10 and 15 minutes before I was allowed to download again and then it seems like (though I'm estimating) I was allowed the same number of git clones before the rate limiting kicked in again. I'm soon to discover if it's a sliding scale upwards before I'm going again.

Trial and error.
Whatever the rate limits are I think they are a bit on the low side, but that's just me.
But it would be helpful to know what they are smile

Last edited by gripped (2023-06-02 19:21:00)

Offline

#4 2023-06-04 15:02:20

gripped
Member
From: UK
Registered: 2013-03-15
Posts: 13
Website

Re: [SOLVED] Arch Gitlab Rate limits

It is documented here https://gitlab.archlinux.org/help/insta … ate-limits
Rate limit
Requests per period 600
Period in seconds 600

But it's either wrong regarding "Requests per period" or a git pull or clone is counted as more than one request on the server ?

You can do 200 requests such as git pull or git clone in a 600 second period.
Then the rate limiting kicks in until the end of the period

If you don't go above 1 request every 3 seconds you'll have no issues with rate limiting

Offline

Board footer

Powered by FluxBB