GithubHelp home page GithubHelp logo

Comments (4)

adrianLIrobotics avatar adrianLIrobotics commented on May 29, 2024

@Artonus I think you had some notes and ideas to approach the switch over from the coding and design perspective. Can you upload them here? I think we can attach documentation or useful links to the issue ticket. Thanks!

from middleware.

Artonus avatar Artonus commented on May 29, 2024

20221024_133748
Attached is the image presenting the conceptual idea behind the switchover

  • Each Middleware deployed in the Edge or Cloud has its Orchestrator responsible only for the deployment in its local k8s environment.
  • To decide which Middleware to connect to, ActionServer will ask Central API and will test the connectivity to choose the best one based on some parameters.
  • When the current Edge is unavailable, Action Server will request switchover (or when robot changes its location and new Edge is closer than the previous one)
  • Task planning will decide the placement of the resource and will send the request to other Middleware instances to deploy specific resource.

from middleware.

Artonus avatar Artonus commented on May 29, 2024

The Edge switchover should be handled in multiple steps:

  1. Provide a MessageBus to send the requests to other instances of the Middleware
  2. Working on a single location, change the connectivity between the TaskPlanner and Orchestrator to use MessageBus
  3. Send the deployment requests to the single (local) Edge
  4. Plan for work in a different location and send the request to the new Edge to deploy the desired resources
  5. Define a way in which the Robot will request the switchover (possible connection with #51)
  6. Specify a path in the Middleware to request the change to the specified location
  7. Send the requests to deploy the desired resources from one Edge to another Edge through MessageBus
  8. Upon receiving the confirmation that the request has been successfully processed and the service has been redeployed to a new location, delete the service from the current site (the action plan of the Robot should be updated automatically with the new address)
  9. Inform the Robot that the switchover process has been completed and that it can use the new services

from middleware.

Artonus avatar Artonus commented on May 29, 2024

Reopening as it has to be continued in the release v0.3

from middleware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.