CloudSim Examples
All examples are included in the CloudSim package.
Basic Examples
- CloudSimExample1 – A simple example showing how to create a datacenter with one host and run one cloudlet on it.
- CloudSimExample2 – A simple example showing how to create two datacenters with one host and a network topology each and run two cloudlets on them.
- CloudSimExample3 – A simple example showing how to create two datacenters with one host each and run cloudlets of two users with network topology on them.
- CloudSimExample4 – A simple example showing how to create two datacenters with one host each and run two cloudlets on them.
- CloudSimExample5 – A simple example showing how to create two datacenters with one host each and run cloudlets of two users on them.
- CloudSimExample6 – An example showing how to create scalable simulations.
- CloudSimExample7 – An example showing how to pause and resume the simulation, and create simulation entities (a DatacenterBroker in this example) dynamically.
- CloudSimExample8 – An example showing how to create simulation entities (a DatacenterBroker in this example) in run-time using a globar manager entity (GlobalBroker).
Network Examples
- NetworkExample1 – A simple example showing how to create a datacenter with one host and a network topology and and run one cloudlet on it.
- NetworkExample2 – A simple example showing how to create two datacenters with one host and a network topology each and run two cloudlets on them.
- NetworkExample3 – A simple example showing how to create two datacenters with one host each and run cloudlets of two users with network topology on them.
- NetworkExample4 – A simple example showing how to create a datacenter with one host and a network topology and and run one cloudlet on it. Here, instead of using a BRIE file describing the links, links are inserted in the code.
Power Examples
- NonPowerAware – A simulation of a heterogeneous non-power aware data center: all hosts consume maximum power all the time.
- Dvfs – A simulation of a heterogeneous power aware data center that only applied DVFS, but no dynamic optimization of the VM allocation. The adjustment of the hosts' power consumption according to their CPU utilization is happening in the PowerDatacenter class.
- ThrRs – A simulation of a heterogeneous power aware data center that applies the Static Threshold (THR) VM allocation policy and Random Selection (RS) VM selection policy.
- IqrMc – A simulation of a heterogeneous power aware data center that applies the Inter Quartile Range (IQR) VM allocation policy and Maximum Correlation (MC) VM selection policy.
- MadMmt – A simulation of a heterogeneous power aware data center that applies the Median Absolute Deviation (MAD) VM allocation policy and Minimum Migration Time (MMT) VM selection policy.
- LrMu – A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM allocation policy and Minimum Utilization (MU) VM selection policy.
Container Examples
- ContainerCloudSimExample1.java – An initial example on the use of container simulation.
- ContainerInitialPlacementTest.java – An example exploring the problem of initial placement of containers.
- ContainerOverbooking.java – An example exploring container overbooking.
- ContainerSelectionTest.java – An example exploring container selection.