SubscribeDataTraceSwitch

Description

Subscribes to the status of dynamic dotting switch for various data.

Prototype

rpc SubscribeDataTraceSwitch (ProfilingClientInfo) returns (stream DataStatusRes)

Input Parameters

Parameter

Type (Defined by Protobuf)

Description

ProfilingClientInfo

message ProfilingClientInfo{

string jobId = 1;

string role = 2;

}

jobId: job ID

role: client role

Return Value

Parameter

Type (Defined by Protobuf)

Description

DataStatusRes

message DataStatusRes{

string message = 1;

ProfilingSwitch profilingSwitch = 2;

int32 code = 3;

}

message: API calling result

profilingSwitch: details of each switch

  • CommunicationOperator: communication operator
  • Step: step latency
  • SaveCheckpoint: time taken by saveCheckpoint
  • FP: forward propagation data
  • DataLoader: time taken by DataLoader

code: API calling return code

  • 1 (300): invalid input parameter
  • 2 (404): ConfigMap not queried
  • 3 (500): server error
  • 4 (200): normal response