MCPcopy Index your code
hub / github.com/scality/cloudserver / periodicHealthCheck

Method periodicHealthCheck

lib/utilization/scuba/wrapper.js:54–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 }
53
54 periodicHealthCheck() {
55 if (this._healthCheckTimer) {
56 clearInterval(this._healthCheckTimer);
57 }
58 this._healthCheck();
59 this._healthCheckTimer = setInterval(async () => {
60 this._healthCheck();
61 }, Number(process.env.SCUBA_HEALTHCHECK_FREQUENCY)
62 || externalBackendHealthCheckInterval);
63 }
64
65 getUtilizationMetrics(metricsClass, resourceName, options, body, callback) {
66 const requestStartTime = process.hrtime.bigint();

Callers 2

setupMethod · 0.95
wrapper.jsFile · 0.80

Calls 1

_healthCheckMethod · 0.95

Tested by

no test coverage detected