Replies: 2 comments
|
Totally agree with this. |
|
Hi again, I've been working on the compression issue from #3566 and want to share what I found while exploring zstd. Where things standPR #5206 adds gzip compression to volume backups. It's a 5-line change — I also prototyped zstd locally. Here's what I ran into. Why zstd isn't a drop-in replacementThe volume backup runs
Custom backup image — build a small image with zstd pre-installed, use it instead of Switch to alpine — lighter image, but alpine ships BusyBox Add zstd to the main Dockerfile — doesn't help. The backup runs in a separate It's not just volume backupsWhile digging into this, I realized there are 3 separate backup systems, each with its own compression:
A full zstd migration would touch all three. Volume backups are the easy part. DB backups are the hard part. One thing worth noting
What I'd suggestGzip in PR #5206 fixes the real problem now — uncompressed backups. If there's appetite for zstd, the clean path is a custom backup image (option B). I have the zstd prototype working locally and can prepare a follow-up PR with a Curious to hear what you think. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🚀 Proposal: Use Zstandard (zstd) instead of gzip for backups
Summary
Dokploy currently uses gzip (
.tar.gz) for backups (databases, volumes, and full system backups).While this works reliably, it’s now a performance bottleneck — especially on servers with modern multi-core CPUs.
Switching to Zstandard (
.tar.zst) would provide smaller backups, faster compression/decompression, and better CPU efficiency, all while maintaining wide compatibility.📊 Benchmark Comparison
-6)-3)-9)Result:
→ ≈25–40 % smaller files
→ 3–6× faster backups
→ 10× faster restores
⚙️ Why zstd is ideal for Dokploy
zstdin the container.🧩 Suggested Implementation
A minimal change to existing backup logic:
Restore remains equally simple:
taralready includes--zstdsupport in all modern Linux distributions.✅ Benefits
🗣️ Discussion
Would the team be open to adding
zstdas an optional (or default) compression method for backups?If desired, I can help draft a PR that updates the backup script logic and Dockerfile dependencies.
All reactions