-
Notifications
You must be signed in to change notification settings - Fork 50
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
Terraform very slow to create/update more than 300 policies #263
Comments
More information, running mitmproxy, it appears the bottleneck is client side.
And after that, requests are sent after a few seconds interval:
|
Hi @mathieubrun , Thank you for your testing script, I run it on my local environment, every module is created less than 1 second, I guess there may be some limitation on client side.
Thanks, |
Hi @MaxxLiu22 |
Hi @mathieubrun , I tried update part, result looks good to me.
Thanks, |
Hi @mathieubrun , It seems Terraform works well on my side, Do you find any other potential reason to cause this issue? Thank, |
Hi @MaxxLiu22 The issue is still present on my side. Updating resources still takes ~8 seconds per resource. Thanks, |
Managing more than 300 policies is very slow using terraform : creating or updating objects take a between 5 and 10 seconds for each.
See:
I created a python script to generate terraform code exhibiting the issue (see below).
To reproduce, save the script as test.py and run the following commands:
Interestingly, updating the script to remove the fortios_firewall_security_policyseq seems to improve performance. But without predictable sequencing, the policies are not very useful.
The text was updated successfully, but these errors were encountered: