Cloudslab / cloudsim

CloudSim: A Framework For Modeling And Simulation Of Cloud Computing Infrastructures And Services
http://www.cloudbus.org/cloudsim/
807 stars 488 forks source link

how to change the migration method from migrate Vm to Container #133

Closed GitHubDiom closed 3 years ago

GitHubDiom commented 4 years ago

when i run the 'ContainerCloudSimExample1.java' to learning how this simulator work, but i get some trouble. In line 70 in PowerContainerDataCenter.java#getVmAllocationPolicy. i found that it jump to line 84 in PowerContainerVmAllocationPolicyMigrationAbstract.java#optimizeAllocation but i wish it can jump to line 57 in PowerContainerVmAllocationPolicyMigrationAbstractContainerAdded.java#optimizeAllocation to migration Containers instead of VMs so what can i do for scheduling Containers when it found that hosts is over-utilized? is OK to change the param, i.e. vmSelectionPolicy, line 119 in 'ContainerCloudSimExample1.java' or what?