congqixia
e71b7c7cc9
enhance: Reduce datanode metacache frequent scan range ( #33400 )
...
See also #32165
There were some frequent scan in metacache:
- List all segments whose start positions not synced
- List compacted segments
Those scan shall cause lots of CPU time when flushed segment number is
large meanwhile `Flushed` segments can be skipped in those two scenarios
This PR make:
- Add segment state shortcut in metacache
- List start positions state before `Flushed`
- Make compacted segments state to be `Dropped` and use `Dropped` state
while scanning them
---------
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2024-05-28 14:19:42 +08:00
..
2023-10-13 09:55:34 +08:00
2024-05-21 11:35:38 +08:00
2024-05-24 09:07:41 +08:00
2024-05-23 11:29:41 +08:00
2024-05-23 09:53:40 +08:00
2024-02-04 10:49:05 +08:00
2024-05-28 14:19:42 +08:00
2024-05-28 14:19:42 +08:00
2024-05-28 14:19:42 +08:00
2022-05-06 17:49:51 +08:00
2023-07-24 10:23:01 +08:00
2024-05-16 14:19:34 +08:00
2024-05-16 14:19:34 +08:00
2024-05-21 14:35:39 +08:00
2024-05-21 14:35:39 +08:00
2024-05-23 09:53:40 +08:00
2024-05-24 09:07:41 +08:00
2024-03-22 15:29:09 +08:00
2024-05-23 11:29:41 +08:00
2024-05-28 14:19:42 +08:00
2024-05-17 17:25:36 +08:00
2024-05-07 15:49:30 +08:00
2024-05-07 15:49:30 +08:00
2023-09-21 09:45:27 +08:00
2024-05-25 04:43:41 +08:00
2024-05-27 10:31:41 +08:00
2023-12-22 14:20:43 +08:00
2024-05-14 10:03:32 +08:00
2024-04-16 10:49:20 +08:00
2023-09-21 09:45:27 +08:00
2023-09-21 09:45:27 +08:00
2023-05-25 09:53:30 +08:00
2024-03-07 20:39:02 +08:00
2023-11-22 10:26:28 +08:00
2024-04-29 10:59:26 +08:00
2023-11-03 14:42:17 +08:00
2023-11-03 14:42:17 +08:00
2023-08-08 20:41:15 +08:00
2023-11-06 06:02:16 +08:00
2024-05-24 09:07:41 +08:00
2024-05-24 09:07:41 +08:00
2023-06-09 01:28:37 +08:00
2024-04-29 10:59:26 +08:00
2023-12-27 16:00:48 +08:00
2024-04-29 10:59:26 +08:00
2024-05-23 09:53:40 +08:00
2021-11-16 15:41:11 +08:00
2023-04-06 19:14:32 +08:00
2024-04-12 16:01:19 +08:00
2021-10-09 11:22:58 +08:00
2024-05-28 14:19:42 +08:00
2024-05-24 09:07:41 +08:00
2023-11-15 15:24:18 +08:00
2024-02-21 11:54:53 +08:00
2024-03-02 10:13:01 +08:00
2024-05-25 04:43:41 +08:00
2023-09-21 09:45:27 +08:00