kubernetes_asyncio.client.models.v1_exempt_priority_level_configuration module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech

class kubernetes_asyncio.client.models.v1_exempt_priority_level_configuration.V1ExemptPriorityLevelConfiguration(lendable_percent=None, nominal_concurrency_shares=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'lendable_percent': 'lendablePercent', 'nominal_concurrency_shares': 'nominalConcurrencyShares'}
property lendable_percent

Gets the lendable_percent of this V1ExemptPriorityLevelConfiguration. # noqa: E501

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. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) # noqa: E501

Returns:

The lendable_percent of this V1ExemptPriorityLevelConfiguration. # noqa: E501

Return type:

int

property nominal_concurrency_shares

Gets the nominal_concurrency_shares of this V1ExemptPriorityLevelConfiguration. # noqa: E501

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: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero. # noqa: E501

Returns:

The nominal_concurrency_shares of this V1ExemptPriorityLevelConfiguration. # noqa: E501

Return type:

int

openapi_types = {'lendable_percent': 'int', 'nominal_concurrency_shares': 'int'}
to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model