-
Maybe bitbucket launched new policy (http status 429 Too many Requests from bitbucket). So, My team changed gitSync.syncWait 5 -> 60 and considering applying maxFailures. What value should I use for maxFailures? I found related issue. but I am not confidence. #30268 dags:
gitSync:
maxFailures: -1 # never die.. it is good?..? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's more of a question to git-sync repo https://github.com/kubernetes/git-sync you can see all the options they have there and what effect they might have - and they have all teh expert knowledge about it.
No idea. Depending what you want to achieve. It very much depends on why you have the problem I think you need to solve the problem of too many request first. And also work with Bitbucket repo. If BitBucket does not allow you to run too many requests you should consider fine-tuning (as you did) or - if possible - lifting the limits you have imposed by BitBucket. Since (I preseume) you pay them for hosting your repo you can talk to their support on that. Usually when you are syncing from any remote Git repo. they apply various kind of measures to limit overloading their system. If you are not authenticated to your account, they have very low limits based on public IP address. You have not explained what mechanism you have but if you are not authenticated, then you are likely to hit the limit because you are sharing the limit with every other bitbucket request from the same public IP (Which might be thousands of people and system depending on your networking setup). So if you are not authenticated - you should. Maybe also BitBucket has the optiont to increase your limits - generally speaking you should read their docs about it and contact their support to see what you can do to NOT hit the limits at all. But this is between you and BitBucket. Finally if you cannot get the limits lifted, I can recommend you to setup pipeline where you can trigger syncing with git-sync via sending a signal to git-sync containers when the repository changes. Git-sync has such an option and you can connect webhook from BitBucket to trigger your git-sync containers when there is a change pushed to your repo. It would require a custom implementaiton of such a webhook and signal propagation, it would require an ingress in your K8S and something that would propagate such signal - but it is entirely possible via
|
Beta Was this translation helpful? Give feedback.
It's more of a question to git-sync repo https://github.com/kubernetes/git-sync you can see all the options they have there and what effect they might have - and they have all teh expert knowledge about it.
No idea. Depending what you want to achieve. It very much depends on why you have the problem I think you need to solve the problem of too many request first. And also work with Bitbucket repo. If BitBucket does not allow you to run too many requests you should consider fine-tuning (as you did) or - if possible - lifting the limits you have imposed by BitBucket. Since (I preseume) you pay them for hosting your repo you can talk to their support on that.
Usually when yo…