Skip to content

ResourceSharingConfig

Source code in docs_src/capo_sagemaker/types/resource_sharing_config.py
class ResourceSharingConfig(TypedDict, closed=True):
    strategy: NotRequired[
        "capo_sagemaker.types.resource_sharing_strategy.ResourceSharingStrategy"
    ]
    """<p>The strategy of how idle compute is shared within the cluster. The following are the options of strategies.</p> <ul> <li> <p> <code>DontLend</code>: entities do not lend idle compute.</p> </li> <li> <p> <code>Lend</code>: entities can lend idle compute to entities that can borrow.</p> </li> <li> <p> <code>LendandBorrow</code>: entities can lend idle compute and borrow idle compute from other entities.</p> </li> </ul> <p>Default is <code>LendandBorrow</code>.</p>"""
    borrow_limit: NotRequired["capo_sagemaker.types.borrow_limit.BorrowLimit"]
    """<p>The limit on how much idle compute can be borrowed.The values can be 1 - 500 percent of idle compute that the team is allowed to borrow.</p> <p>Default is <code>50</code>.</p>"""
    absolute_borrow_limits: NotRequired[
        "capo_sagemaker.types.absolute_borrow_limit_resource_list.AbsoluteBorrowLimitResourceList"
    ]
    """<p>The absolute limits on compute resources that can be borrowed from idle compute. When specified, these limits define the maximum amount of specific resource types (such as accelerators, vCPU, or memory) that an entity can borrow, regardless of the percentage-based <code>BorrowLimit</code>.</p>"""

absolute_borrow_limits instance-attribute

absolute_borrow_limits: NotRequired[AbsoluteBorrowLimitResourceList]

The absolute limits on compute resources that can be borrowed from idle compute. When specified, these limits define the maximum amount of specific resource types (such as accelerators, vCPU, or memory) that an entity can borrow, regardless of the percentage-based BorrowLimit.

borrow_limit instance-attribute

borrow_limit: NotRequired[BorrowLimit]

The limit on how much idle compute can be borrowed.The values can be 1 - 500 percent of idle compute that the team is allowed to borrow.

Default is 50.

strategy instance-attribute

strategy: NotRequired[ResourceSharingStrategy]

The strategy of how idle compute is shared within the cluster. The following are the options of strategies.

  • DontLend: entities do not lend idle compute.

  • Lend: entities can lend idle compute to entities that can borrow.

  • LendandBorrow: entities can lend idle compute and borrow idle compute from other entities.

Default is LendandBorrow.