-
Notifications
You must be signed in to change notification settings - Fork 86
429 Too Many Requests Rate limit exceeded, retry in 6 seconds #106
Comments
@victorgetz |
Same error for me!
I will contact Uptimerobot support |
And the issue is exaggerated by #85, unreleased ... |
I think it shouldn't be too hard to implement a retry on 429 for this provider, though 10 requests per minute seems like a serious limitation, which will increase Terraform execution time a lot... Maybe some client-side magic could be done to improve that though. |
Hello guys, this is Mirek from UptimeRobot. We just increased the API rate limits for PRO users twice, which should be enough to use this plugin again. Rate limits for FREE users are still the same (10 req/m) |
It seems with combination with https://github.com/stakater/IngressMonitorController, iteracting with UptimeRobot API is now barely usable 😞 |
…uests To make provider more robust against recently introduced API calls limits of 10 calls per minute for free accounts. See louy#106 for more details. Signed-off-by: Mateusz Gozdek <[email protected]>
Not very production quality but I wrote a patch, which makes provider very slow when you're close to API limit, but usable: https://github.com/louy/terraform-provider-uptimerobot/compare/master...invidian:invidian/retry-on-rate-limit?expand=1 |
@clovnrian it's an improvement, thank you. Quotas could be different between GET and POST/PUT? (higher with updates) @invidian interesting, have you opened a PR? I can't find one to comment |
Our API allows only POST requests and we are not making difference between "GET" type of requests and requests which make some insert/update. |
This issue is a huge roadblock for us I'm afraid. Because of the sheer number of requests being run for us during any sort of Say we have 20-30 sites we monitor. If we employ 2 more people we need to upgrade without adding any more monitors etc. Is there any plans to allow us to purchase more API requests just for checks or adding other plans with increased API usage? Another possible solution would perhaps be to just do the API request once, but not sure if that's possible with terraform providers |
Experiencing this as well for 15 monitors, the 10 req/min makes automation completely impossible @clovnrian |
OK guys, I can see it's real issue for you, so let find some solution to make most of you happy. I am not familiar with Terraform and this plugin, so can somebody please explain me how it's working? Ideally with some real world use-cases. I can assure you we don't want to sabotage this plugin in any way and we will try find solution for you. @kokarn as I wrote above I am not familiar with Terraform, but from the little I know, it's tool for managing infrastructure with code. And it don't make sense to me why every working person would call the |
You are correct, it's a tool that manages infrastructure. In larger teams & setups infrastructure might change in many different ways, so any time you propose a change you validate that towards the infrastructure in general. That includes validation that the "state" of the infrastructure you have locally matches the live infrastructure. This includes in our case 1000's of different pieces, everything from access rights for accounts in the cloud to integration with third parties and everything in between. A very common use case for us is to add a new site running a pre-existing configuration. A much worse scenario is me and a colleague working on different services in the same infrastructure, but it's a new piece of code. Then there are many many more runs of I think a decent mental model is linting but for infrastructure. That's a bit of what plan does in this scenario. Getting rate-limited on linting is really annoying :D |
Thanks for explanation @kokarn. This use case make sense and I can imagine other users have similar one. Also I totally get your frustration, and I am sorry. From what I read in Terraform documentation, this is something which is probably impossible or very hard to fix in plugin code (if you don't want to add some delay after every request). We will definitely look in to it and try to find solution where both sides will be happy. |
Hello guys, we are still debating about the API rate limit, but after 2 minutes googling I found article about rate limiting in HTTP client. I am not Golang developer, but at first look I think it can be easily integrated to this library. Yes, it will probably increase the execution time of terraform scrips, but it shouldn't be drastic. |
…uests To make provider more robust against recently introduced API calls limits of 10 calls per minute for free accounts. Closes louy#106 Signed-off-by: Mateusz Gozdek <[email protected]>
…uests To make provider more robust against recently introduced API calls limits of 10 calls per minute for free accounts. Closes louy#106 Signed-off-by: Mateusz Gozdek <[email protected]>
Since yesterday we have some issues.
Existing configurations now show "Got error from UptimeRobot: null"
In Debug Mode we see this: "429 Too Many Requests Rate limit exceeded, retry in 6 seconds"
My Guess is that Uptimerobot included a rate limit.
Any Idea how to solve that? Make the intervall smaller and add retry?
The text was updated successfully, but these errors were encountered: