Scenario 07.1.4 · Inkless: object storage turns slow
Aiven Inkless: a slow S3 bucket fails Kafka produce
Aiven Inkless 0.51 · a slow bucket fails like a down one: each upload attempt times out, after 3 attempts the producer gets KafkaStorageException, and the retry goes through once the bucket is fast again.
Run this scenario in the playgroundThe bucket turns slow. t+2.450s
clicks is an Inkless topic (Inkless 0.51). click-1 was uploaded in wal-0001, committed in PostgreSQL and acked at 1310 ms; c1 read it and committed its offset at 2400 ms. At 1500 ms the bucket turned slow: it still answers, but every operation now takes 2 s (the simulator's figure). click-2 went into wal-0002 on broker-2, whose upload started at 2150 ms.
Open at this step: step 1, The bucket turns slowTwo attempts time out. t+6.200s
Inkless's S3 client allows 1 s per attempt and 2 s per call, so a 2 s operation never completes in time: wal-0002's first attempt timed out at 4160 ms and its second at 6170 ms, 10 ms of backoff apart. Inkless 0.51 has no produce back-pressure, so the broker took the record and p1 is simply waiting, with no error yet.
Open at this step: step 2, Two attempts time outThird attempt fails: KafkaStorageException. t+8.200s
After max.upload.attempts (3) the file failed at 8180 ms, and every request in it got KAFKA_STORAGE_ERROR: p1 waited 6.5 s for this answer. Nothing reached PostgreSQL, so click-2 has no offset and no object holds it. The bucket was never down; a slow bucket fails exactly like a down one. The error is retriable, so p1 retries after its 500 ms backoff.
Open at this step: step 3, Third attempt fails: KafkaStorageExceptionThe retry uploads; the bucket recovers. t+10.050s
The retry went into wal-0003 at 8680 ms and its upload started at 9180 ms, still against the slow bucket. At 10000 ms the bucket was fast again, in the middle of the retry's first attempt.
Open at this step: step 4, The retry uploads; the bucket recoversThe next attempt succeeds. t+12.050s
wal-0003's first attempt ended at 11190 ms with the bucket healthy, so it succeeded (the simulator counts an attempt that ends after the recovery as a success). PostgreSQL committed it, click-2 got offset 1 and p1 was acked, 2510 ms after the retry. c1 read it at 11400 ms and committed at 12000 ms. Nothing was lost.
Open at this step: step 5, The next attempt succeedsWhat you start with
Object storage rarely just stops; more often it gets slow. In Inkless 0.51 the S3 client gives an upload 1 s per attempt and 2 s per call, and the broker tries a file 3 times (max.upload.attempts) before it fails every request in it with KAFKA_STORAGE_ERROR. Here the bucket stays up but every operation takes 2 s (the simulator's figure), from 1.5 s to 10 s. Producer p1 is set to retries=10 and retry.backoff.ms=500. Watch the object storage lane, the WAL counter under broker-2 and p1.
Step by step
- The bucket turns slow t+2.450s clicks is an Inkless topic (Inkless 0.51). click-1 was uploaded in wal-0001, committed in PostgreSQL and acked at 1310 ms; c1 read it and committed its offset at 2400 ms. At 1500 ms the bucket turned slow: it still answers, but every operation now takes 2 s (the simulator's figure). click-2 went into wal-0002 on broker-2, whose upload started at 2150 ms. Open at this step: step 1, The bucket turns slow
- Two attempts time out t+6.200s Inkless's S3 client allows 1 s per attempt and 2 s per call, so a 2 s operation never completes in time: wal-0002's first attempt timed out at 4160 ms and its second at 6170 ms, 10 ms of backoff apart. Inkless 0.51 has no produce back-pressure, so the broker took the record and p1 is simply waiting, with no error yet. Open at this step: step 2, Two attempts time out
- Third attempt fails: KafkaStorageException t+8.200s After max.upload.attempts (3) the file failed at 8180 ms, and every request in it got KAFKA_STORAGE_ERROR: p1 waited 6.5 s for this answer. Nothing reached PostgreSQL, so click-2 has no offset and no object holds it. The bucket was never down; a slow bucket fails exactly like a down one. The error is retriable, so p1 retries after its 500 ms backoff. Open at this step: step 3, Third attempt fails: KafkaStorageException
- The retry uploads; the bucket recovers t+10.050s The retry went into wal-0003 at 8680 ms and its upload started at 9180 ms, still against the slow bucket. At 10000 ms the bucket was fast again, in the middle of the retry's first attempt. Open at this step: step 4, The retry uploads; the bucket recovers
- The next attempt succeeds t+12.050s wal-0003's first attempt ended at 11190 ms with the bucket healthy, so it succeeded (the simulator counts an attempt that ends after the recovery as a success). PostgreSQL committed it, click-2 got offset 1 and p1 was acked, 2510 ms after the retry. c1 read it at 11400 ms and committed at 12000 ms. Nothing was lost. Open at this step: step 5, The next attempt succeeds
The takeaway
The bucket never went down, yet p1 got the same KafkaStorageException an outage gives: each of the 3 upload attempts ran past Inkless's S3 timeouts, so the file failed, no object was committed, and nothing reached PostgreSQL. Inkless 0.51 has no produce back-pressure, so the broker kept accepting the record while the attempts ran, and p1 waited 6.5 s for its error. p1 retried; the bucket was fast again before the retry's first attempt ended, and that attempt succeeded and was committed. c1 then read it, and nothing was lost. Simulator choices: a slow operation takes 2 s, an attempt ends 2010 ms after the previous one (Inkless's 2 s call timeout plus its 10 ms backoff), and an attempt that ends after the bucket recovered counts as a success.
Configs in this scenario
-
retriesHow many times the producer sends a batch again after a transient error (default 2147483647, so in practice delivery.timeout.ms ends the retrying); idempotence needs it above 0. -
retry.How long the producer waits before retrying a failed send, so it does not hammer a broker that is still recovering.backoff. ms
Embed this scenario
Paste this into a blog post, a course page or your team's docs. The scenario plays inside your page, and the link under it points readers to this walkthrough.
<iframe src="https://monedula.dev/kafka-simulator/embed/?scenario=07.1.4" title="Kafka Simulator: Inkless: object storage turns slow" width="100%" height="520" style="border:1px solid #d0d0d0;border-radius:8px" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
<p><a href="https://monedula.dev/kafka-simulator/scenarios/inkless-slow-object-storage/">Aiven Inkless: a slow S3 bucket fails Kafka produce</a></p> Further reading
Aiven Inkless source on GitHub (inkless-release-0.51)
Troubleshooting
More in Diskless
- Diskless Kafka topics (KIP-1163): the write path
- Diskless vs classic Kafka: cross-AZ replication traffic
- Diskless Kafka produce latency: the price of object storage
- Diskless Kafka (KIP-1163): when object storage goes down
- Aiven Inkless diskless Kafka: the write path
- Aiven Inkless: what a PostgreSQL outage does to Kafka
- Aiven Inkless: what losing a Kafka broker costs
- KafScale diskless Kafka: etcd lease, S3 segment, ack
- KafScale 2.1 diskless Kafka: a lease owner crashes
- KafScale 2.1 diskless Kafka: when etcd goes down
- KafScale 2.1 diskless Kafka: when S3 goes down
- KafScale 2.1 proxy: etcd down past the 60 s cache TTL
- KafScale 2.1: a Kafka producer timeout that still wrote
- KafScale 2.1 diskless Kafka: lease handover, no overwrite
- KafScale 2.1 diskless Kafka: a paused broker comes back
- AutoMQ diskless Kafka: one S3 WAL per broker, then ack
- AutoMQ diskless Kafka: a broker crash and WAL failover
- AutoMQ diskless Kafka: moving a partition, no copying
- AutoMQ diskless Kafka: zone router, no cross-zone data
- AutoMQ diskless Kafka: when S3 goes down
- WarpStream diskless Kafka: the write path through Agents
- WarpStream Kafka: a leader per client, a cache per zone
- WarpStream Kafka: an Agent dies mid-commit
- WarpStream Kafka: the control plane goes down
- WarpStream Kafka Ripcord: produce without the control plane
- WarpStream Kafka lightning topics: ack before the commit
- WarpStream Kafka transactions in the control plane
- Redpanda Kafka write path: the offset comes after S3
- Redpanda Kafka leader crash: a Raft election, no replay
- Redpanda Kafka S3 outage: uploads time out, Raft holds
- Redpanda Kafka L0 to L1: the LRO and who serves a read
- Redpanda Kafka transactions: exactly-once on Cloud Topics
- Nisshi diskless Kafka: watermark.json, then the batch
- Nisshi diskless Kafka on PostgreSQL: a row lock per write
- Nisshi diskless Kafka: two brokers write one partition
- Nisshi diskless Kafka: reading through another broker
- Nisshi diskless Kafka: a broker dies mid-write
- Nisshi diskless Kafka: when PostgreSQL goes down
- Nisshi diskless Kafka: what 0.8.2 refuses
- Ursa for Kafka write path: Oxia assigns the offset
- Ursa for Kafka zones: the zonal owner and the zone cache
- Ursa for Kafka compaction: from WAL objects to Parquet
- Ursa for Kafka broker failure: a kill and a silent broker
- Ursa for Kafka: diskless and disk topics, side by side