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

Load sampling and limits #1152

Merged
merged 7 commits into from Nov 18, 2013
Merged

Load sampling and limits #1152

merged 7 commits into from Nov 18, 2013

Conversation

hueniverse
Copy link
Contributor

Closes #1151


// Check load

if ((self.settings.load.maxEventLoopDelay && self.load.eventLoopDelay > self.settings.load.maxEventLoopDelay) ||
Copy link
Member

Choose a reason for hiding this comment

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

Might be worth adding shortcuts to loadSettings and load above the return function (req, res) { to make the lookup faster.

Copy link
Member

Choose a reason for hiding this comment

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

Could even check self.settings.load.sampleInterval before doing any other checks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

geek added a commit that referenced this pull request Nov 18, 2013
Load sampling and limits
@geek geek merged commit 872f93c into master Nov 18, 2013
@hueniverse hueniverse deleted the load branch November 20, 2013 06:52
jmonster pushed a commit to jmonster/hapi that referenced this pull request Feb 10, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jan 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Max load configuration
2 participants