Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,309
Community Members
 
Community Events
165
Community Groups

How Bitbucket rate limit and clone operations are related?

The rate limit mentioned here is 60k/h for authenticated https requests.

Is the `git clone https://...` considered in this limit?

 

1 answer

1 accepted

0 votes
Answer accepted

Hi @Dayany Espindola ,

Git clone operations via HTTPS are counted towards this limit.

This limit is measured for the authenticated user that does this operation, in an one-hour rolling window.

If you have any other questions, please feel free to let me know!

Kind regards,
Theodora

Hi @Theodora Boudale!

First of all, thank you for the reply. And I need more information.

So, if I make a sequence of clones in a list of 200 repos, how many requests will I have made?

Is the request directly related to the number of files in each repo?

Does it work the same way if I use a python/node library or a git cmd to clone?

Kind regards,

Dayany

Hi @Dayany Espindola,

The request is not related to the number of files in the repo.

By default, the client will first make the request without credentials, and will retry with credentials if it gets rejected due to authentication. That first attempt without credentials will count as one request, but if it fails it will count towards the IP address and not your user, since it's an unauthenticated call.

When the client attempts the clone again with credentials, a single operation can be spread over two successful requests: the first to ask for refs, and the second to actually transfer data, which would make it 2 requests per clone that count towards the authenticated user.

Regarding your other question:

Does it work the same way if I use a python/node library or a git cmd to clone?

The way it would work with a library would depend on the implementation of the library. If the library uses a git clone command, I believe it would work the same way. However, if the library uses Bitbucket API (/2.0/repositories/*) to get refs, commits, the number of requests would depend on the number of API calls that are made, and please note that any access to /2.0/repositories/* is limited to 1,000 per hour.

Please feel free to let me know if you have any other questions.

Kind regards,
Theodora

Hi, Theodora: 

Is there a place/console to see whether we are hitting the limits?

I assume, if we have apps installed on bitbucket, those apps may issue api requests, that might slow down other normal operations through normal paths. Could that happen?

Today and yesterday, I'm cloning 85 repos each time to build a software. The cloning has been much slower sometimes among those repos than other days. Did not see any down/incidents on the bitbucket status page. When git receiving objects slowly, did a few internet speed tests, all were fast and normal. Wonder what could have been the cause. Any ideas?

Just want to add, today it's been on two computers, and one using ssh to clone, another using https.

 

Thanks in advance!

-Minghua

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,085 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you