Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

feat: add copy secondary for cluster balance #883

Merged
merged 2 commits into from
Aug 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/meta/greedy_load_balancer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,8 @@ void greedy_load_balancer::balance_cluster()
return;
}

// TBD(zlw): copy primary
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the last pull request for cluster load balance :)

cluster_replica_balance(
t_global_view, cluster_balance_type::COPY_SECONDARY, *t_migration_result);
}

bool greedy_load_balancer::cluster_replica_balance(const meta_view *global_view,
Expand Down