Commit 3a4a9ab
committed
feat: schema mismatch alignment
This PR addresses the OOM issue (or reduces the chances of running into OOM when snapshotting) by doing following main changes
- defaults gen 1 duration to 1m (instead of 10m)
- snapshot chunks are built lazily and
- sort/dedupe step itself is done serially (i.e 1 at a time)
As an optimisation when _not_ forcing a snapshot it aggregates up to 10m worth of chunks and writes them in parallel assumption is given it's a normal snapshot, there is enough memory to run it.
closes: #259911 parent 7ddd888 commit 3a4a9ab
File tree
9 files changed
+868
-283
lines changed- influxdb3_wal/src
- influxdb3_write
- src
- write_buffer
- influxdb3/src/commands
9 files changed
+868
-283
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
581 | | - | |
582 | | - | |
| 580 | + | |
583 | 581 | | |
584 | 582 | | |
585 | 583 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
210 | 220 | | |
211 | 221 | | |
212 | 222 | | |
| |||
237 | 247 | | |
238 | 248 | | |
239 | 249 | | |
240 | | - | |
| 250 | + | |
241 | 251 | | |
242 | 252 | | |
243 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
68 | 66 | | |
69 | 67 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
87 | 74 | | |
88 | 75 | | |
89 | 76 | | |
| |||
156 | 143 | | |
157 | 144 | | |
158 | 145 | | |
159 | | - | |
160 | 146 | | |
161 | 147 | | |
162 | 148 | | |
| |||
176 | 162 | | |
177 | 163 | | |
178 | 164 | | |
179 | | - | |
180 | 165 | | |
181 | 166 | | |
182 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
971 | | - | |
972 | 971 | | |
973 | 972 | | |
974 | 973 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| |||
2721 | 2723 | | |
2722 | 2724 | | |
2723 | 2725 | | |
2724 | | - | |
2725 | | - | |
2726 | | - | |
2727 | | - | |
| 2726 | + | |
2728 | 2727 | | |
2729 | 2728 | | |
2730 | 2729 | | |
| |||
2795 | 2794 | | |
2796 | 2795 | | |
2797 | 2796 | | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
2798 | 2800 | | |
2799 | 2801 | | |
2800 | 2802 | | |
| |||
2807 | 2809 | | |
2808 | 2810 | | |
2809 | 2811 | | |
2810 | | - | |
2811 | | - | |
2812 | | - | |
2813 | 2812 | | |
2814 | 2813 | | |
2815 | 2814 | | |
| |||
0 commit comments