menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Databases

>

PostgreSQL...
source image

Dbi-Services

1M

read

13

img
dot

Image Credit: Dbi-Services

PostgreSQL: Maybe we should give ZFS a chance (1) – baseline

  • The author decided to run some tests comparing the performance of ext4 and ZFS in PostgreSQL environments.
  • The testing was done on a t3.medium instance with two 20GB gp3 disks, one using an ext4 filesystem and the other one for ZFS.
  • ZFS is not available by default in the Debian repositories, so some extra steps are needed like adding the backports repository and installing kernel sources before ZFS install.
  • Once ZFS is installed the kernel modules become available and can be loaded using modprobe command.
  • The author initialized PostgreSQL for the ext4 filesystem by enabling data checksums, this step is not required for the ZFS filestem as ZFS is doing this anyway.
  • The author changed two bits for the ZFS instance, turning off full_page_writes and wal_init_zero which is not required on ZFS.
  • Ready to start both clusters by pg_ctl commands.
  • Now the author is ready to start with the tests.
  • Stay tuned for the results in the next post.

Read Full Article

like

Like

For uninterrupted reading, download the app