Commit 6e7f48b
authored
[iris] Drop per-RPC autoscaler hint in GetJobStatus; cache worker roster; cover task-summary index (#4846)
GetJobStatus rebuilt and serialized the full autoscaler routing table
per call (35% of controller wall-time in a live CPU profile); drop the
hint there and keep it on ListJobs. Adds a 1s TTL cache for the worker
roster so back-to-back ListWorkers and GetAutoscalerStatus share one
scan. Adds a covering index on tasks(job_id, state, failure_count,
preemption_count) so _task_summaries_for_jobs can satisfy the GROUP BY +
SUM from the index alone.1 parent 26c5b61 commit 6e7f48b
File tree
4 files changed
+72
-8
lines changed- lib/iris
- src/iris/cluster/controller
- migrations
- tests/cluster/controller
4 files changed
+72
-8
lines changedLines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
770 | 773 | | |
771 | 774 | | |
772 | 775 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
1004 | 1006 | | |
1005 | 1007 | | |
1006 | 1008 | | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
1007 | 1017 | | |
1008 | 1018 | | |
1009 | 1019 | | |
1010 | 1020 | | |
1011 | 1021 | | |
1012 | 1022 | | |
1013 | 1023 | | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
1014 | 1042 | | |
1015 | 1043 | | |
1016 | 1044 | | |
| |||
1194 | 1222 | | |
1195 | 1223 | | |
1196 | 1224 | | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
1197 | 1231 | | |
1198 | 1232 | | |
1199 | 1233 | | |
1200 | 1234 | | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | 1235 | | |
1206 | 1236 | | |
1207 | 1237 | | |
| |||
1575 | 1605 | | |
1576 | 1606 | | |
1577 | 1607 | | |
1578 | | - | |
| 1608 | + | |
1579 | 1609 | | |
1580 | 1610 | | |
1581 | 1611 | | |
| |||
1727 | 1757 | | |
1728 | 1758 | | |
1729 | 1759 | | |
1730 | | - | |
| 1760 | + | |
1731 | 1761 | | |
1732 | 1762 | | |
1733 | 1763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
655 | 659 | | |
656 | 660 | | |
657 | 661 | | |
658 | 662 | | |
659 | | - | |
| 663 | + | |
660 | 664 | | |
661 | 665 | | |
662 | 666 | | |
| |||
700 | 704 | | |
701 | 705 | | |
702 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
703 | 710 | | |
704 | 711 | | |
705 | 712 | | |
706 | 713 | | |
707 | 714 | | |
708 | | - | |
| 715 | + | |
709 | 716 | | |
710 | 717 | | |
711 | 718 | | |
| |||
0 commit comments