Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

chenylee-aws
Copy link
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.

Copy link

@nsnikita-aws nsnikita-aws left a comment

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!

aws/kinesis/core/retrier.cc Outdated Show resolved Hide resolved
aws/kinesis/core/shard_map.h Outdated Show resolved Hide resolved
aws/kinesis/core/shard_map.cc Outdated Show resolved Hide resolved
@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
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