34 minutes ago · Tech · hide

Here’s OpenZFS Mastery on tuning to support databases. Every DBA wants fast, easy, and efficient replication, snapshots, clones, tunable caches, and pooled storage. While ZFS supports all this by default, you can tune it to make your databases fly. Databases usually consist of more than one type of file, each with different characteristics and usage patterns that require different tuning. We’ll discuss MySQL and PostgreSQL in particular, but the principles apply to any database software. The most important tuning you can perform for a database is the dataset block size, through the recordsize property. The ZFS recordsize for any file that might be overwritten needs to match the block size used by the application. Tuning the block size also avoids write amplification. Write amplification happens when changing a small amount of data requires writing a large amount of data. Suppose you must change 8 KiB in the middle of a 128 KiB block. ZFS must read the 128 KiB, modify 8 KiB somewhere…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town