Skip to content

How can I increase parallelization in Gruntwork Pipelines jobs? #724

Answered by zackproser
zackproser asked this question in How do I
Discussion options

You must be logged in to vote

Our best recommendation for this currently is to modify your deploy-infra.sh script, which comes bundled as part of your Gruntwork Pipelines installation.

This script acts as the "glue" code between your version control system and the terragrunt plan and apply logic contained in the ECS Deploy Runner component of Gruntwork Pipelines.

Here's an example of the deploy-infra.sh script.

Within this script, we use the xargs unix utility to help format arguments to complex commands. xargs can also accept a -P flag, which stands for max-procs to increase the number of processes that xargs uses to execute a given command, as explained here.

For example, to have xargs spin up two processes, you wou…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zackproser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant