Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Dead-simple one-liner for clustered apps.
throng(start, { workers: 3 });
function start() {
console.log('Started worker');
process.on('SIGTERM', function() {
console.log('Worker exiting');
process.exit();
});
}
npm install --save throng
throng(startFunction, options);
Number of Cluster workers to create. Defaults to number of CPUs available.
Minimum time to keep the Cluster alive (by forking new workers if any die).
In milliseconds; defaults to zero.
(Infinity = stay up forever)
Grace period for worker shutdown. Once each worker is sent SIGTERM, the grace period starts. Any workers still alive when it ends are killed.
In milliseconds; defaults to 5000.
This is how you might use throng in a web server:
var throng = require('throng');
throng(start, {
workers: 4,
lifetime: Infinity,
grace: 4000
});
npm test
FAQs
A simple worker-manager for clustered apps
The npm package throng receives a total of 39,829 weekly downloads. As such, throng popularity was classified as popular.
We found that throng demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.