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

Additional ScoringImpl options #26

Open
dcmartin opened this issue Aug 15, 2019 · 1 comment
Open

Additional ScoringImpl options #26

dcmartin opened this issue Aug 15, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@dcmartin
Copy link

dcmartin commented Aug 15, 2019

Not being a expert Go programmer, what is the expectation to extend the GetScore functionality with additional implementations, other than the current:

func calculateScore(ID string) float64 {
        cpuUsage, err := resourceIns.GetResource(resourceutil.CPUUsage)
        if err != nil {
                return 0.0
        }
        cpuCount, err := resourceIns.GetResource(resourceutil.CPUCount)
        if err != nil {
                return 0.0
        }
        cpuFreq, err := resourceIns.GetResource(resourceutil.CPUFreq)
        if err != nil {
                return 0.0
        }
        cpuScore := cpuScore(cpuUsage, cpuCount, cpuFreq)

        netBandwidth, err := resourceIns.GetResource(resourceutil.NetBandwidth)
        if err != nil {
                return 0.0
        }
        netScore := netScore(netBandwidth)

        resourceIns.SetDeviceID(ID)
        rtt, err := resourceIns.GetResource(resourceutil.NetRTT)
        if err != nil {
                return 0.0
        }
        renderingScore := renderingScore(rtt)

        return float64(netScore + (cpuScore / 2) + renderingScore)
}
@suresh-lc
Copy link
Contributor

We are planning to make the scoring manager a dynamic by learning on the usage patterns of the device. Based on the learning efficient device selection for offloading would be selected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants