Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
cluster-status
Advanced tools
cluster-status ===============
A utility to collect status from all workers/master and present as an aggregated view.
This is a helpful piece evolved from the current cluster2, which is to allow applications to easily register status of any interest. It allows each worker to register its own state, master would automatically aggregate all states from active workers. It works nicely with our monitor capability (via debug middleware)
Notice, the status module works in a single process runtime too based on its event driven implementation.
register
require('cluster-status')
.register('status-name',
function(){
return 'view';//view function
},
function(value){
//update function
});
statuses
require('cluster-status')
.statuses(); //return names of registered statuses
getStatus
require('cluster-status')
.getStatus('status-name')
.then(function(status){
//got status
},
function(error){
//err
});
setStatus
require('cluster-status')
.setStatus('status-name',
'value')
.then(function(set){
//set or not
},
function(error){
//err
});
FAQs
cluster-status ===============
The npm package cluster-status receives a total of 0 weekly downloads. As such, cluster-status popularity was classified as not popular.
We found that cluster-status demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.