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

region is not balance when dispatches to tiflash_storage nodes for static pruning partition table. #6916

Closed
guo-shaoge opened this issue Feb 28, 2023 · 0 comments · Fixed by #6920
Labels
affects-6.6 severity/major type/bug The issue is confirmed as a bug.

Comments

@guo-shaoge
Copy link
Contributor

guo-shaoge commented Feb 28, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. We use very big internal dataset(ask me for mysql link if you want to reproduce). (topo is: two tiflash_compute nodes and two tiflash_storage nodes
  2. run following sqls:
set @@tidb_partition_prune_mode = 'static';
select count(*) from xxx_events;
  1. check logs for two tiflash_compute nodes.

2. What did you expect to see? (Required)

region should balance.

3. What did you see instead (Required)

regoin is not balace. We can see there is two aspects of not balancing:

  1. same tiflash_compute dispatch to two tiflash_storage nodes is not balance(395 VS 1148, 1768 VS 4900). (Workround is here: *: support different tiflash_compute dispatch policy tidb#41406)
  2. regsion need to read between two tiflash_compute nodes.(395+1148=1543 VS 1768+4900=6668)
tiflash_compute-0 -> tiflash_storage-0: 395
tiflash_compute-0 -> tiflash_storage-1: 1148
tiflash_compute-0 -> tiflash_storage-0: 1768
tiflash_compute-1 -> tiflash_storage-1: 4900

4. What is your TiFlash version? (Required)

MySQL [test]> select tidb_version();
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version()                                                                                                                                                                                                                                                                                         |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v6.7.0-alpha-111-gb417ad0689
Edition: Community
Git Commit Hash: b417ad0689795a265df9cdba22c40871f50b7e55
Git Branch: master
UTC Build Time: 2023-02-28 08:35:54
GoVersion: go1.19.1
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: unistore |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.001 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.6 severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
2 participants