Commit 37f2f0b
authored
feat: add concurrency support in applyset operations (#712)
* feat: add concurrency support in applyset operations
Introduce configurable concurrency limit for applyset operations using `sync/errgroup`. This improves performance by enabling concurrent processing of apply api calls. Defaults to the number of objects in the applyset if unspecified.
Signed-off-by: Jakob Möller <[email protected]>
* feat: remove hardcoded prune concurrency limit in favor of concurrency spec
Replaced the fixed `PruneGVKParallelizationLimit` constant with the existing configurable `concurrency` field to allow dynamic adjustment of prune operation parallelism. Updated comments for clarity.
Signed-off-by: Jakob Möller <[email protected]>
---------
Signed-off-by: Jakob Möller <[email protected]>1 parent a260048 commit 37f2f0b
2 files changed
+39
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
| |||
186 | 192 | | |
187 | 193 | | |
188 | 194 | | |
189 | | - | |
| 195 | + | |
190 | 196 | | |
191 | | - | |
| 197 | + | |
| 198 | + | |
192 | 199 | | |
193 | 200 | | |
194 | 201 | | |
| |||
259 | 266 | | |
260 | 267 | | |
261 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
262 | 273 | | |
263 | 274 | | |
264 | 275 | | |
| |||
544 | 555 | | |
545 | 556 | | |
546 | 557 | | |
547 | | - | |
548 | 558 | | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
549 | 571 | | |
550 | 572 | | |
551 | 573 | | |
552 | 574 | | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
560 | 587 | | |
561 | 588 | | |
562 | 589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 39 | | |
48 | 40 | | |
49 | 41 | | |
| |||
124 | 116 | | |
125 | 117 | | |
126 | 118 | | |
127 | | - | |
| 119 | + | |
128 | 120 | | |
129 | 121 | | |
130 | 122 | | |
| |||
135 | 127 | | |
136 | 128 | | |
137 | 129 | | |
138 | | - | |
| 130 | + | |
139 | 131 | | |
140 | 132 | | |
141 | 133 | | |
| |||
0 commit comments