-
Notifications
You must be signed in to change notification settings - Fork 4
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
Unable to pull topics using Terraform #40
Comments
I've figured out the cause of the problem. For background, we have 68 topics we are creating in this loop. Terraform is running those resource creations in parallel which is being flagged on your end and throttled. Adding a flag to the execution fixes the problem. Removing it causes the problem to occur again.
I'm not sure what else we can do on our end other than use the flag. We can work around this with the parallelism flag but it doesn't seem like a viable permanent solution. I don't think our number of topics is large and we don't have insight into your systems to know what's happening when the request hits. |
Is any one even monitoring this? I submitted this ticket 4 days ago and haven't received anything- not even an acknowledgement that the issue has been received or read. |
Hey, sorry for the latency here. I will be investigating this issue, and see what I can come up with |
No worries- thanks for looking into it. |
Hey, I wanted to update you on the progress here. I've looked into several possible solutions, however none were feasible in this case. Unfortunately, Terraform doesn't support batch requests other than minimal internal optimizations. So we can't really intercept and batch the requests as far as I see. One other solution could be to utilize caching and reduce the API call count, however Terraform doesn't have support for that either. For both of these topics, there's an ongoing issue on the sdk plugin repo. We've also considered increasing the request limit per second on the API, however it doesn't really seem possible to scale it to these numbers, and we'd still need to update the limit whenever someone hits this limit on the Terraform. So we should be able to solve this problem on the TF Provider side. I will keep looking into this, and update you as soon as I find a feasible solution. |
Is there an update on this issue? |
@binnsr unfortunately not. I will check with the Terraform SDK maintainers, to see if they have any work related to parallelism. |
Summary
When running
terraform plan
, the refresh fails and errors out on topics, claiming too may connections.kafka.tf snippet
Terraform output snippet
Expected outcome
The plan should succeed.
The text was updated successfully, but these errors were encountered: