Search code examples
javanetbeanscloudcloudsim

Need to modify the existing TASK SCHEDULING algorithms in Cloudsim. Which files should I use?


I just started a small research work and in cloudsim and I need to modify the task scheduling algorithms which are already implemented there. I found various files on Power cloudsim-3.0.3\examples\org\cloudbus\cloudsim\examples. Most of them are on Load Balancing. pls help me out!


Solution

  • Scheduling algorithms in CloudSim are implemented by extending the CloudletScheduler class. For instance, take a look a the CloudletSchedulerTimeShared scheduler and how it is used in CloudSimExample3. It is important that you understand the dynamics of this simple example before writing your first scheduler.

    After that, follow these steps:

    1. Write your scheduling algorithm as a class that extends CloudletScheduler.
    2. Include your scheduler when creating virtual machines on your simulations:

    var vm = new Vm(vmid, brokerId, mips, pesNumber, ram, bw, size, vmm, new YourScheduler());