Commit 3c9e438
authored
fix(iris): log perf, scheduling fixes, holder task device constraints (marin-community#3369)
Log performance: batch log fetching replaces per-line streaming,
substring filters run server-side, reduced default fetch size for faster
UI response.
Scheduling performance: cap non-coscheduled tasks per job per cycle
(max_tasks_per_job_per_cycle=4) to bound scheduler CPU time and prevent
GIL starvation of the heartbeat thread.
Reservation holder constraint fix: holder jobs were created without
device-type/variant constraints because they bypass the service layer's
_inject_resource_constraints(). When the reservation entry had explicit
constraints (e.g. region) or no constraints at all, device constraints
were missing entirely. The holder could land on any worker (e.g. a v6e-4
when it needs v5p-64), the reservation would never be satisfied, and the
parent job would sit pending forever. Now constraints_from_resources() +
merge_constraints() auto-inject device constraints on holder creation,
matching what _worker_matches_reservation_entry already does for claim
matching.
Preference pass fix: holder tasks have job_id parent/:reservation: but
claims are keyed by the parent's wire ID. The preference pass now
resolves holder tasks through their parent so they route to claimed
workers after worker death + requeue.
Tests: 3 new tests covering device constraint injection,
wrong-device-type scheduling rejection, and preference pass parent
resolution for holders.1 parent 7bbcbb8 commit 3c9e438
File tree
33 files changed
+1213
-529
lines changed- lib/iris
- src/iris
- actor
- client
- cluster
- client
- controller
- static
- controller
- worker
- worker
- rpc
- tests
- cluster
- controller
- platform
- e2e
33 files changed
+1213
-529
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
817 | 817 | | |
818 | 818 | | |
819 | 819 | | |
820 | | - | |
| 820 | + | |
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
| |||
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
831 | | - | |
| 831 | + | |
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| |||
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
843 | | - | |
| 843 | + | |
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
20 | 30 | | |
21 | 31 | | |
22 | | - | |
23 | 32 | | |
24 | 33 | | |
25 | 34 | | |
| |||
28 | 37 | | |
29 | 38 | | |
30 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
31 | 49 | | |
32 | 50 | | |
| 51 | + | |
33 | 52 | | |
34 | 53 | | |
35 | 54 | | |
36 | 55 | | |
37 | 56 | | |
38 | 57 | | |
39 | 58 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
53 | 63 | | |
54 | 64 | | |
55 | 65 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| 157 | + | |
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
| |||
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
166 | | - | |
| 169 | + | |
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
| |||
289 | 292 | | |
290 | 293 | | |
291 | 294 | | |
| 295 | + | |
292 | 296 | | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
298 | 306 | | |
299 | 307 | | |
300 | 308 | | |
301 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
302 | 313 | | |
303 | 314 | | |
304 | 315 | | |
305 | 316 | | |
306 | 317 | | |
307 | 318 | | |
308 | 319 | | |
309 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
310 | 331 | | |
311 | 332 | | |
312 | 333 | | |
| |||
417 | 438 | | |
418 | 439 | | |
419 | 440 | | |
420 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
421 | 449 | | |
422 | 450 | | |
423 | 451 | | |
| |||
494 | 522 | | |
495 | 523 | | |
496 | 524 | | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
497 | 531 | | |
498 | 532 | | |
499 | 533 | | |
| |||
656 | 690 | | |
657 | 691 | | |
658 | 692 | | |
| 693 | + | |
659 | 694 | | |
660 | 695 | | |
661 | 696 | | |
| |||
847 | 882 | | |
848 | 883 | | |
849 | 884 | | |
| 885 | + | |
850 | 886 | | |
851 | 887 | | |
852 | 888 | | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
853 | 892 | | |
854 | 893 | | |
855 | 894 | | |
| |||
863 | 902 | | |
864 | 903 | | |
865 | 904 | | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
866 | 908 | | |
867 | 909 | | |
868 | 910 | | |
869 | 911 | | |
870 | 912 | | |
| 913 | + | |
871 | 914 | | |
872 | 915 | | |
873 | 916 | | |
| |||
877 | 920 | | |
878 | 921 | | |
879 | 922 | | |
880 | | - | |
| 923 | + | |
881 | 924 | | |
882 | 925 | | |
883 | 926 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
180 | 189 | | |
181 | 190 | | |
182 | 191 | | |
| |||
192 | 201 | | |
193 | 202 | | |
194 | 203 | | |
| 204 | + | |
| 205 | + | |
195 | 206 | | |
196 | 207 | | |
197 | 208 | | |
| |||
997 | 1008 | | |
998 | 1009 | | |
999 | 1010 | | |
1000 | | - | |
| 1011 | + | |
| 1012 | + | |
1001 | 1013 | | |
1002 | 1014 | | |
1003 | 1015 | | |
| |||
0 commit comments