-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(Backport to 2.2) [#5472] CDC Idle Throttling
Summary: In YugabyteDB clusters with bi-directional CDC enabled, we were seeing high CPU utilization ( ~ 70%) in both the clusters without any workloads running on the clusters. The CDC GetChanges call for identifying the new changes in the table is very aggressive to minimize latency and ensure minimal lag in high volume situations. Our new heuristic has 2 goals: 1. The Producer is active, we need to minimize lag and keep up. 2. The Producer is mostly idle, we don’t want to waste hw resources. For #2, we add an idle delay after X consecutive requests with no data. As soon as we get new data from GetChanges, we reset the delay. Test Plan: Jenkins: rebase: 2.2 Reviewers: bogdan, kannan, alan, rahuldesirazu, hector Reviewed By: hector Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D9377
- Loading branch information
1 parent
a681c93
commit 8816dac
Showing
5 changed files
with
142 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters