ClusterInfo and IpInfo

Represent the cluster information used for link establishment and disconnection.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
struct ClusterInfo {
  uint64_t remote_cluster_id = 0U;     // Cluster ID of the peer LLM-DataDist.
  int32_t remote_role_type = 0;        // role_type of the peer LLM-DataDist. 0 indicates the full role, and 1 indicates the incremental role.
  std::vector<IpInfo> local_ip_infos;  // IP address of the local LLM-DataDist. For details, see the following IpInfo structure.
  std::vector<IpInfo> remote_ip_infos; // IP address of the peer LLM-DataDist. For details, see the following IpInfo structure.
  uint8_t reserved[128];               // Reserved.
}

struct IpInfo {
  AscendString ip;         // IP address.
  uint16_t port = 0U;      // Port number.
  uint8_t reserved[128];   // Reserved.
}