Git Product home page Git Product logo

cs681-simulator's Introduction

Closed Loop Web Server Simulator

It is a simulator which implements a closed loop system of Users and Web Server. The simulator is implemented in python and follows a modular design.

Project Structure

The directory can be divided into 3 parts:

1. Simulation Source Code

  • classes.py file contains class definitions for all internal modules of the system.

  • simulator.py file contains simulator class definition, which uses modules from classes.py to instantiate a simulator.

  • lcgrand.py file defines the pseudo random number generator used by the simulator.

  • data_generator.py file runs the simulator for different configurations and generates csv files of the metrics.

2. Graph Generation Source Code

  • graph_gen_notebook.ipynb file is a jupyter notebook which can be used to generate graphs.

3. Results

  • results directory contains the csv files generated by the simulator.
    • It contains results for 2 different configurations of the system.
  • graphs directory contains the graphs generated by the graph_gen.ipynb file.

NOTE: For the MVA model analysis, the data was generated using this google sheet and the graphs were generated using the graph_gen_notebook.ipynb file.

Generating Simulation Data

Requirements:

  • python3

data_generator.py defines variable for the simulation metrics. Change this metrics as per requirement and then save the file.

Execute python3 data_generator.py to generate the data.

Generating Graphs

Requirements:

  • python3
  • matplotlib (pip3 install matplotlib)
  • Generated csv data files.

Run everything in graph_gen.ipynb. Graphs will be generated.

cs681-simulator's People

Contributors

sam990 avatar rickydebojeet avatar

Watchers

 avatar

Forkers

rickydebojeet

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.