-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request throttling while refreshing state #202
Comments
Hey @brandontosch Thanks for opening this issue :) Support for automatically retrying Retryable errors was added to the Azure SDK for Go in Azure/go-autorest#155 which shipped in v0.1.6 of the AzureRM Terraform Provider. Would you be able to upgrade to the latest version of the AzureRM Terraform Provider and let us know if you're still seeing this issue? Thanks! |
ping @brandontosch :) |
Hi @tombuildsstuff! Sorry for the delay, was out last couple of days. It does seem to be much better now; we can see the requests start to slow down after a while, but unfortunately we still hit some throttling issues intermittently. Here's some snippets from our last run:
...
|
Hi @brandontosch , can you please verify whether this issue is resolved? Thanks. |
@JunyiYi I can confirm that we have not seen this issue in some time now so I would be comfortable saying it is resolved at this point. |
Thanks @brandontosch for the confirmation, we will close this issue now. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
We've been using terraform as we migrate our infrastructure from private data centers in to azure. We're nearing completion and now that our terraform codebase has gotten quite large we've started running in to an issue where we are getting throttled by Azure when attempting to refresh state before a plan or apply. This occurs even when parallelism is set to one..
After capturing some of these failed requests, it seems that the Azure API is ending back a
retry-after
header but it seems to be ignored and terraform just errors out without waiting or trying again.I know terraform is using the azure go sdk, but not certain if this is something that would need to be changed in the sdk itself, in the terraform azurerm provider or terraform core..
Terraform Version
0.9.11
Affected Resource(s)
Any
Expected Behavior
The
retry-after
header should be respected and terraform should wait the specified amount of time before proceeding to send more requests rather than just erroring out.Actual Behavior
Terraform produces errors such as:
Here is the response received from Azure:
Steps to Reproduce
Well that's a little tricky. Need a pretty decent sized codebase and unfortunately we can't really share ours due to company policy. Might be able to reproduce with a smaller sized codebase by using higher parallelism, but not sure.
The text was updated successfully, but these errors were encountered: