---
title: "Resumable Remote Compaction"
description: "RocksDB remote compaction workers can now checkpoint progress and resume interrupted jobs instead of restarting from scratch."
url: "https://swe.quest/articles/resumable-remote-compaction-8878eb399fdf8665"
canonical: "https://rocksdb.org/blog/2026/05/19/resumable-remote-compaction.html"
source: "RocksDB Blog"
published: "2026-05-19"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 2
tags: ["storage-engines","resilience"]
---

# Resumable Remote Compaction

A post on [RocksDB Blog](https://swe.quest/sources/rocksdb.md), published 2026-05-19, 2 min read, Deep dive. Original: [https://rocksdb.org/blog/2026/05/19/resumable-remote-compaction.html](https://rocksdb.org/blog/2026/05/19/resumable-remote-compaction.html)

## Summary

RocksDB remote compaction workers can now checkpoint progress and resume interrupted jobs instead of restarting from scratch. After each completed output SST, the worker writes a delta-encoded progress record holding the resume internal key and the completed file metadata to the output directory. It skips checkpoints where resuming would be unsafe, such as range deletions spanning a file boundary or adjacent files sharing a user key. To enable it, set allow\_resumption=true in OpenAndCompactOptions and reuse the same output\_directory across retries; the REMOTE\_COMPACT\_RESUMED\_BYTES ticker reports how much output was reused.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Storage engines](https://swe.quest/tags/storage-engines.md) (Data & databases)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)

## Prerequisites

- LSM trees ([easy posts on Storage engines](https://swe.quest/tags/storage-engines.md?difficulty=easy))
- RocksDB compaction
- SST files

## Keywords

RocksDB, CompactionService, OpenAndCompact, remote compaction

## Related posts

- [FIFO KV-Ratio Compaction for BlobDB-Backed TTL Workloads](https://swe.quest/articles/fifo-kv-ratio-compaction-for-blobdb-backed-ttl-workloads-d50be1cc261543b0.md): RocksDB Blog · 2026-06-20 · Hard · 6 min read · Storage engines, Databases, Performance engineering
  RocksDB 11.0 adds a KV-ratio intra-L0 compaction picker for FIFO compaction with integrated BlobDB.
- [Husky: Efficient compaction at Datadog scale](https://swe.quest/articles/husky-efficient-compaction-at-datadog-scale-eba7e7c7e1831aee.md): Datadog Engineering · 2025-01-29 · Hard · 18 min read · Storage engines, Analytics & OLAP, Observability, Performance engineering, Distributed databases
  Husky, Datadog's observability event store layered over object storage, keeps query cost low by controlling fragment count and layout through streaming compaction.
- [Grafana Mimir Compaction: From Bottleneck to Savings](https://swe.quest/articles/grafana-mimir-compaction-from-bottleneck-to-savings-ae4536035e4ec4c3.md): Wise Engineering · 2025-01-15 · Medium · 9 min read · Observability, Storage systems, Cost optimization, Performance engineering, Multi-tenancy
  After migrating from Thanos to Grafana Mimir at about 6 million samples per second, Wise found its compactor quietly falling behind on its largest tenant.
- [Litestream Revamped: SQLite Replication](https://swe.quest/articles/litestream-revamped-sqlite-replication-0708888533a47bfa.md): Fly.io · 2025-05-20 · Medium · 6 min read · SQLite, Replication, Storage engines, Storage systems
  Litestream is being reworked around ideas from LiteFS. It replaces the raw-WAL "shadow WAL" with transaction-aware LTX files, sorted page changesets that can be compacted LSM-style, so point-in-time restores no longer replay every intermediate page write.
- [Range Tombstone Conversion: Faster Scans Over Long Runs of Deletes](https://swe.quest/articles/range-tombstone-conversion-faster-scans-over-long-runs-of-deletes-35ec1c2ca9bbc8b7.md): RocksDB Blog · 2026-06-22 · Hard · 8 min read · Storage engines, Performance engineering, Databases
  RocksDB 11.3.0 adds range tombstone conversion: when a read iterator walks a run of contiguous point tombstones with no live key between them, it inserts one redundant range tombstone \[first\_tombstone\_key, next\_live\_key) into the memtable at the iterator's snapshot sequence number.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
