What level of (Terraform) parallelism is a good idea? #3351
Unanswered
AaronCoquet-Easypark
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We use a Makefile to run Terraform. Our
plan
actions take this form:terraform plan -var-file (...) -parallelism=250 -out tfplan -no-color 2>err.txt | tee plan.txt;
These plans typically run fairly fast, but I realized that Snowflake Warehouses are typically set to
max_concurrency_level = 8
, meaning that only 8 queries can run at a time.I started thinking about this because I've had several plans recently just ... hang. The output will be flying by and then suddenly stops and gives this:
It usually catches up after 2.5 to 3 minutes, and there are usually several resources that get stuck all at once. But! Sometimes it doesn't catch up, and I get a raft of "Unexpected EOF" errors.
I tried similar plans without the
-parallelism=250
argument, and it's MUCH slower... and doesn't seem to resolve the issue.So I guess I have 3 (ish) questions:
-parallelism
strikes a balance between "Fast" and "Stable"? (Or: What's a "good"-parallelism
value?)Beta Was this translation helpful? Give feedback.
All reactions