@@ -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.
8282Each 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
8687A 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
9897schedulingProfiles :
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
178195This section describes how to setup the various plugins that are available with the IGW.
0 commit comments