edgexr / edge-cloud-platform

Apache License 2.0
1 stars 0 forks source link

show cloudlet and cluster resource apis #388

Closed gainsley closed 1 day ago

gainsley commented 6 days ago

This adds two new APIs, ShowCloudletResourceUsage and ShowClusterResourceUsage that show the used and total resources in Cloudlets and Clusters. This allows the user to see exactly what resources the system believes are in use. This is important both for users, and also us as developers to ensure that the algorithms that are choosing cloudlets/clusters based on available resources are working as expected.

We already had an API to get a single cloudlet's resource usage, so that is just extended to a new show command for all cloudlets. The resourceScore functions were just moved to different files to be easier to use.