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

implement max_threads option for jetty #130

Merged
merged 2 commits into from
Jul 1, 2014
Merged

implement max_threads option for jetty #130

merged 2 commits into from
Jul 1, 2014

Conversation

stefanandres
Copy link
Contributor

If you have a server with 256 GB RAM, the default jetty option for max_threads will not be enough.
The puppetdb.log will say:

java.lang.IllegalStateException: Insufficient max threads in ThreadPool: max=100 < needed=121

So we need the max_threads option to set the threads in the jetty.ini.

@stefanandres
Copy link
Contributor Author

Oh, apparently #128 already implemented this wish-feature, but in my solution the option will not be set unless it is actively set. pull/128 will always explicetly add max_threads even if not needed.

@@ -293,6 +293,11 @@ Java VM options used for overriding default Java VM options specified in PuppetD

Example: to set `-Xmx512m -Xms256m` options use `{ '-Xmx' => '512m', '-Xms' => '256m' }`

####`max_threads`

Jetty option to explicetly set max-thread. The default is undef, so the jetty default is used (might be `120`).
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably not worth providing an assumption here (ie. 120) as its misleading from the start and the default may change anyway. I'd just say it falls back to the PuppetDB default.

@stefanandres
Copy link
Contributor Author

Okay, I removed the assumption.

kbarber added a commit that referenced this pull request Jul 1, 2014
implement max_threads option for jetty
@kbarber kbarber merged commit c706255 into puppetlabs:master Jul 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants