Configure Apache Pulsar topic-level policies for retention, TTL, and backlog quota

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

Steps

  1. Set a retention policy on a specific topic to keep messages beyond acknowledgement: `pulsar-admin topics set-retention --size 1G --time 7d persistent://<tenant>/<namespace>/<topic>`
  2. Set a message TTL (time-to-live) so unacknowledged messages are automatically deleted after a period: `pulsar-admin topics set-message-ttl --ttl 3600 persistent://<tenant>/<namespace>/<topic>`
  3. Configure a backlog quota to control how much unacknowledged data accumulates: `pulsar-admin topics set-backlog-quota --limit 512M --limitType size --policy producer_request_hold persistent://<tenant>/<namespace>/<topic>`
  4. Verify all topic-level policies are applied by running `pulsar-admin topics get-retention`, `get-message-ttl`, and `get-backlog-quota` for the topic
  5. Monitor backlog via `pulsar-admin topics stats <topic>` and inspect the storageSize and backlogSize metrics to confirm policies are taking effect

Known gotchas

Related routes

Create a Pulsar namespace with retention and backlog quota policies
pulsar.apache.org · 5 steps · unrated
Configure Pulsar topic compaction, retention, and TTL
data-engineering · 5 steps · unrated
Configure Apache Pulsar topics, subscriptions, and subscription types
pulsar.apache.org · 5 steps · unrated

Give your agent this knowledge — and 15,600+ 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