PaloAltoNetworks / terraform-provider-panos

Terraform Panos provider
https://www.terraform.io/docs/providers/panos/
MIT License
89 stars 71 forks source link

Terraform Enterprise - Memory usage when using Panos Provider #296

Open Eric-Jckson opened 3 years ago

Eric-Jckson commented 3 years ago

Describe the bug

We are using Terraform Enterprise for creating Panorama Objects and Policies. We are using the resource "panos_panorama_security_rule_group" with about 4,000 security rules. When executing on terraform enterprise it spikes up the memory based on the number of security rules in the variable object.

Expected behavior

Does not cause a high spike in memory usage.

Current behavior

Rule Count: 3589 Top Memory Usage: 747 MB Screen Shot 2021-08-05 at 9 14 27 AM

Rule Count: 7178 Top Memory Usage: >1 GB (Crashed agent due to memory usage) Screen Shot 2021-08-05 at 12 59 43 PM

Possible solution

Steps to reproduce

Created variable with 4,000 rules for the panos resource "panos_panorama_security_rule_group"

Screenshots

Context

This causes issues with scale with terraform enterprise.

Your Environment

Terraform Enterprise

welcome-to-palo-alto-networks[bot] commented 3 years ago

:tada: Thanks for opening your first issue here! Welcome to the community!

shinmog commented 3 years ago

If you're using Terraform Enterprise, does this mean that you have HashiCorp TAC support? If so, can you get them in contact with me, please?

Eric-Jckson commented 3 years ago

Hey @shinmog , i have been in contact with HashiCorp support and they are asking if you would be able to write up the questions/concerns that you would like answered? Once i have those from you i can send it to hashi support for a follow up.