Coder Social home page Coder Social logo

px-bench's Introduction

px-bench

A framework for running storage performance benchmarks on Kubernetes based platforms.

  • git clone the repository to a Linux (macOS may work but not tested) system with kubectl access to the K8s cluster.
  • If necessary, build the image and push to your registry:
cd image
docker build -t px-bench .
docker push ...
  • Create a namespace for your benchmarking, and set your context to it (or ensure that you are applying all YAML below to that namespace)
  • TBD: Create a wrapper script that will create the namespace and apply all YAML in order and with correct timing!
  • Create the px-bench namespace with kubectl create ns px-bench
  • Edit px-bench-env.yml to set the ConfigMap env to set desired values. If necessary, update image: to reflect the image you built. NOTE: SET YOUR STORAGECLASSES IN THIS FILE!
  • Do NOT edit px-bench-main.yml (unless you are attempting to change the behavior of the benchmark!)
  • In order to consume most of the available RAM so it is not used for buffering, run kubectl apply -f chewram.yml.
  • Wait for kubectl -n px-bench get pod -n chewram for all the pods to show as 1/1 Running.
  • kubectl apply -f px-bench-env.yml to apply the configuration settings.
  • kubectl apply -f px-bench.yml to start the run.
  • Monitor progress with kubectl logs -n px-bench -l px-bench=fio -f. With the defaults, runtime is expected to be around 15 minutes.
  • Wait for kubectl get pod -n px-bench for all the pods to show as Completed.

This will iterate through the combinations of blocksize_list, readwrite_list, and storageclass_list set in the ConfigMap, and runs those as independent fio jobs. Output will go the ConfigMap fio-output. Configurations will go to the ConfigMap fio-config.

To retrieve the output for processing, run kubectl get cm csv -n px-bench -o jsonpath='{.data.csv}'. Open the spreadsheet and make a copy. Paste the CSV into the sheet at A1 and make sure "Split text to columns" is selected.

split values screenshot

Click the Extensions menu and select "Apps Script". Click Run. This should create a number of new sheets populated with some bar charts.

px-bench's People

Contributors

andrewh1978 avatar bplein avatar danpaul81 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.