# Optimizing Databases on Kubernetes Ep.4: Kubernetes Storage: Benchmarking ZFS, Cloud Disks, and Local Paths

DevFeed: [Optimizing Databases on Kubernetes Ep.4: Kubernetes Storage: Benchmarking ZFS, Cloud Disks, and Local Paths](<https://devfeed.tech/articles/optimizing-databases-on-kubernetes-ep-4-kubernetes-storage-benchmarking-zfs-cloud-disks-and-local-paths-22276.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2024/12/optimizing-databases-on-kubernetes-ep4-kubernetes-storage-benchmarking-zfs-cloud-disks-and-local-paths.html>)

Published: 2024-12-23T00:00:00Z

Content type: comparison

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Database](<https://devfeed.tech/topics/database.md>), [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [ZFS](<https://devfeed.tech/topics/zfs-file-system-features.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [cloud block storage benchmarking](<https://devfeed.tech/topics/cloud-block-storage-benchmarking.md>), [Rancher Local Path Provisioner](<https://devfeed.tech/topics/rancher-local-path-persistent-volumes.md>), [CloudNativePG](<https://devfeed.tech/topics/cloudnativepg.md>)

Tags: [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [cloud-block-storage-benchmarking](<https://devfeed.tech/tags/cloud-block-storage-benchmarking.md>), [compression](<https://devfeed.tech/tags/compression.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [databases](<https://devfeed.tech/tags/databases.md>), [deduplication](<https://devfeed.tech/tags/deduplication.md>), [durability](<https://devfeed.tech/tags/durability.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-database-performance](<https://devfeed.tech/tags/kubernetes-database-performance.md>), [kubernetes-database-throughput](<https://devfeed.tech/tags/kubernetes-database-throughput.md>), [kubernetes-local-storage-pros-and-cons](<https://devfeed.tech/tags/kubernetes-local-storage-pros-and-cons.md>), [kubernetes-production-grade-storage](<https://devfeed.tech/tags/kubernetes-production-grade-storage.md>), [kubernetes-storage-benchmarking](<https://devfeed.tech/tags/kubernetes-storage-benchmarking.md>), [kubernetes-storage-efficiency](<https://devfeed.tech/tags/kubernetes-storage-efficiency.md>), [kubernetes-storage-trade-offs](<https://devfeed.tech/tags/kubernetes-storage-trade-offs.md>), [kubernetes-zfs-advantages](<https://devfeed.tech/tags/kubernetes-zfs-advantages.md>), [lz4](<https://devfeed.tech/tags/lz4.md>), [methodology](<https://devfeed.tech/tags/methodology.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [optimizing-postgresql-on-kubernetes](<https://devfeed.tech/tags/optimizing-postgresql-on-kubernetes.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pgbench-kubernetes-testing](<https://devfeed.tech/tags/pgbench-kubernetes-testing.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [production](<https://devfeed.tech/tags/production.md>), [rancher](<https://devfeed.tech/tags/rancher.md>), [rancher-local-path-performance](<https://devfeed.tech/tags/rancher-local-path-performance.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [storage](<https://devfeed.tech/tags/storage.md>), [zfs](<https://devfeed.tech/tags/zfs.md>), [zfs-compression-benefits](<https://devfeed.tech/tags/zfs-compression-benefits.md>), [zfs-lz4-compression](<https://devfeed.tech/tags/zfs-lz4-compression.md>), [zfs-vs-cloud-storage](<https://devfeed.tech/tags/zfs-vs-cloud-storage.md>)

## AI overview

Jérôme Petazzoni benchmarks Kubernetes storage for CloudNativePG clusters using pgbench. In the excerpt, cloud block storage serves as the baseline at about 1,400 transactions per second; it is described as durable but slower. ZFS with LZ4 compression reaches about 3,400 transactions per second while reducing actual disk use by nearly 80%, presented as a balance of speed and storage efficiency. Local storage is described as fast but lacking production-grade safeguards. The episode recommends benchmarking and tuning configurations for the workload; the excerpt provides no specific results for Local Path or detailed durability and scalability comparisons.

## Source excerpt

Introduction: In Episode 4 of the Optimizing Databases on Kubernetes series, Jérôme Petazzoni benchmarks the performance of various Kubernetes storage classes, including cloud block storage, ZFS, and Rancher's Local Path provisioner. This episode dives into the practical aspects of measuring transactions per second, storage efficiency, and durability, offering insights into selecting the right storage solution for database workloads. Through detailed performance comparisons, Jérôme highlights how features like ZFS compression can optimize resource usage and boost database throughput.