electrode-ota-server-service-worker

4.8.4 • Public • Published

electrode-ota-service-worker

Creates a worker process that summarizes the metrics and places them into the metrics-summary table.

Usage

In your OTA Manager config, add this module as a plugin.

{
  "plugins": {
    "electrode-ota-server-service-worker": {
      "options": {
        "numberWorkers": 1,
        "workerSleep": 300,
        "logging": "error"
      }
    }
  }
}

The options are

  • numberWorkers: Number of workers to fork (default 1)
  • workerSleep: Time in seconds for the worker to sleep between updates (default 300 sec)
  • logging: Specifies the logging level (default "error"). Value values ["error", "info", "debug"].

Contributing

To run tests and coverage

% yarn
% yarn coverage

To run tests only

% yarn test

Readme

Keywords

none

Package Sidebar

Install

npm i electrode-ota-server-service-worker

Weekly Downloads

1

Version

4.8.4

License

Apache-2.0

Unpacked Size

47.5 kB

Total Files

24

Last publish

Collaborators

  • datvong
  • scrajesh