Update generated code for APF borrowing by exempt

Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
This commit is contained in:
Mike Spreitzer
2023-07-14 01:00:06 +00:00
parent a9d8cace1f
commit f78d6062eb
51 changed files with 2499 additions and 493 deletions

View File

@@ -1,6 +1,22 @@
{
"components": {
"schemas": {
"io.k8s.api.flowcontrol.v1beta2.ExemptPriorityLevelConfiguration": {
"description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.",
"properties": {
"lendablePercent": {
"description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )",
"format": "int32",
"type": "integer"
},
"nominalConcurrencyShares": {
"description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"io.k8s.api.flowcontrol.v1beta2.FlowDistinguisherMethod": {
"description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.",
"properties": {
@@ -498,6 +514,14 @@
"io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationSpec": {
"description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.",
"properties": {
"exempt": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.api.flowcontrol.v1beta2.ExemptPriorityLevelConfiguration"
}
],
"description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply."
},
"limited": {
"allOf": [
{
@@ -520,6 +544,7 @@
{
"discriminator": "type",
"fields-to-discriminateBy": {
"exempt": "Exempt",
"limited": "Limited"
}
}

View File

@@ -1,6 +1,22 @@
{
"components": {
"schemas": {
"io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration": {
"description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.",
"properties": {
"lendablePercent": {
"description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )",
"format": "int32",
"type": "integer"
},
"nominalConcurrencyShares": {
"description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod": {
"description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.",
"properties": {
@@ -276,7 +292,7 @@
},
"nominalConcurrencyShares": {
"default": 0,
"description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[limited priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other Limited priority level. This field has a default value of 30.",
"description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.",
"format": "int32",
"type": "integer"
}
@@ -500,6 +516,14 @@
"io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec": {
"description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.",
"properties": {
"exempt": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration"
}
],
"description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply."
},
"limited": {
"allOf": [
{
@@ -522,6 +546,7 @@
{
"discriminator": "type",
"fields-to-discriminateBy": {
"exempt": "Exempt",
"limited": "Limited"
}
}