Skip to content
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

Implement simple device manager #3

Open
sz-po opened this issue Apr 24, 2024 · 0 comments
Open

Implement simple device manager #3

sz-po opened this issue Apr 24, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation feature New feature or request kernel This issue is related to kernel.

Comments

@sz-po
Copy link
Owner

sz-po commented Apr 24, 2024

The goal of this task is to develop a solution that can initiate device processes, monitor their status, and terminate them as required. The device manager should have the following capabilities:

  • Importing device specifications from the structure
  • Starting the device process
  • Detecting the process's end and restarting it if the exit-code is other than 0. If the error persists, an exponential backoff should be implemented.
  • Triggering the end of the process by sending SIGTERM, waiting for a grace period, and then sending SIGKILL.

Furthermore, the structure describing the process should have a field that allows its value (also a structure) to be transferred as the device configuration. The configuration structure is unknown during compilation but should be passed as environment variables to the device process, prefixed with DKVMS_DEVICE_CONFIG_. For instance, the structure shown below expressed in YAML format:

display:
   id: foo

should be encoded as DKVMS_DEVICE_CONFIG_DISPLAY_ID.

Please ensure that appropriate information on how this mechanism works is provided in the readme.

@sz-po sz-po added feature New feature or request kernel This issue is related to kernel. labels Apr 24, 2024
@sz-po sz-po added this to the v0.1.0 - Blackjack milestone Apr 24, 2024
@sz-po sz-po self-assigned this Apr 24, 2024
@sz-po sz-po added the documentation Improvements or additions to documentation label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature New feature or request kernel This issue is related to kernel.
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant