Commit b0ef2b4
authored
Move force merge from the downsmapling request to the ILM action (#135834)
In this PR we move the force-merge operation from the downsampling
request to the ILM action.
Our goal is to decouple the downsampling operation from the force-merge
operation. With this change the downsampling request is responsible to
ensure that the downsampled index is refreshed and flushed but not to
force merge it.
We believe that most of the time this is not necessary, and executing
the force-merge operation unnecessarily can increase the load on the
cluster.
To preserve backwards compatibility we move the responsibility to
execute the existing force merge to the downsample ILM action and we
make it configurable. By default, it will run but a user can disable it
just as they can with a searchable snapshot.
```
"downsample": {
"fixed_interval": "1h",
"force_merge_index": false
}
```
**Update**
As a follow up of this PR, we pose the question is the force merge in
the downsample action intentional and useful?
To answer this question, we extend time series telemetry. We define that
the force merge step in the downsample ILM action is useful, if this is
the only force merge step operation before a searchable snapshot.
Effectively, by this definition, we argue that the force merge in
downsampling is not an intentional operation the user has requested but
only the result of the implementation. We identify the biggest impact of
removing it to be a searchable snapshot, but if the searchable snapshot
performs its own force merge (and more performant force merge #133954)
then we could skip this operation in the downsample action altogether.
Fixes: #1356181 parent 167a731 commit b0ef2b4
File tree
18 files changed
+584
-254
lines changed- docs
- changelog
- reference/elasticsearch/index-lifecycle-actions
- server/src/main/resources/transport
- definitions/referable
- upper_bounds
- x-pack/plugin
- core/src
- internalClusterTest/java/org/elasticsearch/xpack/core/action
- main/java/org/elasticsearch/xpack/core
- action
- datastreams
- ilm
- test/java/org/elasticsearch/xpack/core
- action
- datastreams
- ilm
- downsample/src
- internalClusterTest/java/org/elasticsearch/xpack/downsample
- main/java/org/elasticsearch/xpack/downsample
- test/java/org/elasticsearch/xpack/downsample
- ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions
18 files changed
+584
-254
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 42 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
142 | | - | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
313 | 315 | | |
314 | 316 | | |
315 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
316 | 321 | | |
317 | 322 | | |
318 | 323 | | |
| 324 | + | |
319 | 325 | | |
320 | 326 | | |
321 | 327 | | |
322 | 328 | | |
323 | 329 | | |
| 330 | + | |
324 | 331 | | |
| 332 | + | |
325 | 333 | | |
326 | 334 | | |
327 | 335 | | |
328 | 336 | | |
329 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
330 | 342 | | |
331 | | - | |
332 | 343 | | |
333 | 344 | | |
334 | 345 | | |
| |||
383 | 394 | | |
384 | 395 | | |
385 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
386 | 407 | | |
387 | 408 | | |
388 | 409 | | |
| |||
462 | 483 | | |
463 | 484 | | |
464 | 485 | | |
465 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
466 | 490 | | |
467 | 491 | | |
468 | 492 | | |
469 | 493 | | |
470 | 494 | | |
471 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
472 | 500 | | |
473 | 501 | | |
474 | 502 | | |
475 | 503 | | |
476 | 504 | | |
477 | 505 | | |
478 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
479 | 511 | | |
480 | 512 | | |
481 | 513 | | |
482 | 514 | | |
483 | | - | |
| 515 | + | |
484 | 516 | | |
485 | 517 | | |
486 | 518 | | |
| |||
498 | 530 | | |
499 | 531 | | |
500 | 532 | | |
| 533 | + | |
501 | 534 | | |
502 | 535 | | |
| 536 | + | |
| 537 | + | |
503 | 538 | | |
504 | 539 | | |
505 | 540 | | |
| |||
Lines changed: 64 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
131 | | - | |
| 135 | + | |
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
| |||
167 | 171 | | |
168 | 172 | | |
169 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
170 | 177 | | |
171 | 178 | | |
172 | 179 | | |
173 | 180 | | |
174 | 181 | | |
175 | 182 | | |
176 | 183 | | |
177 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
178 | 192 | | |
179 | | - | |
| 193 | + | |
180 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
181 | 199 | | |
182 | 200 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
187 | 237 | | |
188 | 238 | | |
189 | 239 | | |
190 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
191 | 247 | | |
192 | 248 | | |
193 | 249 | | |
0 commit comments