-
Notifications
You must be signed in to change notification settings - Fork 192
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
Significant performance decrease v0.11.0 #383
Comments
@sofbkeller There should be anything related to performance being introduced between v0.9.0 to v0.10.0 (since v0.11.0 only contains changes for renaming). Some suspicious bits:
May I ask how many resources are being exported in your case? 1hr sounds to be really long to me. Also, are you using any remote backend for storing state? FYI, if you are only interested to exporting the HCL - and ignoring the state - then you might be interested in #381 (merged but not released yet). |
@magodo - I am not sure how to narrow it down but it is definitely working better when I have rolled back to V0.9.0. Generally, the RGs I am exporting are pretty large with around 500-4000 objects being exported. I was exporting all the RGs in a sub yesterday and it only got through about 20 RGs over 2.5 hours of sequential runs. I am doing an import all and skip anything that errors. The backend I am storing the state is just the local system. We are not using this to TFy existing resources but more to take an indirect output of what exists. Another potentially unrelated issue I am noticing is that when the import generates a RG folder and pulls down the AzureRM provider into the .terraform folder, it also does it on the fly in the %TEMP% directory (Windows) and for each interaction it also seems to pull down the AzureRM provider there as well leading to a bunch of unnecessary I/O. |
@sofbkeller |
@sofbkeller Downloading the provider in the temp directory is as expected, since those temp directories are meant to parallelize the importing, which means they also need a reference to the provider. One way to speed it up is you can setup the provider cache, so that the provider will only be downloaded for the 1st time. Regarding your scenario, you can pre-download the provider to somewhere, then run |
@sofbkeller As mentioned above, with v0.12.0 you can use the new |
Since upgrading from the V0.09.0 release to V0.11.0 I have noticed a significant decrease in the performance of AzTFExport and a increase in the amount of system resources a single concurrent export requires. Is this an expected change?
Previously on windows using an i7-1185G7 I was able to have a export running while still being able to utilize the system for other tasks. Under this latest update it consistently fully utilizes the CPU and the overall progress of the action takes at least an hour to pull from Azure.
Any troubleshooting tips or workarounds that can be used?
The text was updated successfully, but these errors were encountered: