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

How to know which host does the VM allocated to? #152

Open
sharlec opened this issue Jun 23, 2022 · 2 comments
Open

How to know which host does the VM allocated to? #152

sharlec opened this issue Jun 23, 2022 · 2 comments

Comments

@sharlec
Copy link

sharlec commented Jun 23, 2022

I am studying on how does VM allocation policy influence the performance. I hope to know how does datacenter make the decision that which host should allocate which VM? Which file contains he source code for it?

@itconsultore
Copy link

There are some samples in Cloudsim that you could check.
You could also check the source code,
Try samples related to PowerContainerHost.findHostForVm

I have tried before ClousimEx which extends a previous version of CloudSim.
You could check it and follow the same pattern to extend Cloudsim and add more specific functionality.

@amrous
Copy link

amrous commented Sep 14, 2023

hello,

You must search in PowerVmAllocationPolicyMigrationAbstract class, there is a function, called finHostForVm, it implements the PABFD algorithm to find the most suitable host for a given vm, based on the min energy.
if you want to implement your own policy, you must change this function.
good luck

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

No branches or pull requests

3 participants