Skip to content

Commit a14e87b

Browse files
committed
feat(conf): delete the old config MaxBytes
- use the new conf for the logs print
1 parent e68fb31 commit a14e87b

1 file changed

Lines changed: 2 additions & 17 deletions

File tree

apix/config/v1alpha1/endpointpickerconfig_types.go

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,6 @@ type ParserConfig struct {
271271

272272
// FlowControlConfig configures the Flow Control layer.
273273
type FlowControlConfig struct {
274-
// +optional
275-
// MaxBytes defines the global capacity limit for the Flow Control system.
276-
// It represents the maximum aggregate byte size of all active requests across all priority
277-
// levels. If this limit is exceeded, new requests will be rejected even if their specific
278-
// priority band has capacity.
279-
// If 0 or omitted, no global limit is enforced (unlimited).
280-
// Default: 0 (unlimited).
281-
MaxBytes *int64 `json:"maxBytes,omitempty"`
282-
283274
// +optional
284275
// Limits defines the global capacity boundaries for the Flow Control system.
285276
// These limits represent the maximum aggregate resource consumption across all priority
@@ -313,7 +304,7 @@ type FlowControlConfig struct {
313304

314305
func (fcc *FlowControlConfig) String() string {
315306
return fmt.Sprintf("{MaxBytes: %v, DefaultPriorityBand: %v, PriorityBands: %v}",
316-
fcc.MaxBytes, fcc.DefaultPriorityBand, fcc.PriorityBands)
307+
fcc.Limits.MaxBytes, fcc.DefaultPriorityBand, fcc.PriorityBands)
317308
}
318309

319310
// PriorityBandConfig configures a single priority band.
@@ -322,12 +313,6 @@ type PriorityBandConfig struct {
322313
// Higher values indicate higher priority.
323314
Priority int `json:"priority"`
324315

325-
// +optional
326-
// MaxBytes is the maximum number of bytes allowed for this priority band.
327-
// If 0 or omitted, the system default is used.
328-
// Default: 1 GB.
329-
MaxBytes *int64 `json:"maxBytes,omitempty"`
330-
331316
// +optional
332317
// Limits defines the capacity boundaries for this priority band.
333318
// These limits govern the maximum resource consumption allowed for requests at this
@@ -348,7 +333,7 @@ type PriorityBandConfig struct {
348333

349334
func (pbc PriorityBandConfig) String() string {
350335
return fmt.Sprintf("{Priority: %d, MaxBytes: %v, FairnessPolicyRef: %s, OrderingPolicyRef: %s}",
351-
pbc.Priority, pbc.MaxBytes, pbc.FairnessPolicyRef, pbc.OrderingPolicyRef)
336+
pbc.Priority, pbc.Limits.MaxBytes, pbc.FairnessPolicyRef, pbc.OrderingPolicyRef)
352337
}
353338

354339
// CapacityLimits defines capacity boundaries for a priority band.

0 commit comments

Comments
 (0)