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

fix(concurrency): better default for low CPU count #2546

Merged
merged 2 commits into from
Oct 13, 2020

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Oct 9, 2020

Sets the default --concurrency to CPU count when the number of available CPU's <= 4.

Also updates the docs (apparently, --concurrency was missing from the readme).

Fixes #2542

Sets the default `--concurrency` to CPU count when the number of available CPU's <= 4.

Also updates the docs (appearently, `--concurrency` was missing from the readme).
@nicojs
Copy link
Member Author

nicojs commented Oct 9, 2020

@Lakitna , you might also have an opinion on this? Feel free to pitch in

@@ -237,7 +237,7 @@
"default": []
},
"concurrency": {
"description": "Set the concurrency of workers. Stryker will always run checkers and test runners in parallel by creating worker processes (note, not `worker_threads`). This defaults to n-1 where n is the number of cpu's available on your machine. This is a sane default for most use cases.",
"description": "Set the concurrency of workers. Stryker will always run checkers and test runners in parallel by creating worker processes (note, not `worker_threads`). This defaults to n-1 where n is the number of cpu's available on your machine, unless CPU count is <= 4, in that case it uses the CPU count. This is a sane default for most use cases.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the number of cpu's available

'number of CPU threads' would be more accurate. Calling them 'cores' or 'logical cores' works too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed ✅

Good find

@nicojs nicojs merged commit eac9199 into master Oct 13, 2020
@nicojs nicojs deleted the fix/better-default-concurrency branch October 13, 2020 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better default --concurrency for CI pipelines
2 participants