-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support running tedge-agent on a child device #2018
Comments
Required changes Make
Capabilities:
Health checks:
Software list:
Software update:
Restart operation
|
@didier-wenzek Can you please update the status of this ticket? |
Child-support has been implemented by #2307.
Topic used for health checks have been updated by #2274.
|
QA has thoroughly checked the feature and here are the results:
This ticket covers the #1470 as well |
Is your feature request related to a problem? Please describe.
The
tedge-agent
provides a nice software management plugin interface. It would be useful if thetedge-agent
could be modified to allow it to run both on the main device and on/as a child device. This would enable users to get out-of-the-box functionality for child devices with zero coding! In the future it could also be extended to the other plugins to support reusing all of the existing components as either a main device or a child device.Describe the solution you'd like
There are two areas that will need addressing to enable this feature.
Area 1: Changes to the tedge-agent to support different runtime roles
tedge-agent
make sense running when running as a child device, for example the http server should not be started when running as a child device.tedge-agent
running on the main devicetedge-agent
should be configurable to use the appropriate topics depending on its current role (e.g. running as a main device or as a child device)Area 2: Changes to the tedge-mapper to support sending commands to child devices
tedge-mapper
to support routing the operations for child devices totedge/
topics. For exampletedge/child/{childid}/commands/...
. The specifics of the topic naming is dependent on Optimize MQTT topic structure for main and child devices #2005Notes
tedge-mapper
Describe alternatives you've considered
Additional context
An PoC has already been created to show how the MQTT client id and the topics could be made configurable. A configurable topic prefix is used to control whether the
tedge-agent
should behave as a main device or a child device.The text was updated successfully, but these errors were encountered: