Giter VIP home page Giter VIP logo

hotspot_simulator's Introduction

hotspot_simulator

the hotspot simulator to monitor the OSD cluster's performance. the crushtool and osdmaptool must be installed first of all.

crushtool and osdmaptool can be found in /usr/bin/, /usr/sbin/, or /usr/local/bin, /usr/local/sbin .

the hotspot_simulator contains three parts:

  1. random number generator -- my_rand_machine.cpp, my_rand_machine1.cpp, my_gaussrand.cpp

    that outputs the file hotspot.txt as the simulator of large amount visit on each object. my_rand_machine1 is other way to produce random number. my_gaussrand is the gauss method to produce random numbers.

  2. parser -- my_parse.cpp

    parse the file hotspot.txt and the data-placement-information.csv, then calculates the OSD's PV, output to the file hotOSD.csv, the object PV output to the file visitObject.csv , and the crushmap(decompile), osdtree of current crushmap, and timePeriod.csv.

  3. main simulator -- hotOSD_simulator.sh

    that calls the random number generator, and use crushtool to build a map file tmp.map, then placement objects. finally calls the parser to output the result file -- hotOSD.csv, and the object PV result is in file -- visitObject.csv.

  4. normal distribution -- my_normal_distribution.cpp

    produce the normal distribution of the probability to visit files : normal_distribution.csv

More info:

  1. crushmap: http://ceph.com/docs/master/rados/operations/crush-map/

  2. crushmaptool: http://ceph.com/docs/next/man/8/crushtool/

  3. osdmaptool: http://ceph.com/docs/next/man/8/osdmaptool/

hotspot_simulator's People

Contributors

atrmat 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.