Giter Site home page Giter Site logo

placement-bench's Introduction

Scheduler Benchmarking Framework

This repository contains a framework for testing out various scheduler designs and placement strategies.

First, clone this repo and install the dependencies in a virtualenv:

$ git clone [email protected]:jaypipes/placement-bench
$ cd placement-bench
$ virtualenv --no-site-packages venv
$ source venv/bin/activate
(venv)$ pip install -r requirements.txt

The command for running the benchmarks is well-documented:

(venv)$ python benchmark.py --help
usage: benchmark.py [-h] [--verbose] [--results-file RESULTS_FILE]
                    [--schema {placement,legacy}]
                    [--filter-strategy {db,python}] [--do-claim-in-scheduler]
                    [--placement-strategy {pack,spread,random}]
                    [--partition-strategy {modulo,none}] [--rows ROWS]
                    [--racks RACKS] [--nodes NODES] [--shared-storage-per-row]
                    [--node-ram-mb NODE_RAM_MB]
                    [--node-ram-mb-reserved NODE_RAM_MB_RESERVED]
                    [--node-cpu-cores NODE_CPU_CORES]
                    [--node-ram-allocation-ratio NODE_RAM_ALLOCATION_RATIO]
                    [--node-cpu-allocation-ratio NODE_CPU_ALLOCATION_RATIO]
                    [--workers WORKERS] [--in-requests-file IN_REQUESTS_FILE]
                    [--out-requests-file OUT_REQUESTS_FILE]

optional arguments:
  -h, --help            show this help message and exit
  --verbose             Show more output during run.
  --results-file RESULTS_FILE
                        If set, output results to supplied file instead of
                        stdout. If file exists, will append to the file.
  --schema {placement,legacy}
                        The schema to use for database layout.
  --filter-strategy {db,python}
                        The filter strategy to use for scheduler.
  --do-claim-in-scheduler
                        Perform the claim operation in the scheduler process
                        instead of on the compute node.
  --placement-strategy {pack,spread,random}
                        The placement strategy to use.
  --partition-strategy {modulo,none}
                        The partitioning strategy to use when selecting nodes
                        in the scheduler process.
  --rows ROWS           Number of rows in datacenter.
  --racks RACKS         Number of racks in each row.
  --nodes NODES         Number of nodes in each rack.
  --shared-storage-per-row
                        Should a shared storage pool be created for each row?
  --node-ram-mb NODE_RAM_MB
                        Amount of RAM in MB per node.
  --node-ram-mb-reserved NODE_RAM_MB_RESERVED
                        Amount of RAM in MB per node reserved for the
                        operating system.
  --node-cpu-cores NODE_CPU_CORES
                        Amount of physical CPU cores per node.
  --node-ram-allocation-ratio NODE_RAM_ALLOCATION_RATIO
                        The RAM allocation ratio for each node.
  --node-cpu-allocation-ratio NODE_CPU_ALLOCATION_RATIO
                        The CPU allocation ratio for each node.
  --workers WORKERS     Number of worker processes to simulate scheduler
                        processes.
  --in-requests-file IN_REQUESTS_FILE
                        If set, the set of instance requests is read from the
                        specified YAML file instead of created anew for the
                        run.
  --out-requests-file OUT_REQUESTS_FILE
                        If set, the set of instance requests is written out to
                        a file in YAML format. This can then be read in with
                        the --in-requests-file option when you want to run
                        different scenarios using identical requests sets.

placement-bench's People

Contributors

jaypipes avatar

Watchers

James Cloos avatar Sylvain Bauza 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.