Interface ResourceSharingConfig.Builder

  • Method Details

    • strategy

      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.

      Parameters:
      strategy - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • strategy

      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.

      Parameters:
      strategy - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • borrowLimit

      ResourceSharingConfig.Builder borrowLimit(Integer 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • absoluteBorrowLimits

      ResourceSharingConfig.Builder absoluteBorrowLimits(Collection<ComputeQuotaResourceConfig> absoluteBorrowLimits)

      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.

      Parameters:
      absoluteBorrowLimits - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • absoluteBorrowLimits

      ResourceSharingConfig.Builder absoluteBorrowLimits(ComputeQuotaResourceConfig... absoluteBorrowLimits)

      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.

      Parameters:
      absoluteBorrowLimits - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • absoluteBorrowLimits

      ResourceSharingConfig.Builder absoluteBorrowLimits(Consumer<ComputeQuotaResourceConfig.Builder>... absoluteBorrowLimits)

      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.

      This is a convenience method that creates an instance of the ComputeQuotaResourceConfig.Builder avoiding the need to create one manually via ComputeQuotaResourceConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to absoluteBorrowLimits(List<ComputeQuotaResourceConfig>).

      Parameters:
      absoluteBorrowLimits - a consumer that will call methods on ComputeQuotaResourceConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: