Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rosetta): JSII_ROSETTA_MAX_WORKER_COUNT limits max workers (#2816)
The current behavior of rosetta (extract) is to use a number of node worker threads equal to half the number of CPU cores. On large CI/CD build hardware, this may mean creating a huge number of worker threads which causes more contention than benefit. Introduce `JSII_ROSETTA_MAX_WORKER_COUNT` to limit the maximum number of workers (defaults to `16`). See aws/aws-cdk#14389 for more motivation from the AWS CDK. --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
- Loading branch information