Skip to content

Instantly share code, notes, and snippets.

@egustafson
Created March 1, 2013 18:52
Show Gist options
  • Save egustafson/5066857 to your computer and use it in GitHub Desktop.
Save egustafson/5066857 to your computer and use it in GitHub Desktop.
Generating load on a nova / bock instance.

Notes on generating load for compute & block storage instances

Install

  • {{apt-get install sysbench}}

CPU Load

  • {{sysbench —test=cpu —cpu-max-prime=20000 run

Disk Load

  • {{cd directory-on-volume-to-exercise}}
  • {{sysbench —test=fileio —file-total-size=150G prepare}}
  • {{sysbench —test=fileio —file-total-size=150G —file-test-mode=rndrw —init-rng=on —max-time=300 —max-requests=0 run}}
  • {{sysbench —test=fileio —file-total-size=150G cleanup}}

MySQL Load

  • See reference.

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment