Commit 18b967e
committed
refactor(cubestore): collapse batch flag into strategy selector, concurrent download in merge
Remove CUBESTORE_BATCH_REPARTITION / batch_repartition_enabled. The repartition
strategy (per_chunk / per_partition / range) is now the sole selector:
- per_chunk: one job per chunk -> repartition_chunk
- per_partition: one anchor job per partition -> merge
- range: RepartitionRange jobs -> merge
The job handler and scheduler dispatch on the strategy directly. The dead
per_chunk+batch hybrid (per-chunk loop and its producer/consumer prefetch) is
gone, along with its two now-obsolete tests.
Prefetch is reworked: drop the byte-budget producer/consumer and
CUBESTORE_REPARTITION_PREFETCH_BUDGET; add a plain bool
CUBESTORE_REPARTITION_CONCURRENT_DOWNLOAD (default off) that downloads a merge
group's chunk parquets concurrently before building the merge inputs. It applies
to both per_partition and range; the group is already bounded by
repartition_merge_max_input_files and the pool by download_concurrency, so no
extra budget is needed.1 parent ae73d0b commit 18b967e
5 files changed
Lines changed: 78 additions & 579 deletions
File tree
- rust/cubestore/cubestore/src
- cluster
- ingestion
- config
- sql
- store
Lines changed: 9 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
236 | 233 | | |
237 | 234 | | |
238 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
1019 | 1013 | | |
1020 | 1014 | | |
1021 | 1015 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | 543 | | |
549 | 544 | | |
550 | 545 | | |
| |||
567 | 562 | | |
568 | 563 | | |
569 | 564 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
577 | 570 | | |
578 | 571 | | |
579 | 572 | | |
| |||
733 | 726 | | |
734 | 727 | | |
735 | 728 | | |
736 | | - | |
737 | 729 | | |
738 | 730 | | |
739 | 731 | | |
740 | 732 | | |
741 | | - | |
| 733 | + | |
742 | 734 | | |
743 | 735 | | |
744 | 736 | | |
| |||
1054 | 1046 | | |
1055 | 1047 | | |
1056 | 1048 | | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | 1049 | | |
1061 | 1050 | | |
1062 | 1051 | | |
| |||
1069 | 1058 | | |
1070 | 1059 | | |
1071 | 1060 | | |
1072 | | - | |
1073 | | - | |
| 1061 | + | |
| 1062 | + | |
1074 | 1063 | | |
1075 | 1064 | | |
1076 | 1065 | | |
| |||
1737 | 1726 | | |
1738 | 1727 | | |
1739 | 1728 | | |
1740 | | - | |
1741 | 1729 | | |
1742 | 1730 | | |
1743 | 1731 | | |
| |||
1754 | 1742 | | |
1755 | 1743 | | |
1756 | 1744 | | |
1757 | | - | |
1758 | | - | |
1759 | | - | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
1763 | 1749 | | |
1764 | 1750 | | |
1765 | 1751 | | |
| |||
2007 | 1993 | | |
2008 | 1994 | | |
2009 | 1995 | | |
2010 | | - | |
2011 | 1996 | | |
2012 | 1997 | | |
2013 | 1998 | | |
2014 | 1999 | | |
2015 | 2000 | | |
2016 | 2001 | | |
2017 | | - | |
| 2002 | + | |
2018 | 2003 | | |
2019 | 2004 | | |
2020 | 2005 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3605 | 3605 | | |
3606 | 3606 | | |
3607 | 3607 | | |
3608 | | - | |
| 3608 | + | |
3609 | 3609 | | |
3610 | 3610 | | |
3611 | 3611 | | |
| |||
3616 | 3616 | | |
3617 | 3617 | | |
3618 | 3618 | | |
3619 | | - | |
3620 | | - | |
3621 | | - | |
3622 | | - | |
3623 | | - | |
| 3619 | + | |
| 3620 | + | |
| 3621 | + | |
| 3622 | + | |
3624 | 3623 | | |
3625 | 3624 | | |
3626 | 3625 | | |
3627 | | - | |
3628 | | - | |
| 3626 | + | |
| 3627 | + | |
| 3628 | + | |
3629 | 3629 | | |
3630 | 3630 | | |
3631 | 3631 | | |
| |||
3721 | 3721 | | |
3722 | 3722 | | |
3723 | 3723 | | |
3724 | | - | |
| 3724 | + | |
| 3725 | + | |
3725 | 3726 | | |
3726 | 3727 | | |
3727 | 3728 | | |
| |||
0 commit comments