cloudsim icon indicating copy to clipboard operation
cloudsim copied to clipboard

How to know which host does the VM allocated to?

Open sharlec opened this issue 2 years ago • 2 comments

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?

sharlec avatar Jun 23 '22 22:06 sharlec

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.

itconsultore avatar Jun 23 '22 23:06 itconsultore

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

amrous avatar Sep 14 '23 07:09 amrous