-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
174 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,37 @@ | ||
# Cluster Checker | ||
|
||
The tool in this directory diagnoses the state of a cluster looking for common | ||
issues and producing a gpu allocation summary per namespace and for the entire | ||
cluster. | ||
The tool in this directory produces a summary view on GPU quotas and utilization | ||
on the cluster. It also diagnoses the state of a cluster looking for common | ||
issues. | ||
|
||
The tool is implemented in JavaScript and intended to run with Node.js. | ||
|
||
Install [Node.js](https://nodejs.org/) with the npm package manager. | ||
|
||
Install dependencies with: | ||
```sh | ||
npm install | ||
``` | ||
|
||
Run with: | ||
Run the tool against the current Kubernetes context with: | ||
```sh | ||
node checker.js | ||
``` | ||
``` | ||
CLUSTER QUEUE GPU QUOTA GPU USAGE ADMITTED WORKLOADS PENDING WORKLOADS | ||
team1-cluster-queue 8 16 1 0 | ||
team2-cluster-queue 8 4 4 0 | ||
Total GPU count in cluster: 24 | ||
Unschedulable GPU count: - 0 | ||
Schedulable GPU count: = 24 | ||
Nominal GPU quota: 16 | ||
Slack GPU quota: + 8 | ||
Total GPU quota: = 24 | ||
GPU usage by admitted workloads: 20 | ||
Borrowed GPU count: 8 | ||
WARNING: workload "default/pytorchjob-job-e6381" refers to a non-existent local queue "test-queue" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters