Giter Club home page Giter Club logo

cloud-modeling's Introduction

The Cloud Simulator

Build

  1. Clone submodules: git submodule init --update from repo root;
  2. Generate Makefiles: cmake PATH_TO_REPO_ROOT from build directory;
  3. Build simulator engine: make simulator;
  4. Build console client: make client.

Usage

  1. Specify configuration of the cloud (sample)
  2. The simulator engine binary is located in src/simulator folder. Run simulator with 3 required arguments:
    • --config path/to/config/directory
    • --logs-folder path/to/folder/for/logs
    • --port <port-which-engine-should-listen>
  3. The client binary is located in src/client folder. It should be runned with arguments --host <engine-host> --port <engine-port>.
  4. Log is printed to the engine's stdout, duplicated to .csv-file in the specified directory and sent to the client.
  5. Available console commands:
    • boot/shutdown RESOURCE_NAME;
    • create-vm/provision-vm/stop-vm/delete-vm VM_NAME.

Notes:

  • By default the whole Cloud has name cloud-1, so it can be booted by boot cloud-1 CLI command
  • Data centers are named as in the cloud.yaml spec
  • Servers are named as SERVER_NAME-SERVER_SERIAL, where SERVER_NAME is the name value specified in specs.yaml

Dependencies

Dependencies are attached to the project using git submodules, to do not forget to load them before compiling.

Architecture

The simulator has a layered design, as most of the analogues do. Everything is based on a discrete-time event loop, which gives ability of creating and receiving events using special API.

On the top of the event loop there are representations of the infrastructure ( physical entities and virtual machines), management classes and API of the simulator.

arch

Thesis

Only Russian, available here.

Work plan for the nearest future

Look to the Github Projects tab.

Used links

  1. Writing a Discrete Event Simulation: ten easy lessons

  2. DISSECT-CF: a simulator to foster energy-aware scheduling in infrastructure clouds: strongly influenced by this paper

cloud-modeling's People

Contributors

kuskarov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.