mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
apiserver: add fields for borrowing in apf flowcontrol
This commit is contained in:
parent
2f22404003
commit
a7e84a4537
@ -416,6 +416,35 @@ type LimitedPriorityLevelConfiguration struct {
|
||||
|
||||
// `limitResponse` indicates what to do with requests that can not be executed right now
|
||||
LimitResponse LimitResponse
|
||||
|
||||
// `lendablePercent` prescribes the fraction of the level's NominalCL that
|
||||
// can be borrowed by other priority levels. The 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.
|
||||
//
|
||||
// LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
|
||||
//
|
||||
// +optional
|
||||
LendablePercent *int32
|
||||
|
||||
// `borrowingLimitPercent`, if present, configures a limit on how many
|
||||
// seats this priority level can borrow from other priority levels.
|
||||
// The limit is known as this level's BorrowingConcurrencyLimit
|
||||
// (BorrowingCL) and is a limit on the total number of seats that this
|
||||
// level may borrow at any one time.
|
||||
// This field holds the ratio of that limit to the level's nominal
|
||||
// concurrency limit. When this field is non-nil, it must hold a
|
||||
// non-negative integer and the limit is calculated as follows.
|
||||
//
|
||||
// BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
|
||||
//
|
||||
// The value of this field can be more than 100, implying that this
|
||||
// priority level can borrow a number of seats that is greater than
|
||||
// its own nominal concurrency limit (NominalCL).
|
||||
// When this field is left `nil`, the limit is effectively infinite.
|
||||
// +optional
|
||||
BorrowingLimitPercent *int32
|
||||
}
|
||||
|
||||
// LimitResponse defines how to handle requests that can not be executed right now.
|
||||
|
@ -438,6 +438,35 @@ type LimitedPriorityLevelConfiguration struct {
|
||||
|
||||
// `limitResponse` indicates what to do with requests that can not be executed right now
|
||||
LimitResponse LimitResponse `json:"limitResponse,omitempty" protobuf:"bytes,2,opt,name=limitResponse"`
|
||||
|
||||
// `lendablePercent` prescribes the fraction of the level's NominalCL that
|
||||
// can be borrowed by other priority levels. The 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.
|
||||
//
|
||||
// LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
|
||||
//
|
||||
// +optional
|
||||
LendablePercent *int32 `json:"lendablePercent,omitempty" protobuf:"varint,3,opt,name=lendablePercent"`
|
||||
|
||||
// `borrowingLimitPercent`, if present, configures a limit on how many
|
||||
// seats this priority level can borrow from other priority levels.
|
||||
// The limit is known as this level's BorrowingConcurrencyLimit
|
||||
// (BorrowingCL) and is a limit on the total number of seats that this
|
||||
// level may borrow at any one time.
|
||||
// This field holds the ratio of that limit to the level's nominal
|
||||
// concurrency limit. When this field is non-nil, it must hold a
|
||||
// non-negative integer and the limit is calculated as follows.
|
||||
//
|
||||
// BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
|
||||
//
|
||||
// The value of this field can be more than 100, implying that this
|
||||
// priority level can borrow a number of seats that is greater than
|
||||
// its own nominal concurrency limit (NominalCL).
|
||||
// When this field is left `nil`, the limit is effectively infinite.
|
||||
// +optional
|
||||
BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty" protobuf:"varint,4,opt,name=borrowingLimitPercent"`
|
||||
}
|
||||
|
||||
// LimitResponse defines how to handle requests that can not be executed right now.
|
||||
|
@ -474,6 +474,35 @@ type LimitedPriorityLevelConfiguration struct {
|
||||
|
||||
// `limitResponse` indicates what to do with requests that can not be executed right now
|
||||
LimitResponse LimitResponse `json:"limitResponse,omitempty" protobuf:"bytes,2,opt,name=limitResponse"`
|
||||
|
||||
// `lendablePercent` prescribes the fraction of the level's NominalCL that
|
||||
// can be borrowed by other priority levels. The 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.
|
||||
//
|
||||
// LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
|
||||
//
|
||||
// +optional
|
||||
LendablePercent *int32 `json:"lendablePercent,omitempty" protobuf:"varint,3,opt,name=lendablePercent"`
|
||||
|
||||
// `borrowingLimitPercent`, if present, configures a limit on how many
|
||||
// seats this priority level can borrow from other priority levels.
|
||||
// The limit is known as this level's BorrowingConcurrencyLimit
|
||||
// (BorrowingCL) and is a limit on the total number of seats that this
|
||||
// level may borrow at any one time.
|
||||
// This field holds the ratio of that limit to the level's nominal
|
||||
// concurrency limit. When this field is non-nil, it must hold a
|
||||
// non-negative integer and the limit is calculated as follows.
|
||||
//
|
||||
// BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
|
||||
//
|
||||
// The value of this field can be more than 100, implying that this
|
||||
// priority level can borrow a number of seats that is greater than
|
||||
// its own nominal concurrency limit (NominalCL).
|
||||
// When this field is left `nil`, the limit is effectively infinite.
|
||||
// +optional
|
||||
BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty" protobuf:"varint,4,opt,name=borrowingLimitPercent"`
|
||||
}
|
||||
|
||||
// LimitResponse defines how to handle requests that can not be executed right now.
|
||||
|
@ -474,6 +474,35 @@ type LimitedPriorityLevelConfiguration struct {
|
||||
|
||||
// `limitResponse` indicates what to do with requests that can not be executed right now
|
||||
LimitResponse LimitResponse `json:"limitResponse,omitempty" protobuf:"bytes,2,opt,name=limitResponse"`
|
||||
|
||||
// `lendablePercent` prescribes the fraction of the level's NominalCL that
|
||||
// can be borrowed by other priority levels. The 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.
|
||||
//
|
||||
// LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
|
||||
//
|
||||
// +optional
|
||||
LendablePercent *int32 `json:"lendablePercent,omitempty" protobuf:"varint,3,opt,name=lendablePercent"`
|
||||
|
||||
// `borrowingLimitPercent`, if present, configures a limit on how many
|
||||
// seats this priority level can borrow from other priority levels.
|
||||
// The limit is known as this level's BorrowingConcurrencyLimit
|
||||
// (BorrowingCL) and is a limit on the total number of seats that this
|
||||
// level may borrow at any one time.
|
||||
// This field holds the ratio of that limit to the level's nominal
|
||||
// concurrency limit. When this field is non-nil, it must hold a
|
||||
// non-negative integer and the limit is calculated as follows.
|
||||
//
|
||||
// BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
|
||||
//
|
||||
// The value of this field can be more than 100, implying that this
|
||||
// priority level can borrow a number of seats that is greater than
|
||||
// its own nominal concurrency limit (NominalCL).
|
||||
// When this field is left `nil`, the limit is effectively infinite.
|
||||
// +optional
|
||||
BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty" protobuf:"varint,4,opt,name=borrowingLimitPercent"`
|
||||
}
|
||||
|
||||
// LimitResponse defines how to handle requests that can not be executed right now.
|
||||
|
@ -472,6 +472,35 @@ type LimitedPriorityLevelConfiguration struct {
|
||||
|
||||
// `limitResponse` indicates what to do with requests that can not be executed right now
|
||||
LimitResponse LimitResponse `json:"limitResponse,omitempty" protobuf:"bytes,2,opt,name=limitResponse"`
|
||||
|
||||
// `lendablePercent` prescribes the fraction of the level's NominalCL that
|
||||
// can be borrowed by other priority levels. The 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.
|
||||
//
|
||||
// LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
|
||||
//
|
||||
// +optional
|
||||
LendablePercent *int32 `json:"lendablePercent,omitempty" protobuf:"varint,3,opt,name=lendablePercent"`
|
||||
|
||||
// `borrowingLimitPercent`, if present, configures a limit on how many
|
||||
// seats this priority level can borrow from other priority levels.
|
||||
// The limit is known as this level's BorrowingConcurrencyLimit
|
||||
// (BorrowingCL) and is a limit on the total number of seats that this
|
||||
// level may borrow at any one time.
|
||||
// This field holds the ratio of that limit to the level's nominal
|
||||
// concurrency limit. When this field is non-nil, it must hold a
|
||||
// non-negative integer and the limit is calculated as follows.
|
||||
//
|
||||
// BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
|
||||
//
|
||||
// The value of this field can be more than 100, implying that this
|
||||
// priority level can borrow a number of seats that is greater than
|
||||
// its own nominal concurrency limit (NominalCL).
|
||||
// When this field is left `nil`, the limit is effectively infinite.
|
||||
// +optional
|
||||
BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty" protobuf:"varint,4,opt,name=borrowingLimitPercent"`
|
||||
}
|
||||
|
||||
// LimitResponse defines how to handle requests that can not be executed right now.
|
||||
|
Loading…
Reference in New Issue
Block a user