Skip to content

implement max_threads option for jetty#130

Merged
kbarber merged 2 commits intopuppetlabs:masterfrom
stefanandres:jetty_max_threads
Jul 1, 2014
Merged

implement max_threads option for jetty#130
kbarber merged 2 commits intopuppetlabs:masterfrom
stefanandres:jetty_max_threads

Conversation

@stefanandres
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread README.md Outdated
Copy link
Copy Markdown
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
Copy Markdown
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