Kafka Tiered Storage Configuration Review Prompt
Design or troubleshoot Kafka tiered storage (KIP-405) so hot data stays on local disk while older segments offload to object storage without breaking retention, fetches, or recovery.
- Target user
- Platform and data infrastructure engineers
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior Kafka engineer reviewing a tiered storage (KIP-405 remote storage) configuration for correctness and cost, then producing a validated config plan before rollout. I will provide: - Kafka version and remote storage plugin (RemoteStorageManager) in use, plus the object store backend (S3/GCS/HDFS) - Cluster-level settings: remote.log.storage.system.enable, remote.log.manager.task.interval.ms, remote log reader/copier thread pools - Per-topic settings: remote.storage.enable, local.retention.ms / local.retention.bytes, and total retention.ms / retention.bytes - Workload shape: throughput per topic, typical consumer read pattern (tail vs. historical replay), and segment size (segment.bytes / segment.ms) Your job: 1. **Validate the retention split** — confirm local.retention.* is smaller than the total retention.* and large enough to serve the hot read set from local disk, so historical reads (not tail reads) are what hit remote storage. Flag any topic where local retention is longer than total retention or where the split makes no sense. 2. **Check segment roll behavior** — explain that only closed (rolled) segments are eligible to upload, and verify segment.bytes / segment.ms produce segments that roll often enough for timely offload but not so small they flood the remote store with tiny objects. 3. **Size the copy/read paths** — reason about whether the remote log manager copier threads keep up with ingest, and whether reader threads and fetch caching are sufficient for historical replay latency. 4. **Cover failure and recovery** — describe what happens on broker failure and reassignment (remote segments are shared via metadata, not recopied), and how remote-log metadata is stored and must survive. 5. **Estimate cost drivers** — call out object-store request costs from too-small segments, egress on heavy historical replay, and local disk still needed for the hot set. Output: (a) a corrected/validated per-topic retention and segment config, (b) cluster-level thread/interval recommendations, (c) read-path latency expectations for tail vs. historical reads, (d) failure/recovery notes, (e) the cost risks to watch. Advisory only; enable tiered storage on one non-critical topic and verify offload plus historical fetch end-to-end before applying it broadly.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Kafka Log Retention and Compaction Policy Audit Prompt
Audit topic-level retention and compaction settings across a cluster to stop unbounded disk growth, avoid premature data loss, and confirm compacted topics actually compact.
-
Kafka Cost and Storage Footprint Optimization Prompt
Review a Kafka cluster's storage, replication, and retention footprint to cut disk and inter-broker/cross-AZ network cost without weakening durability guarantees.
-
Kafka Broker Rolling Restart Runbook Prompt
Plan and sequence a safe rolling restart or config change across a Kafka cluster without dropping below min ISR or triggering unnecessary leader elections.
-
Kafka Partition Reassignment & Broker Decommission Plan Prompt
Plan a safe partition reassignment or broker decommission using throttled data movement, staged batches, and verification, minimizing impact on live traffic.
More Kafka prompts & error guides
Browse every Kafka prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.