Skip to content
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

Feat: Importing terraform resources takes too long #1372

Open
ffforest opened this issue Jan 7, 2025 · 0 comments
Open

Feat: Importing terraform resources takes too long #1372

ffforest opened this issue Jan 7, 2025 · 0 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature
Milestone

Comments

@ffforest
Copy link
Contributor

ffforest commented Jan 7, 2025

What would you like to be added?

Importing a terraform resource takes around 1 minute for the preview step and about 30 seconds for the apply step.
Kusion currently has a --max-concurrent flag that specifies the number of concurrent resource node executions (including terraform) that defaults to 10. This is still relatively slow. Importing 120 resources takes about 20 minutes to complete (Every 10 resources takes about 1 minute and half).
This issues tracks the effort to reduce the 1 minute and half time frame.

Why is this needed?

Another workaround to this is to up the number of --max-concurrent but that has other consequences.
Each terraform CLI execution allegedly takes ~100MB memory usage so a safe number of --max-concurrent may differ case by case.

@ffforest ffforest added the kind/feature Categorizes issue or PR as related to a new feature label Jan 7, 2025
@ffforest ffforest added this to the v0.15.0 milestone Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature
Projects
None yet
Development

No branches or pull requests

1 participant