You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by "TakaHiR07 (via GitHub)" <gi...@apache.org> on 2024/03/27 03:41:58 UTC

[PR] BP-65: Implement load balance for select bookie [bookkeeper]

TakaHiR07 opened a new pull request, #4246:
URL: https://github.com/apache/bookkeeper/pull/4246

   ### Motivation
   
   Implement bookie load balance to avoid bookie high write latency problem.
   
   Master issue: 
   
   ### Changes
   
   The proposed changes involves:
   1. Implement BaseMetricMonitor in bookie server, which would collect bookie load information periodically
   2. bookie client continue to use getBookieInfo restApi to acquire load information from each bookie.
   3. modify the implementation of RackawareEnsemblePlacementPolicyImpl, support select ensemble by LoadWeightBasedPlacement. Since LoadWeightBasedPlacement is an enhancement of DiskWeightBasedPlacement,  it would cover the DiskWeightBasedPlacement if feature enable.
   
   
   > If this PR is a BookKeeper Proposal (BP):
   >
   > - [x] Make sure the PR title is formatted like:
   >     `<BP-#>: Description of bookkeeper proposal`
   >     `e.g. BP-1: 64 bits ledger is support`
   > - [x] Attach the master issue link in the description of this PR.
   > - [ ] Attach the google doc link if the BP is written in Google Doc.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] BP-65: Implement load balance for select bookie [bookkeeper]

Posted by "shoothzj (via GitHub)" <gi...@apache.org>.
shoothzj commented on code in PR #4246:
URL: https://github.com/apache/bookkeeper/pull/4246#discussion_r1675006169


##########
bookkeeper-proto/src/main/proto/BookkeeperProtocol.proto:
##########
@@ -220,6 +220,10 @@ message GetBookieInfoResponse {
     required StatusCode status = 1;
     optional int64 totalDiskCapacity = 2;
     optional int64 freeDiskSpace = 3;
+    optional int32 journalIoUtil = 4;
+    optional int32 ledgerIoUtil = 5;
+    optional int32 cpuUsedRate = 6;
+    optional int64 writeBytePerSecond = 7;

Review Comment:
   shall we name it `writeBytesPerSecond`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org