Performance Degradation
External call to modify the capability of various dynamic data tracing.
If lightweight profiling is enabled or modified through the gRPC interface provided by ClusterD to obtain data written to disk, the lifecycle of the created data-trace-<Job Name> ConfigMap will be deleted along with the job. When the job does not exist, this interface call will fail.
rpc ModifyTrainingDataTraceSwitch(DataTypeReq) returns (DataTypeRes) {}
| Parameter | Type (Protobuf Definition) | Description |
|---|---|---|
| DataTypeReq | message DataTypeReq{ string jobNsName = 1; ProfilingSwitch profilingSwitch = 2; }message ProfilingSwitch{ string CommunicationOperator = 1; string Step = 2; string SaveCheckpoint = 3; string FP =4; string DataLoader =5; } | jobNsName: The namespace and name of the job to be modified, concatenated with '/', for example: profilingSwitch: Details of various switches.
|
| Parameter | Type (Protobuf Definition) | Description |
|---|---|---|
| DataTypeRes | message DataTypeRes{ string message = 1; int32 code = 2; } | message: Interface call result. code: Interface call return code.
|
External call to obtain the status of various dynamic data tracing.
rpc GetTrainingDataTraceSwitch(DataStatusReq) returns (DataStatusRes) {}
| Parameter | Type (Protobuf Definition) | Description |
|---|---|---|
| DataStatusReq | message DataStatusReq{ string jobNsName = 1; } | jobNsName: The namespace and name of the job to be modified, concatenated with '/', e.g., default/test-pytorch. |
| Parameter | Type (Protobuf Definition) | Description |
|---|---|---|
| DataStatusRes | message DataStatusRes{ string message = 1; ProfilingSwitch profilingSwitch = 2; int32 code = 3; } | message: Result information of the interface call. profilingSwitch: Details of various switches.
|
Externally subscribe to the status of various dynamic data tracing switches.
rpc SubscribeDataTraceSwitch(ProfilingClientInfo) returns (stream DataStatusRes) {}
| Parameter | Type (Protobuf Definition) | Description |
|---|---|---|
| ProfilingClientInfo | message ProfilingClientInfo{ string jobId = 1; string role = 2; } | jobId: Job ID. role: Client role. |
| Parameter | Type (Protobuf Definition) | Description |
|---|---|---|
| DataStatusRes | message DataStatusRes{ string message = 1; ProfilingSwitch profilingSwitch = 2; int32 code = 3; } | message: Information about the interface call result. profilingSwitch: Details of various switches.
|