Field | Description |
NAME | FlowSchema name. |
PRIORITYLEVEL | PriorityLevelConfiguration that is mapped to the current FlowSchema. |
MATCHINGPRECEDENCE | Matching precedence. The lower the value, the higher the matching precedence. |
DISTINGUISHERMETHOD | The method of splitting requests into queues. Available options include:
|
AGE | The duration for which the FlowSchema has existed. |
MISSINGPL | Whether the associated PriorityLevelConfiguration is missing. Valid values:
|
Field | Description |
NAME | PriorityLevelConfiguration name. |
TYPE | Resource type. Valid values:
|
NOMINALCONCURRENCYSHARES | The concurrency share. It determines how many concurrency seats a queue at the corresponding priority level can be allocated. This value is a relative weight, not an absolute value. It indicates the relative weight of this PriorityLevelConfiguration among all Limited PriorityLevelConfigurations. Generally, a larger value means more concurrency seats can be allocated to this PriorityLevelConfiguration. However, it is not equivalent to a fixed absolute concurrency limit. |
QUEUES | Queue count. Requests can be distributed across sub-queues via ByUser and ByNamespace. |
HANDSIZE | Shuffling hand size. When a request arrives, N sub-queues are randomly selected, and the request is routed to the shortest sub-queue. The larger this value is, the more precise the load balancing effect will be. |
QUEUELENGTHLIMIT | Maximum queuing length limit per sub-queue. Requests will be rejected directly with a 429 Too Many Requests response if the queue length exceeds this threshold. |
AGE | The duration for which the PriorityLevelConfiguration has existed. |
Field | Description |
Basic field | |
name | PriorityLevelConfiguration name. A FlowSchema references the PriorityLevelConfiguration by its name. |
apf.kubernetes.io/autoupdate-spec | The APF auto-update toggle switch. When you set it to false, the system will skip auto-update for this resource. This prevents the system from automatically reverting the configuration to the default settings. |
spec fields | |
type | Resource type. Valid values:
|
limited.nominalConcurrencyShares | The concurrency share. It determines how many concurrency seats a queue at the corresponding priority level can be allocated. This value is a relative weight, not an absolute value. It indicates the relative weight of this PriorityLevelConfiguration among all Limited PriorityLevelConfigurations. Generally, a larger value means more concurrency seats can be allocated to this PriorityLevelConfiguration. However, it is not equivalent to a fixed absolute concurrency limit. tip
|
limited.lendablePercent | Proportion of lendable concurrency seats. It indicates the percentage of this PriorityLevelConfiguration's concurrency seats that may be borrowed by other PriorityLevelConfigurations when this one is idle. This field enables APF's elastic borrowing mechanism, which avoids wasting idle resources in PriorityLevelConfigurations.
|
limitResponse.type | Processing policy for requests that exceed the concurrency limit. Valid values:
|
queuing.queues | The number of sub-queues. In this example, the value is set to 128. Requests are distributed across sub-queues based on the distinguisherMethod in the FlowSchema, preventing requests from a user or namespace from blocking the entire queue. |
queuing.handSize | Shuffling hand size. In this example, the value is set to 6. This means the system randomly selects 6 from all sub-queues (128 in this example) and puts a request into the shortest sub-queue. |
queuing.queueLengthLimit | The maximum length for a single sub-queue. In this example, the value is set to 50. It means that when there are already 50 queued requests in a sub-queue, new incoming requests targeting this sub-queue will be directly rejected with a 429 Too Many Requests response and will not be added to the sub-queue. |
Field | Description |
Basic field | |
name | FlowSchema name. It is used for FlowSchema identification and management. |
spec fields | |
matchingPrecedence | Matching precedence. The lower the value, the higher the matching precedence. |
distinguisherMethod.type | The method of splitting requests into queues. Valid values:
|
priorityLevelConfiguration.name | The associated PriorityLevelConfiguration. In this example, requests matching this FlowSchema will be assigned to the workload-high PriorityLevelConfiguration. |
rule matching fields | |
subjects | Request initiators. In this example, the values of the fields are described as follows:
|
resourceRules | The operation scope of request matching. In this example, the following values are specified:
|