Skip to content

Commit b4380c8

Browse files
committed
Documentation updates
Signed-off-by: Shmuel Kallner <[email protected]>
1 parent b2bd42e commit b4380c8

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

site-src/guides/epp-configuration/config-text.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ The fields in a schedulingProfile entry are:
8181
- *plugins* specifies the set of plugins to be used when this scheduling profile is chosen for a request.
8282
Each entry in the schedulingProfile's plugins section has the following fields:
8383
- *pluginRef* is a reference to the name of the plugin instance to be used
84-
- *weight* is the weight to be used if the referenced plugin is a scorer.
84+
- *weight* is the weight to be used if the referenced plugin is a scorer. If omitted, a weight of one
85+
will be used.
8586
8687
A complete configuration might look like this:
8788
```yaml
@@ -93,12 +94,9 @@ plugins:
9394
hashBlockSize: 5
9495
maxPrefixBlocksToMatch: 256
9596
lruCapacityPerServer: 31250
96-
- type: max-score-picker
97-
- type: single-profile-handler
9897
schedulingProfiles:
9998
- name: default
10099
plugins:
101-
- pluginRef: max-score-picker
102100
- pluginRef: prefix-cache-scorer
103101
weight: 50
104102
```
@@ -163,16 +161,35 @@ spec:
163161
hashBlockSize: 5
164162
maxPrefixBlocksToMatch: 256
165163
lruCapacityPerServer: 31250
166-
- type: max-score-picker
167-
- type: single-profile-handler
168164
schedulingProfiles:
169165
- name: default
170166
plugins:
171-
- pluginRef: max-score-picker
172167
- pluginRef: prefix-cache-scorer
173168
weight: 50
174169
```
175170

171+
The EPP configuration in the above two examples are equivalent to the following configuration after
172+
defaults have been applied:
173+
174+
```yaml
175+
apiVersion: inference.networking.x-k8s.io/v1alpha1
176+
kind: EndpointPickerConfig
177+
plugins:
178+
- type: prefix-cache-scorer
179+
parameters:
180+
hashBlockSize: 5
181+
maxPrefixBlocksToMatch: 256
182+
lruCapacityPerServer: 31250
183+
- type: single-profile-handler
184+
- type: max-score-picker
185+
schedulingProfiles:
186+
- name: default
187+
plugins:
188+
- pluginRef: prefix-cache-scorer
189+
weight: 50
190+
-pluginRef: max-score-picker
191+
```
192+
176193
## Plugin Configuration
177194

178195
This section describes how to setup the various plugins that are available with the IGW.

0 commit comments

Comments
 (0)