hapijs / heavy Goto Github PK
View Code? Open in Web Editor NEWMeasure process load
License: Other
Measure process load
License: Other
This would be useful to allow adding a custom callback to do things like monitoring/log every time a new sample is measured.
In lib/index.js
line 44
I believe that
this.settings = Hoek.applyToDefaults(internals.defaults, options);
should in fact be:
this.settings = Hoek.applyToDefaults(internals.defaults.process, options);
No big deal but was confusing when trying to understand the logic of the module.
Correct me if I'm wrong. Otherwise I can make a quick PR if you'd like.
What's a recommended setting for max event loop delay and sampling interval?
Also, if answered I can PR to include an explanation in the docs :)
Thank you!
Upgrade joi to 6.x.x
When hapi hits the load directives and it hits the 503 condition, we should log what the reason for that is with the relevant stat so its clear what the issue is in the logs.
-Lloyd
🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet.
We recommend using:
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.
Perhaps change the return to be { isOverloaded, reason }
In hapi it would be nice when the load
log is created if it includes the reason (https://github.com/hapijs/hapi/blob/master/lib/connection.js#L208)
To allow single sampler with many policies
It would be great if the README was updated with instructions on what this module is and how to use it.
Reduce CPU usage
Don't poll memory usage if disabled
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.