제로 디스크 스트리밍 데이터베이스 백업: ~ 119MB RAM으로만 처리된 8GB 덤프!

작성자

카테고리:

← 피드로
DEV Community · Indhi Farhandika · 2026-08-03 개발(SW)
Cover image for Zero-Disk Streaming Database Backup: 8 GB Dump Processed with Only ~119 MB RAM!

Indhi Farhandika

When managing database backups, key pain points on entry-level servers are memory spikes (Out of Memory crashes) and running out of disk space due to temporary dump files.

To validate the efficiency of LunarDump (a zero-disk streaming backup solution), I conducted a benchmark & memory profiling using Memray across a multi-cloud setup based in Jakarta.

🖥️ Test Environment Setup:

  • Server A (Database): Tencent Cloud (Jakarta) — Ubuntu 24.04, 2 vCPU, 2 GB RAM, 40 GB SSD
  • Server B (LunarDump Engine): Cloudeka (Jakarta) — Ubuntu 24.04, 1 vCPU, 1 GB RAM, 20 GB SSD
  • Destina tion Storage: Google Cloud Storage (GCS) Bucket

📊 Benchmark Highlights:

  • Total Data Processed: ~8 GB (MySQL Database Stream)
  • Execution Duration: 1 Hour 1 Minute (Continuous Cross-Cloud Streaming)
  • Peak Memory Usage (Heap): 119.1 MB (~1.4% of total dataset size)
  • Resident Set Size (RSS): Stable at ~180 MB
  • Local Disk Footprint: 0 Bytes (Data streamed from Server A, encrypted with AES-256-GCM in Server B’s RAM, and uploaded directly to GCS on-the-fly)
  • Server B CPU Load: Averaged 4% – 8%

💡 Key Takeaways:
Through Flamegraph visualizations and Resident Set Size Over Time analysis, LunarDump demonstrated Zero Memory Leak. The flat memory footprint confirms that garbage collection and chunk-based buffer recycling function flawlessly—keeping resource consumption predictable even on a low-spec 1 vCPU/ 1 GB RAM node.

Github : lunardump

원문에서 계속 ↗

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다