MCPcopy Index your code
hub / github.com/statsd/statsd / markNodeAsHealthy

Function markNodeAsHealthy

proxy.js:229–240  ·  view source on GitHub ↗
(node_id)

Source from the content-addressed store, hash-verified

227 }
228
229 function markNodeAsHealthy(node_id) {
230 if (node_status[node_id] !== undefined) {
231 if (node_status[node_id] > 0) {
232 var new_server = {};
233 new_server[node_id] = 100;
234 log('Adding node ' + node_id + ' to the ring.', 'WARNING');
235 ring.add(new_server);
236 }
237 }
238
239 node_status[node_id] = 0;
240 }
241
242 function markNodeAsUnhealthy(node_id) {
243 if (node_status[node_id] === undefined) {

Callers 1

healthcheckFunction · 0.85

Calls 1

logFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…