Skip to main content
  • Request for a component reserve a resource on a gpudb node. Currently only memory is supported.

    Parameters

    • component: string

      Component requesting a resource reservation e.g. graph0. This may be a new reservation or change from a previous reservation.

    • name: string

      Identifier for the resource.

    • action: string

      Modification operation to be applied.

    • Optionalbytes_requested: number

      Absolute number of bytes requested for the reservation. Not used for evicted/deleted statuses.

    • Optionalowner_id: number

      Owner identifier. Only needed for new resources or change owner.

    • Optionaloptions: Record<string, string>

      Optional parameters.

    • Optionalcallback: GPUdbCallback

      Optional callback function

    Returns Promise<ReserveResourceResponse>

    Promise<Types.ReserveResourceResponse> - Promise resolving to the response