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

Stale-Read load is unbalance in TiKV #857

Open
crazycs520 opened this issue Jun 29, 2023 · 0 comments · May be fixed by #871
Open

Stale-Read load is unbalance in TiKV #857

crazycs520 opened this issue Jun 29, 2023 · 0 comments · May be fixed by #871

Comments

@crazycs520
Copy link
Contributor

crazycs520 commented Jun 29, 2023

TiDB Cluster Topology

tidb_servers:
  - host: 192.168.78.2
      labels: { zone: "z1", host: "tidb0" }
tikv_servers:
  - host: 192.168.80.2
    config:
      server.labels: { zone: "z1", host: "tikv0" }
  - host: 192.168.80.3
    config:
      server.labels: { zone: "z1", host: "tikv1" }
  - host: 192.168.80.4
    config:
      server.labels: { zone: "z2", host: "tikv2" }

Then send stale-read point-select SQL request to tidb0, then the stale-read get request in TiKV should be balanced in tikv0 and tikv1, and doesn't have stale-read get request in tikv2. But in TiDB v6.5.3, the stale-read request in tikv0 and tikv1 is unbalanced. Following is the TiKV metrics, as you can see, the stale-read get request on tikv0 is twice as high as on tikv1, which is not as expected, and there is no stale-read get request on tikv2, which is expected.

image
@crazycs520 crazycs520 changed the title Stale-Read load is unbalanced Stale-Read load is unbalance Jun 29, 2023
@crazycs520 crazycs520 changed the title Stale-Read load is unbalance Stale-Read load is unbalance in TiKV Jun 29, 2023
@crazycs520 crazycs520 linked a pull request Jul 4, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant