Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imbalanced leader when using placement rule to bind the leader #8023

Open
rleungx opened this issue Apr 3, 2024 · 0 comments
Open

Imbalanced leader when using placement rule to bind the leader #8023

rleungx opened this issue Apr 3, 2024 · 0 comments
Labels
type/enhancement The issue belongs to an enhancement.

Comments

@rleungx
Copy link
Member

rleungx commented Apr 3, 2024

Enhancement Task

Consider such a case:

  1. we have 3 zones: z1, z2, and z3. Each zone has 3 tikvs.
  2. we have 3 tables: t1, t2, and t3. Each table has 3 replicas which are located in different zones.
  3. t1's leader is bound to z1, t2's leader is bound to z2, and t3's leader is bound to z3.

Assume each table has only 3 regions. In z1, we denote 3 tikv as tikv1, tikv2, tikv3. Each tikv will have 3 regions but it doesn't have the concept of a table. So all tikv1's regions could belong to t1, which leads to the imbalanced leader phenomenon in z1.
Besides, the balance leader scheduler can only balance the leader among the zones since each zone only has one replica of a region. It also won't help.

We may need to consider this case.

@rleungx rleungx added the type/enhancement The issue belongs to an enhancement. label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

1 participant