Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Benchmark Kubernetes persistent disk volumes with fio: Read/write IOPS, bandwidth MB/s and latency

License

NotificationsYou must be signed in to change notification settings

leeliu/dbench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Benchmark Kubernetes persistent disk volumes withfio: Read/write IOPS, bandwidth MB/s and latency.

Usage

  1. Downloaddbench.yaml and edit thestorageClassName to match your Kubernetes provider's Storage Classkubectl get storageclasses
  2. Deploy Dbench using:kubectl apply -f dbench.yaml
  3. Once deployed, the Dbench Job will:
    • provision a Persistent Volume of1000Gi (default) usingstorageClassName: ssd (default)
    • run a series offio tests on the newly provisioned disk
    • currently there are 9 tests, 15s per test - total runtime is ~2.5 minutes
  4. Follow benchmarking progress using:kubectl logs -f job/dbench (empty output means the Job not yet created, orstorageClassName is invalid, see Troubleshooting below)
  5. At the end of all tests, you'll see a summary that looks similar to this:
=================== Dbench Summary ===================Random Read/Write IOPS: 75.7k/59.7k. BW: 523MiB/s / 500MiB/sAverage Latency (usec) Read/Write: 183.07/76.91Sequential Read/Write: 536MiB/s / 512MiB/sMixed Random Read/Write IOPS: 43.1k/14.4k
  1. Once the tests are finished, clean up using:kubectl delete -f dbench.yaml and that should deprovision the persistent disk and delete it to minimize storage billing.

Notes / Troubleshooting

  • If the Persistent Volume Claim is stuck on Pending, it's likely you didn't specify a valid Storage Class. Double check usingkubectl get storageclasses. Also check that the volume size of1000Gi (default) is available for provisioning.
  • It can take some time for a Persistent Volume to be Bound and the Kubernetes Dashboard UI will show the Dbench Job as red until the volume is finished provisioning.
  • It's useful to test multiple disk sizes as most cloud providers price IOPS per GB provisioned. So a4000Gi volume will perform better than a1000Gi volume. Just edit the yaml,kubectl delete -f dbench.yaml and runkubectl apply -f dbench.yaml again after deprovision/delete completes.
  • A list of allfio tests are indocker-entrypoint.sh.

Contributors

License

  • MIT

About

Benchmark Kubernetes persistent disk volumes with fio: Read/write IOPS, bandwidth MB/s and latency

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp