Skip to content

This component from the aeriOS Self-* toolsuite is capable of managing facts, rules and alerts to send warnings about problems in an IE to the aeriOS EAT

License

Notifications You must be signed in to change notification settings

eclipse-aerios/self-orchestrator

Repository files navigation

Self-orchestrator

The aeriOS self-orchestrator module is one of the 4 essential modules within the aeriOS self-* capabilities set. Composed by a rules engine, a facts generator, a trigger and wrapped by an API, it is capable of managing facts, rules and alerts, obtaining information from the self-awareness, self-realtimeness, self-healing and self-optimisation and adaptation modules to send warnings about problems in the IE to the aeriOS EAT, with the goal to improve the management and coordination of their own workloads. This improves the scalability of tasks and reduces the number of errors that occur during task execution.

Relationships with another self-* capabilities

The following figure describe the self-orchestrator module inside the IE and the relationships with another self-* modules.

Self-* capabilities relationships

Figure 1. Self-* capabilities relationships

Getting started

⚠️Warning
Remember to manually create facts and rules folders if you run the image in Docker. In Kubernetes they are created automatically:

  • facts: /etc/aerios/self-orchestrator/facts
  • rules: /etc/aerios/self-orchestrator/rules

Environment variables

  • AERIOS_EAT_URL: the URL where EAT is running.
    • Value: IP and port.
  • AERIOS_IOTA: indicates whether IOTA is enabled in the domain or not.
    • Value: true/false.
  • AERIOS_IOTA_URL: the URL where IOTA is running.
    • Value: IP and port.
    • Optional (if AERIOS_IOTA is false).
  • AERIOS_IOTA_NODE: IOTA node to send the message to.
    • Value: IOTA node name.
    • Optional (if AERIOS_IOTA is false).

Local deployment

To test the code locally:

  1. Download package.json and script.js files in the same folder.

  2. In the same directory where the files were downloaded, run the following command to create two folders called facts and rules:

mkdir facts rules
  1. In the same directory where the files were downloaded, run the following command to install the necessary dependencies:
npm install
  1. In the same directory where the files were downloaded, run the following command to launch the self-orchestrator:
node script.js

API

A swagger.yaml file is available for consultation.

About

This component from the aeriOS Self-* toolsuite is capable of managing facts, rules and alerts to send warnings about problems in an IE to the aeriOS EAT

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •