Node pools assist in managing heterogeneous resources effectively. A node pool is a set of nodes grouped into a bucket of resources using a predefined (for example, GPU-Type) or administrator-defined label (for example, key & value). For more information, see Node Pools.
Retrieve the node pool metrics data by Universally Unique Identifier (UUID).
Executed successfully.
Partial success.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "measurements": [
- {
- "type": "ALLOCATED_GPU",
- "labels": "{'gpu': '3'}",
- "values": [
- {
- "value": "85",
- "timestamp": "2023-06-06 12:09:18.211"
}
]
}
]
}
Retrieve all the node pools with details from the cluster by Universally Unique Identifier (UUID).
Node pools returned successfully.
Unauthorized
The specified resource was not found
unexpected error
[- {
- "name": "node-pool-a",
- "overProvisioningRatio": 1,
- "labelKey": "node-type",
- "labelValue": "type-x",
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "binpack"
}, - "id": 5,
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "createdAt": "2021-12-14T16:04:15.099Z",
- "updatedAt": "2021-12-14T16:04:15.099Z",
- "deletedAt": "2021-12-14T16:04:15.099Z",
- "status": "Creating",
- "statusMessage": "all nodes are down",
- "nodes": [
- "node-a",
- "node-b"
], - "createdBy": "user@run.ai",
- "updatedBy": "user@run.ai",
- "isDefault": false
}
]
Use to create a node pool in a cluster by Universally Unique Identifier (UUID).
Created
Bad request.
conflict error
unexpected error
{- "name": "node-pool-a",
- "overProvisioningRatio": 1,
- "labelKey": "node-type",
- "labelValue": "type-x",
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "binpack"
}
}
{- "code": 400,
- "message": "Bad request - Resource should have a name"
}
Use to update the labels of a node pool.
Node Pool update accepted.
Bad request.
Unauthorized
The specified resource was not found
unexpected error
{- "labelKey": "node-type",
- "labelValue": "type-x"
}
{- "code": 400,
- "message": "Bad request - Resource should have a name"
}
Use to delete a node pool by Universally Unique Identifier (UUID).
Node Pool deletion accepted
Bad request.
Unauthorized
The specified resource was not found
unexpected error
{- "code": 400,
- "message": "Bad request - Resource should have a name"
}
Use to update the details of a node pool by Universally Unique Identifier (UUID).
Node Pool update accepted.
Bad request.
Unauthorized
The specified resource was not found
unexpected error
{- "labelKey": "node-type",
- "labelValue": "type-x",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "binpack"
}
}
{- "code": 400,
- "message": "Bad request - Resource should have a name"
}