{"id":13563025,"url":"https://github.com/leeliu/dbench","last_synced_at":"2025-04-03T19:32:07.584Z","repository":{"id":44748964,"uuid":"133647385","full_name":"leeliu/dbench","owner":"leeliu","description":"Benchmark Kubernetes persistent disk volumes with fio: Read/write IOPS, bandwidth MB/s and latency","archived":false,"fork":false,"pushed_at":"2023-11-25T07:25:11.000Z","size":9,"stargazers_count":250,"open_issues_count":5,"forks_count":141,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-04T15:52:14.354Z","etag":null,"topics":["benchmark","fio","iops","kubernetes","latency","persistent-volume","storage"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leeliu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-16T10:08:01.000Z","updated_at":"2024-08-03T20:24:13.000Z","dependencies_parsed_at":"2024-08-01T13:18:56.106Z","dependency_job_id":"d140b9f1-2ec0-4878-bede-73558e677eb0","html_url":"https://github.com/leeliu/dbench","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeliu%2Fdbench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeliu%2Fdbench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeliu%2Fdbench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeliu%2Fdbench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leeliu","download_url":"https://codeload.github.com/leeliu/dbench/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247065358,"owners_count":20877761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["benchmark","fio","iops","kubernetes","latency","persistent-volume","storage"],"created_at":"2024-08-01T13:01:14.412Z","updated_at":"2025-04-03T19:32:07.176Z","avatar_url":"https://github.com/leeliu.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# dbench\nBenchmark Kubernetes persistent disk volumes with `fio`: Read/write IOPS, bandwidth MB/s and latency.\n\n# Usage\n\n1. Download [dbench.yaml](https://raw.githubusercontent.com/logdna/dbench/master/dbench.yaml) and edit the `storageClassName` to match your Kubernetes provider's Storage Class `kubectl get storageclasses`\n2. Deploy Dbench using: `kubectl apply -f dbench.yaml`\n3. Once deployed, the Dbench Job will:\n    * provision a Persistent Volume of `1000Gi` (default) using `storageClassName: ssd` (default)\n    * run a series of `fio` tests on the newly provisioned disk\n    * currently there are 9 tests, 15s per test - total runtime is ~2.5 minutes\n4. Follow benchmarking progress using: `kubectl logs -f job/dbench` (empty output means the Job not yet created, or `storageClassName` is invalid, see Troubleshooting below)\n5. At the end of all tests, you'll see a summary that looks similar to this:\n```\n==================\n= Dbench Summary =\n==================\nRandom Read/Write IOPS: 75.7k/59.7k. BW: 523MiB/s / 500MiB/s\nAverage Latency (usec) Read/Write: 183.07/76.91\nSequential Read/Write: 536MiB/s / 512MiB/s\nMixed Random Read/Write IOPS: 43.1k/14.4k\n```\n6. 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.\n\n## Notes / Troubleshooting\n\n* If the Persistent Volume Claim is stuck on Pending, it's likely you didn't specify a valid Storage Class. Double check using `kubectl get storageclasses`. Also check that the volume size of `1000Gi` (default) is available for provisioning.\n* 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.\n* It's useful to test multiple disk sizes as most cloud providers price IOPS per GB provisioned. So a `4000Gi` volume will perform better than a `1000Gi` volume. Just edit the yaml, `kubectl delete -f dbench.yaml` and run `kubectl apply -f dbench.yaml` again after deprovision/delete completes.\n* A list of all `fio` tests are in [docker-entrypoint.sh](https://github.com/logdna/dbench/blob/master/docker-entrypoint.sh).\n\n## Contributors\n\n* Lee Liu (LogDNA)\n* [Alexis Turpin](https://github.com/alexis-turpin)\n\n## License\n\n* MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleeliu%2Fdbench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleeliu%2Fdbench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleeliu%2Fdbench/lists"}