node-red-contrib-decentralized-computation 0.0.2

Nodes for Decentralized Flow Execution with Edge Devices (micropython)

npm install node-red-contrib-decentralized-computation

node-red-contrib-decentralized-computation

Decentralized Computation extensions for Node-RED.

This package provides a platform to distribute the computation of Node-RED flows across edge devices. It introduces an Orchestrator node capable of decomposing and allocating the nodes to multiple IoT devices. Each node is capable of generating its own Micropython code that is to be installed in the edge device running a custom-made firmware.

This platform provides a resilient and decentralized orchestration mechanism capable of handling devices failures in real-time by reallocating the tasks. When it is not possible to allocate a node to a device, due to physical constraints, we introduced a fallback mechanism that allows the user to define an alternative flow to when a specific node fails.

This work is part of a master thesis in Software Engineering and Internet-of-Things by Pedro Costa at the Faculty of Engineering, University of Porto (FEUP). Work supervised by Prof. Hugo Sereno Ferreia and Prof. André Restivo. With collaboration of João Pedro Dias.

This work is at an early development stage!

Example Usage

The beautiful MDN logo.
Example flow containing two temperature nodes that can trigger the AC to turn on. If the temperature sensor fails, Node-RED can replace its data by querying a Weather API.

Development

Installing node-red-contrib-decentralized-computation for development

  • Clone or download this repository.
  • In your node-red user directory, typically ~/.node-red (in Windows something like C:\Users\<my_name>\.node_red), run: npm install <path_to_downloaded_folder>/node-red-contrib-decentralized-computation
  • Start (or restart) Node-RED.
  • Nodes should be available under the orchestrator and micropython tabs of the node palette.

Helper documentation

Node Info

Version: 0.0.2
Updated 3 years, 8 months ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

1 in the last week

Nodes

  • and
  • if
  • nothing
  • orchestrator
  • proxy mqtt in
  • proxy mqtt out
  • registry
  • temperature-humidity

Keywords

  • node-red
  • decentralized-execution

Maintainers

Contributors

  • pmcosta
  • jpdias