Commit 54e5d29
committed
feat(coordinator): serve encode/prefill/decode from a single EPP
The coordinator's per-phase model required three separate EPP
instances (one each for encode, prefill, decode), each with its own
Deployment, Service, and InferencePool, even though every
coordinator-to-worker call already carries an EPP-Phase header naming
the phase. Combining them into one EPP simplifies deployment and is a
prerequisite for p2p KV transfer (non-deferred decode).
Add a header-phase-profile-handler EPP plugin that runs the single
scheduling profile named by the EPP-Phase header, replacing the
per-instance single-profile-handler. Merge the three EPPs' scheduling
configs into one EndpointPickerConfig with encode/prefill/decode
profiles, each still gated by its existing by-label role filter so it
only sees its own role's pods out of the combined pool. Replace the
three epd-pools/{encode,prefill,decode} deploy components with one
epd-pool component: a single EPP Deployment/Service and one
InferencePool selecting the app label the worker Deployments already
share. Collapse the e2e Envoy test routing from three EPP-Phase-matched
ext_proc clusters to one, and update the coordinator e2e test
setup/assertions and architecture docs to match.
Signed-off-by: roytman <roytman@il.ibm.com>1 parent 08dce7a commit 54e5d29
17 files changed
Lines changed: 550 additions & 536 deletions
File tree
- cmd/epp/runner
- deploy/coordinator/components/inference-gateway
- epd-pools
- decode
- encode
- prefill
- epd-pool
- docs
- pkg/epp/framework/plugins/scheduling/profilehandler/headerphase
- test/coordinator/e2e/coordinator
- testdata
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
579 | 580 | | |
580 | 581 | | |
581 | 582 | | |
| 583 | + | |
582 | 584 | | |
583 | 585 | | |
584 | 586 | | |
| |||
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 0 additions & 100 deletions
This file was deleted.
Lines changed: 0 additions & 100 deletions
This file was deleted.
Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 0 additions & 15 deletions
This file was deleted.
0 commit comments