Skip to content

Improve retry logic during stream scaling by succeeding records that lande… - #576

Merged
chenylee-aws merged 2 commits into
awslabs:masterfrom
chenylee-aws:reduce_retry_storm
Aug 21, 2024
Merged

Improve retry logic during stream scaling by succeeding records that lande…#576
chenylee-aws merged 2 commits into
awslabs:masterfrom
chenylee-aws:reduce_retry_storm

Conversation

@chenylee-aws

Copy link
Copy Markdown
Contributor

…within the hash range of the actual put-to shard

Description of changes:
During stream scaling with KPL aggregation enabled, KPL users can experience a high number of throttling events from Kinesis and an increase in stream ingestion throughput due to excessive retries. This issue occurs when KPL fails and retries records whenever a record doesn't land on the predicted shard. This change aims to ensure that KPL can intelligently decide whether to retry a record based on the hash range of the actual shard.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Comment thread aws/kinesis/core/retrier.cc Outdated

@nsnikita-aws nsnikita-aws left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except few nit comments looks good to me, thank you!

Comment thread aws/kinesis/core/retrier.cc Outdated
Comment thread aws/kinesis/core/shard_map.h Outdated
Comment thread aws/kinesis/core/shard_map.cc Outdated
Comment thread aws/kinesis/core/shard_map.cc
@chenylee-aws
chenylee-aws merged commit f4a64f1 into awslabs:master Aug 21, 2024
@chenylee-aws chenylee-aws changed the title Reduce retries during stream scaling by succeeding records that lande… Improve retries during stream scaling by succeeding records that lande… Aug 28, 2024
@chenylee-aws chenylee-aws changed the title Improve retries during stream scaling by succeeding records that lande… Improve retry logic during stream scaling by succeeding records that lande… Aug 28, 2024
@chenylee-aws
chenylee-aws deleted the reduce_retry_storm branch April 11, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants