Commit f007da0
committed
Avoid hoarding cluster state references during rollover
By keeping a list of all the rollover results in a rollover request
batch, we were keeping references to all the intermediate cluster states
that we built. We've seen this list take up ~1.4GB with 600 rollover
requests in one batch.
We only kept the list of results to compute the "reason" for the
allocation reroute, so we can easily drop the cluster state reference
from the list and only keep what we need.
Fixes #1238931 parent 5a62fd1 commit f007da0
File tree
2 files changed
+8
-24
lines changed- server/src/main/java/org/elasticsearch/action/admin/indices/rollover
2 files changed
+8
-24
lines changedLines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
192 | | - | |
| 191 | + | |
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
| |||
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 216 | + | |
225 | 217 | | |
226 | 218 | | |
227 | 219 | | |
| |||
234 | 226 | | |
235 | 227 | | |
236 | 228 | | |
237 | | - | |
| 229 | + | |
238 | 230 | | |
239 | 231 | | |
240 | 232 | | |
| |||
271 | 263 | | |
272 | 264 | | |
273 | 265 | | |
274 | | - | |
| 266 | + | |
275 | 267 | | |
276 | 268 | | |
277 | 269 | | |
| |||
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
494 | 493 | | |
495 | 494 | | |
496 | 495 | | |
497 | | - | |
| 496 | + | |
498 | 497 | | |
499 | 498 | | |
500 | 499 | | |
| |||
506 | 505 | | |
507 | 506 | | |
508 | 507 | | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
| 508 | + | |
517 | 509 | | |
518 | 510 | | |
519 | 511 | | |
| |||
525 | 517 | | |
526 | 518 | | |
527 | 519 | | |
528 | | - | |
| 520 | + | |
529 | 521 | | |
530 | 522 | | |
531 | 523 | | |
| |||
596 | 588 | | |
597 | 589 | | |
598 | 590 | | |
599 | | - | |
| 591 | + | |
600 | 592 | | |
601 | 593 | | |
602 | 594 | | |
| |||
0 commit comments