edgeless-project / edgeless

MVP Implementation
Other
14 stars 0 forks source link

Add multiple runners to agent #138

Closed iyannsch closed 4 months ago

iyannsch commented 4 months ago

In preparation of having multiple function classes (e.g., RUST_WASM, WASM_SGX) it makes sense to switch the function execution class at agent level. Doing so allows one node to run multiple runners with potentially different capabilities.

Added a hash map of runners instead of just the default RUST_WASM runner. This can be extended for debug purposes or meaningfully enriched in future deployments. As the AgentRequests are not really consistent with each other (i.e., some provide instanceIds, some functionIds, some also the class), it is also necessary to save the existing functions with their componentId to later find the function class and the respective runner.

ccicconetti commented 4 months ago

The complexity can be done now or as part of a separate request.

@iyannsch if you prefer to merge now and do a separate PR just us know, so that we can unblock this one

raphaelhetzel commented 4 months ago

Good to go now, thanks!