Is it worth it making a ZFS partition with compression for Postgres in order to save space? I assume since it's mostly text it should compress fairly well.
Or is there a better FS for compression?

@matrix block size plays a huge role in this as well.
It really depends on your use case.
How big is your database?
@matrix Wow, mastodon is that big? Interesting. I wonder why.

I'd still say you're better off with a writeback cache on XFS.

Here's a video that explains it:
https://youtu.be/WEvCxFLHOM0

Basically, you just make a partition on NVME drive, and set it to be a writeback cache. You'll read and write to the NVME and it'll be lazily synced back to the slab.

A disadvantage is a drive failure of the cache drive will almost always result in data loss. NVME is RAID 10 tho so no real worries there.
Follow

@sjw It's not that big. It's 76974356 statuses over 3 years indexed with rum.
I don't really wanna spend more money so I want to better utilize the space I have.
It would probably make sense for that setup to put WAL on a separate drive.

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.