I am working on VM live migration strategy. In order to have live migration, I have to give workload to the environment. Currently I am using cloudsim, Can any one suggest the way to add external workload in cloud sim?
SUPPORT FOR EXTERNAL WORKLOADS. External workloads written in the Standard Workload Format (SWF, from the Parallel Workload Archive) can be loaded and read by CloudSim. Relevant classes are WorkloadModel and WorkloadFileReader ('util' package).
CloudSim Plus has an example of how to use workload traces in SWF format at https://github.com/manoelcampos/cloudsim-plus/blob/master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/traces/SwfWorkloadFormatExample1.java
An SWF workload can be loaded by calling reader = SwfWorkloadFileReader.getInstance(filePath, VM_MIPS)
where:
filePath is the relative of an SWF workload file inside the resources directory or its full path;
VM_MIPS is the MIPS capacity of the VM where the Cloudlet is supposed to run. Check the class documentation for more details.
It also fixes some issues and includes some features, such as: