1/** 2 * Copyright 2022 Huawei Technologies Co., Ltd 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17syntax = "proto3"; 18package mindspore.distributed.cluster.topology; 19 20message RegistrationMessage { 21 string node_id = 1; 22 string host_name = 2; 23 string role = 3; 24 string host_ip = 4; 25} 26 27message RegistrationRespMessage { 28 bool success = 1; 29 uint32 rank_id = 2; 30 uint32 node_num = 3; 31 string error_reason = 4; 32} 33 34message UnregistrationMessage { 35 string node_id = 1; 36} 37 38message HeartbeatMessage { 39 string node_id = 1; 40} 41 42message HeartbeatRespMessage { 43 bool success = 1; 44 uint32 topo_state = 2; 45 uint32 nodes_num = 3; 46 uint32 abnormal_nodes_num = 4; 47} 48 49message MetadataMessage { 50 string name = 1; 51 bytes value = 2; 52} 53 54message ActorAddress { 55 string actor_id = 1; 56 string ip = 2; 57 uint32 port = 3; 58 uint32 func_id = 4; 59} 60 61message PortRange { 62 uint32 min_port = 1; 63 uint32 max_port = 2; 64} 65 66message NodePortRanges { 67 map<string, PortRange> data = 1; 68} 69