Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the addition of client metrics heartbeats asynchronous
When client metrics is enabled, the master starts up takes four more minutes. The four more minutes are taken by `PollingMasterInquireClient.getPrimaryRpcAddress` in `FileSystemContext.initContext`. `getPrimaryRpcAddress()` retries 44 times and takes 2 minutes each call which heavily delays the master starts up. The primary rpc address is used for load configuration from the leading master and initialize metrics heartbeat. This PR put the load configuration logics in the metrics heartbeat thread, so that client metrics logic in FileSystemContext will not block actual operations. pr-link: #10936 change-id: cid-116bac6350e928d788669c307a4f8bff578c835f
- Loading branch information
Showing
3 changed files
with
57 additions
and
27 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