Commit ae857c0
fix(tiering): implement qlist symmetric cooloff and fix memory handling
Implements the symmetric cooloff logic for QList tiering that walks
from both ends of the list and offloads nodes beyond the threshold.
Fixes memory handling bugs in move operator and null pointer check.
Changes:
- Implement symmetric cooloff in CoolOff() for balanced tiering
- Fix InsertNode() null pointer check when insert_opt is AFTER
- Fix move operator to properly reset num_offloaded_nodes_
- Add Stats::operator+= for cross-shard aggregation
- Add Prometheus metrics for list reads and tiering events
- Add list_tiering_threshold flag for configuration
- Fix typo: "overlaoding" -> "overloading"
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 55d6491 commit ae857c0
File tree
5 files changed
+69
-7
lines changed- src
- core
- server
5 files changed
+69
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
420 | 438 | | |
421 | 439 | | |
422 | 440 | | |
| |||
485 | 503 | | |
486 | 504 | | |
487 | 505 | | |
488 | | - | |
| 506 | + | |
489 | 507 | | |
490 | | - | |
| 508 | + | |
491 | 509 | | |
492 | 510 | | |
493 | 511 | | |
| |||
701 | 719 | | |
702 | 720 | | |
703 | 721 | | |
704 | | - | |
| 722 | + | |
705 | 723 | | |
706 | 724 | | |
707 | 725 | | |
| |||
892 | 910 | | |
893 | 911 | | |
894 | 912 | | |
895 | | - | |
896 | | - | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
897 | 935 | | |
898 | 936 | | |
899 | 937 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1963 | 1963 | | |
1964 | 1964 | | |
1965 | 1965 | | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
1966 | 1972 | | |
1967 | 1973 | | |
1968 | 1974 | | |
| |||
1998 | 2004 | | |
1999 | 2005 | | |
2000 | 2006 | | |
2001 | | - | |
| 2007 | + | |
2002 | 2008 | | |
2003 | 2009 | | |
2004 | 2010 | | |
2005 | 2011 | | |
2006 | 2012 | | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
2007 | 2020 | | |
2008 | 2021 | | |
2009 | 2022 | | |
| |||
2837 | 2850 | | |
2838 | 2851 | | |
2839 | 2852 | | |
| 2853 | + | |
| 2854 | + | |
2840 | 2855 | | |
2841 | 2856 | | |
2842 | 2857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
0 commit comments