WAL-RUS: a Rust Rewrite of WAL-G for PostgreSQL Backups
5 hours ago
- #Rust implementation
- #memory efficiency
- #Postgres backups
- Postgres backups are critical for durability and recoverability, traditionally handled by WAL-G.
- WAL-G's Go-based garbage collection leads to unpredictable memory usage, making resource allocation challenging.
- WAL-RUS is introduced as a Rust-based alternative for predictable memory efficiency and WAL-G compatibility.
- Key features include predictable resource usage, continuous WAL archival, optimized streaming, and full WAL-G compatibility.
- Benchmarks show WAL-RUS reduces peak virtual memory by over 70% compared to WAL-G, with stable performance.
- WAL-RUS maintains comparable archival throughput and CPU utilization while being fully compatible with existing setups.
- The tool aims for tighter resource control without sacrificing functionality, planned as default in ClickHouse Cloud.
- WAL-RUS is open-source, supporting incremental backups via Postgres 17's wal summaries and encouraging community contributions.