coralogix / terraform-provider-coralogix

Terraform provider for Coralogix
https://registry.terraform.io/providers/coralogix/coralogix
Apache License 2.0
11 stars 8 forks source link

Slowness with Coralogix backend #277

Open tifennlegoff opened 2 weeks ago

tifennlegoff commented 2 weeks ago

Hello, we have slowness with Coralogix Backend, our terraform plan and apply take

Affected Resource(s)

We have mostly this issue with dashboards

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp

Debug Output

Panic Output

Expected Behavior

Terraform apply must be faster, no more than 5 seconds per dashboard.

Actual Behavior

Terraform refresh take about 30 second and Terraform apply take about 45 second per dashboard

 module.enrichment_pipeline_dashboards_indium["xxx"].coralogix_dashboard.coreplatform_enrichment_pipeline[0]: Modifying... [id=qCTYSWtpTnNyabspscVUO]
module.enrichment_pipeline_dashboards_indium["xxx"].coralogix_dashboard.coreplatform_enrichment_pipeline[0]: Still modifying... [id=qCTYSWtpTnNyabspscVUO, 10s elapsed]
module.enrichment_pipeline_dashboards_indium["xxx"].coralogix_dashboard.coreplatform_enrichment_pipeline[0]: Still modifying... [id=qCTYSWtpTnNyabspscVUO, 20s elapsed]
module.enrichment_pipeline_dashboards_indium["xxx"].coralogix_dashboard.coreplatform_enrichment_pipeline[0]: Still modifying... [id=qCTYSWtpTnNyabspscVUO, 30s elapsed]
module.enrichment_pipeline_dashboards_indium["xxx"].coralogix_dashboard.coreplatform_enrichment_pipeline[0]: Still modifying... [id=qCTYSWtpTnNyabspscVUO, 40s elapsed]
module.enrichment_pipeline_dashboards_indium["xxx"].coralogix_dashboard.coreplatform_enrichment_pipeline[0]: Modifications complete after 45s [id=qCTYSWtpTnNyabspscVUO]

So when we have too much dashboards to modify, the Terraform apply can take more than 2 hours

Steps to Reproduce

  1. terraform apply

Important Factoids

We use Coralogix provider 1.16.3 and Terraform 1.9.2

References

Community Note

celaus commented 2 weeks ago

Hi - thank you for opening that issue! we will need some examples of slow dashboards since there are many factors at play here

tifennlegoff commented 1 week ago

coralogix-config.zip Hi, this is our module who create dashboard.