Skip to content

Commit cd21d97

Browse files
authored
Merge pull request #926 from run-ai/api-overview
api-overview
2 parents 35d93ee + 621056b commit cd21d97

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

docs/developer/metrics/metrics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Metrics
2+
title: Metrics API
33
summary: This article shows the available metrics supported by Run:ai.
44
authors:
55
- Jason Novich

docs/developer/overview-developer.md

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,51 @@ date: 2024-Apr-10
88

99
Developers can access Run:ai through various programmatic interfaces.
1010

11-
## API Support
12-
13-
The endpoints and fields specified in the [API reference](https://app.run.ai/api/docs) are the ones that are officially supported by Run:ai. Endpoints and fields that are not listed in the API reference are not supported.
14-
15-
Run:ai does not recommend using API endpoints and fields marked as `deprecated` and will not add functionality to them. Once an API endpoint or field is marked as `deprecated`, Run:ai will stop supporting it after 2 major releases for self-hosted deployments, and after 6 months for SaaS deployments.
16-
17-
For details, see the [Deprecation notifications](../home/whats-new-2-17.md#deprecation-notifications).
1811

1912
## API Architecture
2013

2114
Run:ai is composed of a single, multi-tenant control plane. Each tenant can be connected to one or more GPU clusters. See [Run:ai system components](../home/components.md) for detailed information.
2215

23-
Below is a diagram of the Run:ai API Architecture. A developer may:
16+
The following programming interfaces are available:
17+
18+
| API | Description | Purpose |
19+
|---------|--------------|--------------|
20+
| __Control Plane API__ | Access the control plane for getting and modifying business objects | This is the API mostly used by system developers. The API is also used by the Run:ai user interface as well as the __new__ command-line interface |
21+
| __Cluster API__ | Submit Workloads directly to the Cluster | A YAML-based API allowing submittion of Workloads directly to the Cluster. With Run:ai 2.18, this API is replaced by a Control-plane API to submit jobs, which is now the recommended method |
22+
| __Metrics API__ (deprecated) | Get cluster metrics | Get utilization metrics directly from the monitoring agent (Prometheus). This API is in the process of being deprecated and is replaced with metric-specific control plane API |
2423

25-
1. Access the control plane via the _Control Plane API_.
26-
2. Access any one of the GPU clusters via _Cluster API_.
27-
3. Access cluster metrics via the _Metrics API_.
24+
2825

29-
![api architecture image](img/api-architecture.png)
26+
<!-- ![api architecture image](img/api-architecture.png) -->
3027

3128
## Control Plane API
3229

33-
Add, delete, modify and list Run:ai meta-data objects such as Projects, Departments, Users, and more.
30+
Allows you to Add, delete, modify and list Run:ai meta-data objects such as Projects, Departments, Users.
31+
For Clusters of Run:ai 2.18 and above, allows the submitting of Workloasd.
3432

3533
The API is provided as REST and is accessible via the control plane endpoint.
3634

3735
For more information see [Control Plane REST API](admin-rest-api/overview.md).
3836

37+
38+
!!! Important
39+
The endpoints and fields specified in the [API reference](https://app.run.ai/api/docs) are the ones that are officially supported by Run:ai. Endpoints and fields that are not listed in the API reference are not supported.
40+
41+
Run:ai does not recommend using API endpoints and fields marked as `deprecated` and will not add functionality to them. Once an API endpoint or field is marked as `deprecated`, Run:ai will stop supporting it after 2 major releases for self-hosted deployments, and after 6 months for SaaS deployments.
42+
43+
For details, see the [Deprecation notifications](../home/whats-new-2-17.md#deprecation-notifications).
44+
3945
## Cluster API
4046

41-
Submit and delete Workloads.
47+
The [Cluster API](cluster-api/workload-overview-dev.md) allows you to submit and delete Workloads directly to the cluster itself.
4248

4349
The API is provided as [Kubernetes API](./cluster-api/submit-yaml.md).
4450

4551
Cluster API is accessible via the GPU cluster itself. As such, **multiple clusters may have multiple endpoints**.
4652

47-
!!! Note
48-
The same functionality is also available via the [Run:ai Command-line interface](../Researcher/cli-reference/Introduction.md). The CLI provides an alternative for automating with shell scripts.
53+
!!! Important
54+
* This API is replaced by a Control-plane API to submit jobs, which is now the recommended method for cluster versions of 2.18 and above.
55+
* If you are looking to automate tasks with older versions of Run:ai, it's best to use the [Run:ai Command-line interface](../Researcher/cli-reference/Introduction.md) which provides forward compatibility.
4956

5057
## Metrics API
5158

mkdocs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,7 @@ nav:
395395
- 'Kubernetes Workloads' : 'developer/cluster-api/other-resources.md'
396396
- 'Data Volumes': 'developer/admin-rest-api/data-volumes.md'
397397
- 'Reference' : 'developer/cluster-api/reference.md'
398-
- 'Metrics API' :
399-
- 'Metrics' : 'developer/metrics/metrics.md'
398+
- 'Metrics API' : 'developer/metrics/metrics.md'
400399
# - 'Deprecated APIs' :
401400
# - 'Researcher API' :
402401
# - 'REST API' : 'developer/deprecated/researcher-rest-api/overview.md'

0 commit comments

Comments
 (0)