-
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.
[#6305] Adaptive Heartbeat Reporting
Summary: Currently, we send all tablets that changed on the TServer to the Master within a single heartbeat. This can get extremely large and processing it on the server can exceed the Heartbeat timeout on large clusters, causing server restarts and further instability. We want to limit heartbeat timeouts to more severe problems, like resource issues and software deadlocks. To be more flexible: 1: The TS negotiates a limit on the max number of tablets included in a single heartbeat. With a fixed size, we can now bound the amount of processing in a single RPC. 2: Honor deadline on Master. After every batch of tablet heartbeat processing, the Master checks to see if it is close to the deadline and exits early if so. The heartbeat response only includes the processed tablets so the TS knows what information to send on the next heartbeat. Test Plan: MultiHeartbeat/CreateMultiHBTableStressTest.CreateAndDeleteBigTable/1 MultiHeartbeat/CreateMultiHBTableStressTest.RestartServersAfterCreation/1 CreateSmallHBTableStressTest.TestRestartMasterDuringFullHeartbeat CreateTableStressTest.TestHeartbeatDeadline TsTabletManagerTest.TestTabletReportLimit TsTabletManagerTest.TestTabletReports ClientTest.Capability Reviewers: timur, amitanand, rahuldesirazu, bogdan Reviewed By: bogdan Subscribers: kannan, sergei, ybase, bogdan Differential Revision: https://phabricator.dev.yugabyte.com/D9974
- Loading branch information
1 parent
978dd14
commit 8bac374
Showing
14 changed files
with
537 additions
and
154 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
Oops, something went wrong.