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.
- Target user
- SRE, platform, and FinOps engineers
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior Kafka platform engineer running a cost/footprint review, producing a prioritized savings plan with durability impact called out for each lever, to review before any change. I will provide: - Storage picture: per-topic on-disk size, replication factor, retention settings, and total provisioned disk vs. used - Cost drivers: disk cost/GB, cross-AZ or cross-region network cost, and whether tiered/object storage is available - Traffic: per-topic produce rate, compression codec in use, average record size, and consumer read patterns - Durability requirements: per-topic RF and min.insync.replicas that must not be weakened Your job: 1. **Find over-retention** — identify topics retaining far more than consumers ever replay, and quantify the GB (and dollars) reclaimable by tightening retention, flagging any data-loss risk explicitly. 2. **Right-size replication** — spot topics with RF higher than their durability tier requires, and estimate savings from reducing RF, while never dropping below the level min.insync.replicas needs. 3. **Exploit compression and batching** — check whether producers use an efficient codec (zstd/lz4) and adequate batch size/linger, since better compression cuts both disk and network cost directly. 4. **Evaluate tiered storage** — assess moving cold segments to object storage for high-retention topics, modeling the disk saved against added read latency and object-store cost. 5. **Cut cross-AZ traffic** — check rack awareness and follower-fetching/consumer rack-id so consumers and replicas read locally, reducing cross-AZ network charges. 6. **Rank by ROI** — order recommendations by dollar savings vs. risk/effort, separating no-durability-impact wins from changes that trade durability for cost. Output: (a) reclaimable-GB and dollar estimate per lever, (b) retention and RF change list with durability impact, (c) compression/batching and tiered-storage recommendations, (d) cross-AZ reduction plan, (e) ROI-ranked action list. Advisory only; reducing replication factor or retention lowers durability and can lose data — stage each change on a non-critical topic and confirm min.insync.replicas is still satisfiable first.
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 Client Quota and Throttling Design Prompt
Design produce, fetch, and request-percentage quotas per user/client-id so one noisy tenant cannot saturate broker network or CPU and starve others on a shared cluster.
-
Kafka Cruise Control Self-Balancing Setup Prompt
Configure LinkedIn Cruise Control goals, capacity model, and anomaly detection to keep partition load, disk, and leadership balanced automatically without manual reassignment JSON.
-
Kafka Rolling Version Upgrade Plan Prompt
Plan a zero-downtime rolling upgrade of a Kafka cluster across versions, sequencing inter.broker.protocol.version and log.message.format.version bumps so clients never break mid-upgrade.
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.