ankaios icon indicating copy to clipboard operation
ankaios copied to clipboard

Control interface shall be created only for configured for it workloads

Open krucod3 opened this issue 7 months ago • 2 comments

Description

The basic idea here is to skip the creation of the control interface if the configuration of the workload does not contain a control interface field. Doing this will spare some green threads on Ankaios side and the creation of fifo pipes that will never be used, improving the overall performance and stability.

Goals

  • A Control Interface instance shall only be created for configured workloads.

Final result

Summary

To be filled when the final solution is sketched.

Tasks

  • [ ] Rename the PipesChannelContext to something meaningful, like ControlInterface You can even split this into its own PR and reduce the chances of conflicts with main
  • [ ] Refactor a bit the creation of the Control Interface and unify the concepts there: Remove the extra functions for creating one;
  • [ ] ...
  • [ ] Add an stest that checks that a workload that did not have a ControlInterface access and is updated to have a ControlInterface access is restarted.

krucod3 avatar Jul 19 '24 11:07 krucod3