[][src]Struct k8s_openapi::api::flowcontrol::v1alpha1::LimitedPriorityLevelConfiguration

pub struct LimitedPriorityLevelConfiguration {
    pub assured_concurrency_shares: Option<i32>,
    pub limit_response: Option<LimitResponse>,
}

LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:

  • How are requests for this priority level limited?
  • What should be done with requests that exceed the limit?

Fields

assured_concurrency_shares: Option<i32>

assuredConcurrencyShares (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level:

ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )

bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30.

limit_response: Option<LimitResponse>

limitResponse indicates what to do with requests that can not be executed right now

Trait Implementations

impl Clone for LimitedPriorityLevelConfiguration[src]

impl Debug for LimitedPriorityLevelConfiguration[src]

impl Default for LimitedPriorityLevelConfiguration[src]

impl<'de> Deserialize<'de> for LimitedPriorityLevelConfiguration[src]

impl PartialEq<LimitedPriorityLevelConfiguration> for LimitedPriorityLevelConfiguration[src]

impl Serialize for LimitedPriorityLevelConfiguration[src]

impl StructuralPartialEq for LimitedPriorityLevelConfiguration[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.