Computing Quotas
- class qarnot.computing_quotas.UserSchedulingQuota(max_cores: int, running_cores_count: int, max_instances: int, running_instances_count: int)[source]
Bases:
objectDescribes a scheduling quota for the user.
- __init__(max_cores: int, running_cores_count: int, max_instances: int, running_instances_count: int)[source]
Create a new UserSchedulingQuota object describing a scheduling quota for the user.
- Parameters:
max_cores (int) – Maximum number of cores that can be simultaneously used with this scheduling plan.
running_cores_count (int) – Number of cores that are currently running with this scheduling plan.
max_instances (int) – Maximum number of instances that can be simultaneously used with this scheduling plan.
running_instances_count (int) – Number of instances that are currently running with this scheduling plan.
- Returns:
The created
UserSchedulingQuota.
- max_cores
- Type:
Maximum number of cores that can be simultaneously used with this scheduling plan.
- running_cores_count
- Type:
Number of cores that are currently running with this scheduling plan.
- max_instances
- Type:
Maximum number of instances that can be simultaneously used with this scheduling plan.
- running_instances_count
- Type:
Number of instances that are currently running with this scheduling plan.
- class qarnot.computing_quotas.UserReservedSchedulingQuota(reservation_name: str, machine_key: str, max_cores: int, running_cores_count: int, max_instances: int, running_instances_count: int)[source]
Bases:
UserSchedulingQuotaDescribes a reserved scheduling quota for the user.
- __init__(reservation_name: str, machine_key: str, max_cores: int, running_cores_count: int, max_instances: int, running_instances_count: int)[source]
Create a new UserReservedSchedulingQuota object describing a reserved scheduling quota for the user.
- Parameters:
machine_key (str) – Machine key of the reservation.
max_cores (int) – Maximum number of cores that can be simultaneously used with this reserved machine specification.
running_cores_count (int) – Number of cores that are currently running with this reserved machine specification.
max_instances (int) – Maximum number of instances that can be simultaneously used with this reserved machine specification.
running_instances_count (int) – Number of instances that are currently running with this reserved machine specification.
- Returns:
The created
UserReservedSchedulingQuota.
- class qarnot.computing_quotas.UserComputingQuotas(flex: UserSchedulingQuota, on_demand: UserSchedulingQuota, reserved: List[UserReservedSchedulingQuota])[source]
Bases:
objectDescribes the user’s computing quotas.
- __init__(flex: UserSchedulingQuota, on_demand: UserSchedulingQuota, reserved: List[UserReservedSchedulingQuota])[source]
Create a new UserComputingQuotas object describing the user’s computing quotas.
- Parameters:
flex (UserSchedulingQuota) – Quotas for Flex scheduling plan.
on_demand (UserSchedulingQuota) – Quotas for OnDemand scheduling plan.
reserved (List of UserReservedSchedulingQuota) – Quotas for Reserved scheduling plan.
- Returns:
The created
UserComputingQuotas.
- flex
- Type:
Quotas for Flex scheduling plan.
- on_demand
- Type:
Quotas for OnDemand scheduling plan.
- reserved
- Type:
Quotas for Reserved scheduling plan.
- class qarnot.computing_quotas.OrganizationSchedulingQuota(max_cores: int, running_cores_count: int, max_instances: int, running_instances_count: int)[source]
Bases:
objectDescribes a scheduling quota for the organization.
- __init__(max_cores: int, running_cores_count: int, max_instances: int, running_instances_count: int)[source]
Create a new OrganizationSchedulingQuota object describing a scheduling quota for the organization.
- Parameters:
max_cores (int) – Maximum number of cores that can be simultaneously used with this scheduling plan.
running_cores_count (int) – Number of cores that are currently running with this scheduling plan.
max_instances (int) – Maximum number of instances that can be simultaneously used with this scheduling plan.
running_instances_count (int) – Number of instances that are currently running with this scheduling plan.
- Returns:
The created
OrganizationSchedulingQuota.
- max_cores
- Type:
Maximum number of cores that can be simultaneously used with this scheduling plan.
- running_cores_count
- Type:
Number of cores that are currently running with this scheduling plan.
- max_instances
- Type:
Maximum number of instances that can be simultaneously used with this scheduling plan.
- running_instances_count
- Type:
Number of instances that are currently running with this scheduling plan.
- class qarnot.computing_quotas.OrganizationReservedSchedulingQuota(reservation_name: str, machine_key: str, max_cores: int, running_cores_count: int, max_instances: int, running_instances_count: int)[source]
Bases:
OrganizationSchedulingQuotaDescribes a reserved scheduling quota for the organization.
- __init__(reservation_name: str, machine_key: str, max_cores: int, running_cores_count: int, max_instances: int, running_instances_count: int)[source]
Create a new OrganizationReservedSchedulingQuota object describing a reserved scheduling quota for the organization.
- Parameters:
machine_key (str) – Machine key of the reservation.
max_cores (int) – Maximum number of cores that can be simultaneously used with this reserved machine specification.
running_cores_count (int) – Number of cores that are currently running with this reserved machine specification.
max_instances (int) – Maximum number of instances that can be simultaneously used with this reserved machine specification.
running_instances_count (int) – Number of instances that are currently running with this reserved machine specification.
- Returns:
The created
OrganizationReservedSchedulingQuota.
- classmethod from_json(json: Dict[str, Any])[source]
Create a new OrganizationReservedSchedulingQuota object from json describing a reserved scheduling quota for a organization.
- Parameters:
json (dict) – Dictionary representing the organization reserved scheduling quota
- Returns:
The created
OrganizationReservedSchedulingQuota.
- class qarnot.computing_quotas.OrganizationComputingQuotas(name: str, flex: OrganizationSchedulingQuota, on_demand: OrganizationSchedulingQuota, reserved: List[OrganizationReservedSchedulingQuota])[source]
Bases:
objectDescribes the organization’s computing quotas.
- __init__(name: str, flex: OrganizationSchedulingQuota, on_demand: OrganizationSchedulingQuota, reserved: List[OrganizationReservedSchedulingQuota])[source]
Create a new OrganizationComputingQuotas object describing the organization’s computing quotas.
- Parameters:
name (str) – Name of the organization.
flex (OrganizationSchedulingQuota) – Quotas for Flex scheduling plan.
on_demand (OrganizationSchedulingQuota) – Quotas for OnDemand scheduling plan.
reserved (List of OrganizationReservedSchedulingQuota) – Quotas for Reserved scheduling plan.
- Returns:
The created
OrganizationComputingQuotas.
- flex
-
Quotas for Flex scheduling plan.
- on_demand
-
Quotas for OnDemand scheduling plan.
- reserved
- Type:
Quotas for Reserved scheduling plan.
- class qarnot.computing_quotas.ComputingQuotas(user_computing_quotas: UserComputingQuotas | None, organization_computing_quotas: OrganizationComputingQuotas | None = None)[source]
Bases:
objectDescribes user and organization computing quotas.
- __init__(user_computing_quotas: UserComputingQuotas | None, organization_computing_quotas: OrganizationComputingQuotas | None = None)[source]
Create a new ComputingQuotas object describing user and organization computing quotas.
- Parameters:
user_computing_quotas (~qarnot.computing_quotas.UserComputingQuotas, optional) – the user related computing quotas
organization_computing_quotas (~qarnot.computing_quotas.OrganizationComputingQuotas, optional) – the organization related computing quotas
- Returns:
The created
ComputingQuotas.
- user
- Type:
The user related computing quotas.
- organization
-
The organization related computing quotas.