Skip to content

mosayyebzadeh/datacenter-cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wb_sim: Event-Driven Simulation for object store cache

wb_sim is an datacenter-scale cache architecture simulation for hierarchical network topologies. The simulation framework is implemented using simpy which is a process-based discrete-event simulation based on Python. For now, it only simulates read operations, but we are working on adding write and delete operations.

File Inventory:

  • config.ini - Config File
  • trase0 - Sample Trace File
  • wb_sim.py - Main simulator code which executes the simulator

Prerequisites:

Install all the required dependencies:

pip install -r requirements.txt

Configuring Simulation For Your Enviroment

Edit 'config.ini' for your environment. Certain variables must be configured for your test environment. The most important ones are the number of cache servers (which also should be equal to compute nodes.), the size of each cache server, and the trace file for each cache server.

Input Trace File Format

  • Job_ID, mapper_number, size, objectName, userName, worklodName, operation

    mapper_number should be removed and it can be anything. We calculate it in the simulator.

    operation can be "read, write, delete" requests. For now, only read is working correctly.

  • To Do:

    Update write and delete opertions.

    Clean the code

Usage

python3 wb_sim.py -c <configFile>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%