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

Function startPollingManagementClient

lib/management/poll.js:144–153  ·  view source on GitHub ↗

* Starts background task that updates configuration and pushes stats. * * Periodically polls for configuration updates, and pushes stats at * a fixed interval. * * @param {string} managementEndpoint API endpoint * @param {string} instanceId UUID of this deployment * @param {string} remoteToke

(
    managementEndpoint, instanceId, remoteToken)

Source from the content-addressed store, hash-verified

142 * @returns {undefined}
143 */
144function startPollingManagementClient(
145 managementEndpoint, instanceId, remoteToken) {
146 metadata.notifyBucketChange(() => {
147 pushStats(managementEndpoint, instanceId, remoteToken);
148 });
149
150 pushStats(managementEndpoint, instanceId, remoteToken);
151 applyConfigurationOverlay(managementEndpoint, instanceId, remoteToken,
152 logger.newRequestLogger());
153}
154
155module.exports = {
156 startPollingManagementClient,

Callers 1

startManagementListenersFunction · 0.85

Calls 2

pushStatsFunction · 0.70

Tested by

no test coverage detected