-
Notifications
You must be signed in to change notification settings - Fork 89
Add README.md file to the epp pkg #386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,25 @@ | ||||||
# The EndPoint Picker (EPP) | ||||||
This package provides the reference implementation for the Endpoint Picker (EPP). It implements the [extension protocol](../../docs/proposals/003-endpoint-picker-protocol), enabling a proxy or gateway to request endpoint hints from an extension. As it is implemented now, an EPP instance handles a single `InferencePool` (and so for each `InferencePool`, one must create a dedicated EPP deployment). | ||||||
|
||||||
|
||||||
The Endpoint Picker performs the following core functions: | ||||||
kfswain marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
- Endpoint Selection | ||||||
- The EPP determines the appropriate Pod endpoint for the load balancer (LB) to route requests. | ||||||
- It selects from the pool of ready Pods designated by the assigned InferencePool. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is also a nit There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done. |
||||||
- Endpoint selection is contingent on the request's ModelName matching an `InferenceModel` that references the `InferencePool`. | ||||||
- Requests with unmatched ModelName values trigger an error response to the proxy. | ||||||
- The endpoint selection algorithm is detailed below. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: consider removing, the headers I think are prominent enough to draw attention. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||||||
- Traffic Splitting and ModelName Rewriting | ||||||
- The EPP facilitates controlled rollouts of new adapter versions by implementing traffic splitting between adapters within the same `InferencePool`, as defined by the `InferenceModel`. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. More nits: Linking to the InfModel's There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||||||
- EPP rewrites the model name in the request to the target model name as defined on the `InferenceModel` object. | ||||||
- Observability | ||||||
- The EPP generates metrics to enhance observability. | ||||||
- It reports InferenceModel-level metrics, further broken down by target model. | ||||||
- Detailed information regarding metrics can be found on the [website](https://gateway-api-inference-extension.sigs.k8s.io/guides/metrics/). | ||||||
|
||||||
## The scheduling algorithm | ||||||
The scheduling package implements request scheduling algorithms for load balancing requests across backend pods in an inference gateway. The scheduler ensures efficient resource utilization while maintaining low latency and prioritizing critical requests. It applies a series of filters based on metrics and heuristics to select the best pod for a given request. The following flow chart summarizes the current scheduling algorithm | ||||||
|
||||||
# Flowchart | ||||||
<img src="../../docs/scheduler-flowchart.png" alt="Scheduling Algorithm" width="400" /> |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Consider dropping 'As it is implemented now'. My thinking is: we can just update this when/if we make an EPP multitenant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sense, done.