vm migration in cloudsim

2.2k views Asked by At

I want to simulate a simple VM migration in cloudsim (or other cloud simulators), to evaluate some parameters such as time of migration by considering the volume of VM process (likes RAM, Storage, etc) or number of tasks applied on the cloudlet, etc.

can any body help me in this ? any suggest or web reference will be appreciated.

2

There are 2 answers

0
Anantha Raju C On

cloudsim FAQ

One of the cloudsim classes you can you for vm migration

clousim programs basic structure

I would suggest you to go through the cloudsim API to get familiar with the cloudsim packages/classes in order to understand as to which methods and classes will be useful to develop your algorithm/idea/program.

0
Manoel Campos On

To enable VM migration, you need to set an instance of some VmAllocationPolicyMigration class when creating your datacenter. There are some implementations such as the VmAllocationPolicyMigrationBestFitStaticThreshold. And if you need to create a new VM migration policy, you can extend some of the existing classes.

You can check CloudSim Plus. It has some simple VM migration examples available. It also provides a totally refactored set of VmAllocationPolicyMigration that makes it way easier to implement your own policies.

In CloudSim Plus you can create a VmAllocationPolicyMigration to a given datacenter as the example below:

VmAllocationPolicyMigrationStaticThreshold allocationPolicy =
            new VmAllocationPolicyMigrationBestFitStaticThreshold(
                new PowerVmSelectionPolicyMinimumUtilization(),
                HOST_UTILIZATION_THRESHOLD_FOR_VM_MIGRATION);

DatacenterSimple dc = new DatacenterSimple(simulation, hostList, allocationPolicy);

Where HOST_UTILIZATION_THRESHOLD_FOR_VM_MIGRATION is a percentage value defining the CPU utilization threshold a Host can reach to start migrating VMs. It also uses a PowerVmSelectionPolicy that will select VMs with minimum utilization to be migrated from the overloaded Host.

The complete example is available here. If the example was helpful, please upvote.