Giter VIP home page Giter VIP logo

multi-dbench's Introduction

multi-dbench

Benchmark Kubernetes persistent disk volumes with fio

Usage

  1. Build the docker image using the Dockerfile supplied and upload to your local repo. This will pick up the latest version of FIO.
  2. Edit dbench-statefulset.yaml, updating
    (a) the container/repo location, as built above (under containers/image)
    (b) to keep things simple, the example uses the default storage class; either define a storageclass as required or set a default sc to match your env
    (c) finally update the number of replicas required
  3. Deploy Dbench using: kubectl apply -f dbench-statefulset.yaml
  4. Once deployed, each POD will run a daemon of fio, thus creating a set of worker nodes.
  5. Run a FIO client to run jobs on the worker nodes, see notes below
  6. Once the tests are finished, clean up using: kubectl delete -f dbench-statefulset.yaml and delete the volumes k get pvc | awk '/dbench/{print $1}' | xargs -I {} kubectl delete pvc {}

Using FIO

FIO CLIENT

You can either login to one of the PODs (recommended) or create VM to test with.
If running via a POD, skip to step 5

For the VM, follow steps 1-4 below
NOTE: pods must have routable networking if using a VM

  1. Download an Ubuntu (Jammy) image
  2. Install requirements: sudo apt install gcc make zlib1g-dev
  3. Clone FIO: git clone https://github.com/axboe/fio.git
  4. Make & install FIO:
cd fio
./configure
make
sudo make install

RUNNING TESTS

  1. Define an FIO file (see example.fio)

  2. Obtain the IP addresses of the pods, e.g.:
    kubectl get pods -o wide | awk '/multi-dbench/{print $6}'

  3. Log into one of the PODs or the FIO VM

  4. Use VI to create two new text files, one containing the FIO parameters (xxx.fio) and the other a list of IP addresses (fio_workers)

  5. Run FIO with the IP list and parameter file name, e.g.: fio --client=fio_workers example.fio

NOTES

  • If the Persistent Volume Claim is stuck on Pending, check the default storageclass (or add the storageclass to the manifest)
  • It can take some time for a Persistent Volume to be Bound
  • When cloning ensure that the docker-entrypoint.sh has EXECUTE permissions

Contributors

License

  • MIT

multi-dbench's People

Contributors

leeliu avatar darkmesh-b 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.