Skip to content

Automatic Partition Pausing #238

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

Merged
merged 9 commits into from
Jul 22, 2020
Merged

Automatic Partition Pausing #238

merged 9 commits into from
Jul 22, 2020

Conversation

tylertreat
Copy link
Member

Implements auto pausing for idle partitions. Addresses #218.

This adds a new config, streams.auto.pause.time, which sets the amount of time a partition can go idle (not receive messages) before it is automatically paused. This is disabled by default and can be overridden on individual streams when they are created.

Dynamically adjust the replicator sleep time for the tick loop based on
when the follower last caught up. This improves the precision of
follower failure detection as it relates to replica.max.lag.time.
Remove the WaitGroup counter for the autoPauseLoop to avoid deadlocks on
auto pausing.
@tylertreat tylertreat merged commit 9dd1532 into master Jul 22, 2020
@tylertreat tylertreat deleted the auto_pausing branch July 22, 2020 19:06
@tylertreat tylertreat linked an issue Jul 22, 2020 that may be closed by this pull request
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.

Automatic partition pausing
1 participant