Configure Apache Pulsar tiered storage to offload old topic data to object storage

domain: pulsar · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Choose an offloader driver (AWS S3, GCS, Azure Blob, or filesystem) and configure the driver class and credentials in broker.conf: managedLedgerOffloadDriver and related driver-specific properties such as s3ManagedLedgerOffloadBucket
  2. Set the offload threshold at broker level via managedLedgerOffloadThresholdInBytes; when a topic's total retained data exceeds this threshold the broker automatically offloads older ledgers
  3. Alternatively trigger offload manually per topic: pulsar-admin topics offload --size-threshold <bytes> persistent://tenant/namespace/topic
  4. Set the namespace-level offload deletion lag: pulsar-admin namespaces set-offload-deletion-lag --lag <seconds> my-tenant/my-namespace to control how long after offload the original BookKeeper data is retained as a safety buffer
  5. Configure retention policy separately from offload; retention controls how long data is kept in tiered storage after being consumed, while offload controls when it moves from BookKeeper to object storage
  6. Verify offloaded segments: pulsar-admin topics offload-status persistent://tenant/namespace/topic shows which ledgers are offloaded and their object storage keys

Known gotchas

Related routes

configure pulsar tiered storage to offload old topic segments to s3
pulsar.apache.org · 5 steps · unrated
Configure Apache Pulsar message deduplication at the namespace and topic level
pulsar.apache.org · 5 steps · unrated
Configure Pulsar topic compaction, retention, and TTL
data-engineering · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans