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

Add HUGO_NUMWORKERMULTIPLIER os env #5814

Closed
bep opened this Issue Apr 5, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@bep
Copy link
Member

commented Apr 5, 2019

We need to unify the configuration for Hugo's calculation of the number of workers when doing parallel processing.

  • Use HUGO_NUMWORKERMULTIPLIER if set
  • Else runtime.NumCPU() (the number of logical CPUs)

The default should be fine for most users, but at least the env var can give users some way to boost/brake.

@bep bep added the Enhancement label Apr 5, 2019

@bep bep added this to the v0.55 milestone Apr 5, 2019

@bep bep self-assigned this Apr 5, 2019

@bep bep closed this in 87b16ab Apr 5, 2019

nguyenvanduocit added a commit to 12bitvn/hugo that referenced this issue Apr 5, 2019

Add HUGO_NUMWORKERMULTIPLIER
And use that to calculate number of workers, if set, else fall back to number of logical CPUs.

Also tweak the relevant related settings to match the new setup.

Also remove the setting of `runtime.GOMAXPROCS` as this has been the default behaviour since Go 1.5.

Fixes gohugoio#5814
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.