Giter VIP home page Giter VIP logo

cloudsim-simulation's Introduction

Homework 1

Description: Create cloud simulators for evaluating executions of applications in cloud datacenters with different characteristics and deployment models.

Repository contents description:

Repository contains two scala simulations in the src folder

Simulations present inside each of the programs are explained in the documentation which is a word document named (Project-1_Documentation).

How to run the project

First simulation vs Second simulation:

Example used: First simulation involves 3 cloudlets running on 2 vm’s

Policies for VM experimented:

  1. Simulation 1: - Time shared policy for the vms: In the time shared policy one cloudlet runs on one of the vm first and then the two cloudlets share the time in the second run.

Profit earned by broker based on time sharing = 80 (Profit is calculated based on finish time of the cloudlets)

  1. Simulation 2: - Space shared policy for the vms: In the time shared policy the 2 vms share the space initially by running two cloudlets on them and then the 3rd cloudlet is run after both the vms become free.

Profit earned by broker based on space shared = 48 (Profit is calculated based on finish time of the cloudlets)

Outcome: Clearly more profit is earned in the 1st simulation when I make use of time shared policy because all the cloudlets share time and two cloudlets end at 3200.1 which makes the profit higher based on the finish time.

Issues faced: MIPS value of the PE had to be assigned higher than the VMs in order for the VMs to get assigned to the host. In case of a lower value of PE the VM allocation fails

Results of simulation

###Simulation 1 results: Starting CloudSimExample1... Initialising... Starting CloudSim version 3.0 Datacenter_0 is starting... Broker is starting... Entities started. 0.0: Broker: Cloud Resource List received with 1 resource(s) 0.0: Broker: Trying to Create VM #0 in Datacenter_0 0.0: Broker: Trying to Create VM #1 in Datacenter_0 0.1: Broker: VM #0 has been created in Datacenter #2, Host #0 0.1: Broker: VM #1 has been created in Datacenter #2, Host #0 0.1: Broker: Sending cloudlet 0 to VM #0 0.1: Broker: Sending cloudlet 1 to VM #1 0.1: Broker: Sending cloudlet 2 to VM #0 1600.1: Broker: Cloudlet 1 received 3200.1: Broker: Cloudlet 0 received 3200.1: Broker: Cloudlet 2 received 3200.1: Broker: All Cloudlets executed. Finishing... 3200.1: Broker: Destroying VM #0 3200.1: Broker: Destroying VM #1 Broker is shutting down... Simulation: No more future events CloudInformationService: Notify all CloudSim entities for shutting down. Datacenter_0 is shutting down... Broker is shutting down... Simulation completed. Simulation completed.

========== OUTPUT ========== Cloudlet ID STATUS Data center ID VM ID Time Start Time Finish Time 1 SUCCESS 2 1 1600 0.1 1600.1 0 SUCCESS 2 0 3200 0.1 3200.1 2 SUCCESS 2 0 3200 0.1 3200.1 Profit earned by broker = 80.0 CloudSimExample1 finished!

###Simulation 2 results: Starting CloudSimExample2... Initialising... Starting CloudSim version 3.0 Datacenter_0 is starting... Broker is starting... Entities started. 0.0: Broker: Cloud Resource List received with 1 resource(s) 0.0: Broker: Trying to Create VM #0 in Datacenter_0 0.0: Broker: Trying to Create VM #1 in Datacenter_0 0.1: Broker: VM #0 has been created in Datacenter #2, Host #0 0.1: Broker: VM #1 has been created in Datacenter #2, Host #0 0.1: Broker: Sending cloudlet 0 to VM #0 0.1: Broker: Sending cloudlet 1 to VM #1 0.1: Broker: Sending cloudlet 2 to VM #0 1600.1: Broker: Cloudlet 0 received 1600.1: Broker: Cloudlet 1 received 3200.1: Broker: Cloudlet 2 received 3200.1: Broker: All Cloudlets executed. Finishing... 3200.1: Broker: Destroying VM #0 3200.1: Broker: Destroying VM #1 Broker is shutting down... Simulation: No more future events CloudInformationService: Notify all CloudSim entities for shutting down. Datacenter_0 is shutting down... Broker is shutting down... Simulation completed. Simulation completed.

========== OUTPUT ========== Cloudlet ID STATUS Data center ID VM ID Time Start Time Finish Time 0 SUCCESS 2 0 1600 0.1 1600.1 1 SUCCESS 2 1 1600 0.1 1600.1 2 SUCCESS 2 0 1600 1600.1 3200.1 Profit earned by broker = 48.0 CloudSimExample1 finished!

cloudsim-simulation's People

Contributors

kvkadakia avatar 0x1docd00d avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.