-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Bug: Version 2.0.0 Long Plan Times #498
Comments
Hi 👋 As I said in the previous issue, the source of then problem seems to come from the terraform-plugin-framework and with a lot of Block Sets. @computeracer Approximately how many blocks do you have when the plan take 19 minutes ? |
Thank you for the reply @jeremmfr. I will need to look deeper. Can you explain what a block set is to make sure I count the right things? The plan is about 650 resources, with an estimated 3100 total of what I think are blocks within these 650 resources (address_sets, network_addresses, dns_names, and policies). My next step I think is to start splitting the config to see where the parts that take the longest are. Might help narrow it down. |
Thanks for the reply, it's right those blocks and that's what I was looking for. |
First improvement in Terraform plan time with #507 |
Hi @computeracer 👋 , |
Hi @jeremmfr, |
I'm a little surprised by this result. A gain of half the time was expected. |
@jeremmfr thank you for reaching out again on this. With the comments in the related issue, I thought there would not be much of a change in run time. I took the original time from our pipeline which I forgot does a few other things that bumped it up to the 16.5 minutes. I ran the changes locally with our config and version 2.1.0 and it takes 4.5 minutes. This is still up from the 24 seconds plan time with version 1.33, but quite an improvement. Thank you! |
copy of junos_security_address_book resource but with Block List instead of Block Set to have a workaround for the performance issue on Terraform plan with many Block Sets workaround for #498
Terraform and Provider Versions
Terraform Configuration Files
This is a simplified version of our Terraform HCL with some pieces that seem relevant.
Expected Behavior
With version 1.33.0 we could run a plan on an empty state and it would take 39 seconds.
Actual Behavior
Now we are finding that a plan will take 19 minutes and 52 seconds with the 2.0.0 version of the provider.
Steps to Reproduce
terraform plan
Additional Context
We have been successfully running this provider for a while now, and are working to make our HCL compatible with the new 2.0.0. We have addressed the errors around setting fields to null rather than false and empty arrays to null where needed as well. We can now successfully perform a plan, but are seeing the long run times.
Also I wanted to note the use of the
junos_null_commit_file
.When we detect there is no statefile we will set
fake_create_with_setfile_enabled
to true.This seemed to speed things up on initial plan/deploy in the past.
The text was updated successfully, but these errors were encountered: