mirror of
https://github.com/wassname/ray.git
synced 2026-08-02 13:01:01 +08:00
[Dashboard] CPU/GPU usage details in actor pane (#11269)
This commit is contained in:
@@ -39,10 +39,8 @@ export type RayConfigResponse = {
|
||||
|
||||
export const getRayConfig = () => get<RayConfigResponse>("/api/ray_config", {});
|
||||
|
||||
export type Worker = {
|
||||
type ProcessStats = {
|
||||
pid: number;
|
||||
workerId: string;
|
||||
createTime: number;
|
||||
memoryInfo: {
|
||||
rss: number;
|
||||
vms: number;
|
||||
@@ -52,6 +50,7 @@ export type Worker = {
|
||||
data: number;
|
||||
dirty: Number;
|
||||
};
|
||||
createTime: number;
|
||||
cmdline: string[];
|
||||
cpuTimes: {
|
||||
user: number;
|
||||
@@ -61,12 +60,17 @@ export type Worker = {
|
||||
iowait: number;
|
||||
};
|
||||
cpuPercent: number;
|
||||
}
|
||||
|
||||
export type Worker = {
|
||||
pid: number;
|
||||
workerId: string;
|
||||
logCount: number;
|
||||
errorCount: number;
|
||||
language: string;
|
||||
jobId: string;
|
||||
coreWorkerStats: CoreWorkerStats[];
|
||||
};
|
||||
} & ProcessStats;
|
||||
|
||||
export type CoreWorkerStats = {
|
||||
ipAddress: string;
|
||||
@@ -220,12 +224,14 @@ export type FullActorInfo = {
|
||||
| ActorState.DependenciesUnready
|
||||
| ActorState.PendingCreation;
|
||||
taskQueueLength?: number;
|
||||
gpus: GPUStats[]; // Contains info about any GPUs the actor is using
|
||||
timestamp: number;
|
||||
usedObjectStoreMemory?: number;
|
||||
usedResources: { [key: string]: ResourceAllocations };
|
||||
currentTaskDesc?: string;
|
||||
numPendingTasks?: number;
|
||||
webuiDisplay?: Record<string, string>;
|
||||
processStats?: ProcessStats;
|
||||
};
|
||||
|
||||
export type ActorTaskInfo = {
|
||||
|
||||
Reference in New Issue
Block a user