bookkeeper icon indicating copy to clipboard operation
bookkeeper copied to clipboard

BP-65: Implement load balance for select bookie

Open TakaHiR07 opened this issue 1 year ago • 0 comments

Motivation

Implement bookie load balance to avoid bookie high write latency problem.

Master issue: https://github.com/apache/bookkeeper/issues/4247

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.

TakaHiR07 avatar Mar 27 '24 03:03 TakaHiR07