






技术领域technical field
本申请涉及网络通信技术,特别涉及一种管理控制方法和装置。The present application relates to network communication technologies, and in particular, to a management control method and device.
背景技术Background technique
超融合管理设备,融合了服务器、网络、存储、虚拟化平台等软硬件基础设施,对外呈现为一台由虚拟的计算资源、存储资源、网络带宽组成的大型服务器。超融合管理设备目前主要包括了网关管理和监控、服务器硬件管理和监控、交换机硬件管理和监控、网络管理和监控、存储管理和监控、虚拟机管理和监控、应用管理和监控等功能。超融合管理设备具体实现时为统一管理矩阵(UISM)等设备。Hyper-converged management equipment integrates software and hardware infrastructure such as servers, networks, storage, and virtualization platforms, and presents itself as a large server consisting of virtual computing resources, storage resources, and network bandwidth. The hyper-converged management equipment currently mainly includes gateway management and monitoring, server hardware management and monitoring, switch hardware management and monitoring, network management and monitoring, storage management and monitoring, virtual machine management and monitoring, application management and monitoring and other functions. The hyper-converged management device is specifically implemented as a unified management matrix (UISM) and other devices.
在目前网络应用中,超融合管理设备运行在网络下不同层级,以防三层网络不可达的情况下,可直接对其他网络设备进行管理和同步。In current network applications, hyper-converged management devices run at different levels under the network, so that other network devices can be directly managed and synchronized in case the three-layer network is unreachable.
但是,同一网络中,不同超融合管理设备的权限完全相同,相互之间的操作存在排斥,并且也会导致管理资源的浪费。However, on the same network, different hyper-converged management devices have exactly the same authority, and their operations are mutually exclusive, which also leads to a waste of management resources.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种管理控制方法和装置,以避免网络中不同超融合管理设备相互排斥、且节省管理资源。The present application provides a management control method and apparatus to avoid mutual exclusion of different hyperconverged management devices in a network and save management resources.
本申请提供的技术方案包括:The technical solutions provided in this application include:
一种管理控制方法,该方法应用于超融合管理设备,包括:A management control method, which is applied to a hyperconverged management device, includes:
确定当前到达选举时间时,从本设备和网络中其他超融合管理设备中选举出主设备、备设备、待机设备;When it is determined that the current election time is reached, the main device, the standby device, and the standby device are elected from the device and other hyper-converged management devices in the network;
在本设备被选举为主设备时,控制网络中其他所有超融合管理设备工作;When this device is elected as the master device, control the work of all other hyper-converged management devices in the network;
在本设备被选举为备设备时,按照主设备的控制进行工作;When the device is elected as the standby device, it works according to the control of the main device;
在本设备为待机设备时,按照主设备的控制进行工作。When this device is a standby device, it works according to the control of the main device.
一种管理控制装置,该装置应用于超融合管理设备,包括:A management control device, which is applied to a hyper-converged management device, includes:
选举单元,用于确定当前到达选举时间时,从本设备和网络中其他超融合管理设备中选举出主设备、备设备、待机设备;The election unit is used to determine that when the current election time arrives, the main device, the standby device, and the standby device are elected from the device and other hyper-converged management devices in the network;
处理单元,用于在本设备被选举为主设备时,控制网络中其他所有超融合管理设备工作;在本设备被选举为备设备时,按照主设备的控制进行工作;在本设备为待机设备时,按照主设备的控制进行工作。The processing unit is used to control the work of all other hyper-converged management devices in the network when the device is elected as the master device; when the device is elected as the backup device, work according to the control of the master device; when the device is the standby device , work in accordance with the control of the master device.
由以上技术方案可以看出,本发明中,通过动态选举网络中各超融合管理设备的角色(主设备、备设备、待机设备),各超融合管理设备按照自己的角色工作,避免了不同超融合管理设备因为权限完全相同而导致的相互排斥、管理资源浪费等问题。It can be seen from the above technical solutions that in the present invention, by dynamically electing the roles (main device, standby device, standby device) of each hyper-converged management device in the network, each hyper-converged management device works according to its own role, avoiding different super-convergence management devices. Problems such as mutual exclusion and waste of management resources caused by the identical permissions of converged management devices.
进一步地,本发明中,通过动态选举网络中各超融合管理设备的角色,由被选举为主设备的超融合管理设备控制被选举为备设备和待机设备的超融合管理设备工作,这样就可以由用户仅对被选举为主设备的超融合管理设备进行操作即可,由被选举为主设备的超融合管理设备依赖用户操作控制被选举为备设备和待机设备的超融合管理设备工作,这简化了用户入口,也无需针对每个超融合管理设备设置地址。Further, in the present invention, by dynamically electing the roles of each hyper-convergence management device in the network, the hyper-convergence management device elected as the master device controls the work of the hyper-convergence management device elected as the standby device and the standby device, so that it can be The user only needs to operate the hyper-converged management device elected as the master device, and the hyper-converged management device elected as the master device relies on user operations to control the work of the hyper-converged management device elected as the standby device and the standby device. Simplifies user entry and eliminates the need to set addresses for each hyperconverged management device.
附图说明Description of drawings
图1为本发明提供的方法流程图;1 is a flow chart of a method provided by the present invention;
图2为本发明提供的报文格式结构图;Fig. 2 is a message format structure diagram provided by the present invention;
图3为本发明提供的另一报文格式结构图;Fig. 3 is another message format structure diagram provided by the present invention;
图4为本发明提供的设备状态变迁图;Fig. 4 is a device state transition diagram provided by the present invention;
图5为本发明提供的选举流程图;Fig. 5 is the election flow chart provided by the present invention;
图6为本发明提供的装置结构图;6 is a structural diagram of a device provided by the present invention;
图7为本发明提供的图6所示装置的硬件结构图。FIG. 7 is a hardware structure diagram of the apparatus shown in FIG. 6 provided by the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本发明进行详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
参见图1,图1为本发明提供的方法流程图。该方法应用于超融合管理设备。如图1所示,该方法可包括:Referring to FIG. 1, FIG. 1 is a flow chart of the method provided by the present invention. The method is applied to a hyperconverged management device. As shown in Figure 1, the method may include:
步骤101,确定当前到达选举时间时,从本设备和网络中其他超融合管理设备中选举出主设备、备设备、待机设备。Step 101: When it is determined that the current election time is reached, a master device, a backup device, and a standby device are elected from the local device and other hyper-converged management devices in the network.
在本申请中,作为一个实施例,选举时间可预先设置。In this application, as an embodiment, the election time may be preset.
作为另一个实施例,选举时间也可动态确定,具体见下文描述。As another embodiment, the election time can also be determined dynamically, as described below for details.
至于如何从本设备和其他超融合管理设备中选举出主设备、备设备、待机设备,下文会具体描述,这里暂不赘述。As for how to elect the master device, the backup device, and the standby device from the device and other hyper-converged management devices, it will be described in detail below, and will not be repeated here.
步骤102,在本设备被选举为主设备时,控制网络中其他所有超融合管理设备,在本设备被选举为备设备时,按照主设备的控制进行工作,在本设备为待机设备时,按照主设备的控制进行工作。
在本申请中,虽然被选举为备设备的超融合管理设备、被选举为待机设备的超融合管理设备是按照主设备的控制进行工作的,但在具体实现时主设备对被选举为备设备的超融合管理设备和被选举为待机设备的超融合管理设备的控制不同,具体是基于实际需求控制,不再一一描述。In this application, although the hyper-converged management device elected as the standby device and the hyper-converged management device elected as the standby device work according to the control of the master device, in the specific implementation, the master device is elected as the standby device. The control of the hyper-converged management device is different from that of the hyper-converged management device that is elected as the standby device. The control is based on actual needs and will not be described one by one.
至此,完成图1所示流程。So far, the process shown in FIG. 1 is completed.
通过图1所示流程可以看出,在本申请中,通过动态选举网络中各超融合管理设备的角色(主设备、备设备、待机设备),各超融合管理设备按照自己的角色进行工作,避免不同超融合管理设备因为权限完全相同而导致的相互排斥、管理资源浪费等问题。It can be seen from the process shown in FIG. 1 that in this application, by dynamically electing the roles of each hyper-converged management device (main device, standby device, and standby device) in the network, each hyper-converged management device works according to its own role. Avoid problems such as mutual exclusion and waste of management resources caused by the identical permissions of different hyper-converged management devices.
进一步地,本发明中,通过动态选举网络中各超融合管理设备的角色,由被选举为主设备的超融合管理设备控制被选举为备设备和待机设备的超融合管理设备工作,这样就可以由用户仅对被选举为主设备的超融合管理设备进行操作即可,由被选举为主设备的超融合管理设备依赖用户操作控制被选举为备设备和待机设备的超融合管理设备工作,这简化了用户入口,也无需针对每个超融合管理设备设置地址。Further, in the present invention, by dynamically electing the roles of each hyper-convergence management device in the network, the hyper-convergence management device elected as the master device controls the work of the hyper-convergence management device elected as the standby device and the standby device, so that it can be The user only needs to operate the hyper-converged management device elected as the master device, and the hyper-converged management device elected as the master device relies on user operations to control the work of the hyper-converged management device elected as the standby device and the standby device. Simplifies user entry and eliminates the need to set addresses for each hyperconverged management device.
更进一步地,本发明中,通过动态选举网络中各超融合管理设备的角色,由被选举为主设备的超融合管理设备控制被选举为备设备和待机设备的超融合管理设备工作,能够减少网络中协议报文转发和处理的数量,提高资源利用率。Furthermore, in the present invention, by dynamically electing the roles of each hyper-converged management device in the network, the hyper-converged management device elected as the master device controls the work of the hyper-converged management device elected as the standby device and the standby device, which can reduce The number of protocol packets forwarded and processed in the network to improve resource utilization.
在本申请中,当超融合管理设备上电或被恢复为出厂配置时,超融合管理设备的状态此时为初始化(Init)。In this application, when the hyper-converged management device is powered on or restored to the factory configuration, the state of the hyper-converged management device is initialized (Init).
超融合管理设备的状态为Init时,会启动一个定时器,定时器的超时时间会预先设置。When the state of the hyperconverged management device is Init, a timer will be started, and the timeout period of the timer will be preset.
基于此,作为一个实施例,上述步骤101中超融合管理设备确定的选举时间为本设备的状态为Init时启动的定时器超时。Based on this, as an embodiment, the election time determined by the hyper-converged management device in the
超融合管理设备的状态为Init时,超融合管理设备不进行工作,但会周期发送通告报文。通告报文是专门为超融合管理设备适配设计的数据中心管理协议下的报文。通告报文携带两类TLV信息,第一类TLV信息用于携带超融合管理设备的状态。图2示出了第一类TLV信息的结构。作为一个实施例,此时超融合管理设备的状态为Init,则此时超融合管理设备发送的通告报文携带的第一类TLV信息就为用于表示Init的标识比如1。第二类TLV信息用于携带选举参数,作为本发明的一个实施例,这里的选举参数可为设备优先级、MAC地址。图3以选举参数为设备优先级、MAC地址为例示出了第二类TLV信息的结构。When the state of the hyper-converged management device is Init, the hyper-converged management device does not work, but periodically sends notification messages. The advertisement message is a message under the data center management protocol specially designed for the adaptation of hyper-converged management equipment. The advertisement message carries two types of TLV information. The first type of TLV information is used to carry the status of the hyperconverged management device. FIG. 2 shows the structure of the first type of TLV information. As an embodiment, at this time, the state of the hyper-converged management device is Init, and the first type of TLV information carried in the advertisement message sent by the hyper-converged management device at this time is an identifier such as 1 for indicating Init. The second type of TLV information is used to carry election parameters. As an embodiment of the present invention, the election parameters here may be device priority and MAC address. FIG. 3 shows the structure of the second type of TLV information by taking the election parameters as the device priority and the MAC address as an example.
超融合管理设备的状态为Init时,还会接收其他超融合管理设备发送的通告报文。接收的其他超融合管理设备发送的通告报文会携带其他超融合管理设备的状态。而其他超融合管理设备的状态可能是Init,也可能是Master或Backup等。When the state of the hyper-converged management device is Init, it will also receive notification packets sent by other hyper-converged management devices. The received advertisement messages sent by other hyper-converged management devices will carry the status of other hyper-converged management devices. The status of other hyper-converged management devices may be Init, Master or Backup.
在本申请中,对于被选举为主设备的超融合管理设备,其具有的设备状态为主状态(Master),对于被选举为备设备的超融合管理设备,其具有的设备状态为备状态(Backup),对于被选举为待机设备的超融合管理设备,其具有的设备状态为待机状态(Waiting)。其中,在超融合管理设备被选举为主设备时,会周期发送携带本设备的状态Master的通告报文;在超融合管理设备被选举为备设备时,会周期发送携带本设备的状态Backup的通告报文;在超融合管理设备被选举为待机设备时,会周期发送携带本设备的状态Waiting的通告报文。这里,被选举为主设备的超融合管理设备、被选举为备设备的超融合管理设备,甚至被选举为待机设备的超融合管理设备,其发送的通告报文的格式如上所述。In this application, for the hyper-converged management device elected as the master device, its device state is the master state (Master), and for the hyper-converged management device elected as the standby device, its device state is the standby state ( Backup), for the hyper-converged management device that is elected as the standby device, its device state is the standby state (Waiting). Among them, when the hyper-converged management device is elected as the master device, it will periodically send a notification message carrying the status of the device Master; when the hyper-converged management device is elected as the standby device, it will periodically send the status of the device. Announcement message: When the hyper-converged management device is elected as the standby device, it will periodically send an announcement message carrying the Waiting state of the device. Here, the hyper-converged management device elected as the master device, the hyper-converged management device elected as the standby device, or even the hyper-converged management device elected as the standby device, the format of the notification message sent by it is as described above.
在本申请中,被选举为主设备的超融合管理设备也会周期接收其他被选举为备设备以及待机设备的超融合管理设备发送的通告报文。被选举为备设备的超融合管理设备也会周期接收其他被选举为主设备以及待机设备的超融合管理设备发送的通告报文。被选举为待机设备的超融合管理设备也会周期接收其他被选举为主设备、备设备以及其他待机设备的超融合管理设备发送的通告报文。In this application, the hyper-converged management device elected as the master device also periodically receives notification messages sent by other hyper-converged management devices elected as the standby device and the standby device. The hyper-converged management device elected as the standby device also periodically receives notification packets sent by other hyper-converged management devices elected as the master and standby devices. The hyper-converged management device elected as the standby device also periodically receives notification messages sent by other hyper-converged management devices elected as the master device, the standby device, and other standby devices.
作为一个实施例,上述步骤101中超融合管理设备确定的选举时间还可为:本设备的状态为Init时收到携带了状态为Master或Backup的通告报文。As an embodiment, the election time determined by the hyper-converged management device in the foregoing
在本申请中,当选举出主设备、备设备、待机设备后,被选举的主设备、备设备并非稳定不变,其会动态变化。作为一个实施例,上述步骤101中超融合管理设备确定的选举时间还可为:网络中状态为Master或Backup的超融合管理设备的状态发生了变化,也即网络中的主设备、备设备发生了变化。In this application, after the master device, the backup device, and the standby device are elected, the elected master device and the backup device are not stable and change dynamically. As an embodiment, the election time determined by the hyper-converged management device in the
作为一个实施例,网络中状态为Master或Backup的超融合管理设备的状态发生了变化包括但不限于以下情况:As an embodiment, the status of the hyper-converged management device whose status is Master or Backup in the network has changed, including but not limited to the following situations:
情况1),网络中新增加一台以上状态为Master或Backup的超融合管理设备。也即,网络中新增加了一台以上作为主设备或备设备的超融合管理设备。In case 1), one or more hyper-converged management devices with the status of Master or Backup are newly added to the network. That is, more than one hyper-converged management device that is a master device or a backup device is newly added to the network.
情况2),网络中被选举为主设备或备设备的超融合管理设备的状态发生更新。也即,网络中被选举为主设备的超融合管理设备不再维持原有的Master即不再作为主设备,或者网络中被选举为备设备的超融合管理设备不再维持原有的Backup即不再作为备设备。In case 2), the state of the hyper-converged management device elected as the master device or the backup device in the network is updated. That is, the hyper-converged management device elected as the master device in the network no longer maintains the original master, that is, it no longer acts as the master device, or the hyper-converged management device elected as the backup device in the network no longer maintains the original backup. No longer as a backup device.
情况3),设定时间未收到携带了状态为Master或Backup的通告报文。In case 3), the notification message carrying the status of Master or Backup is not received within the set time.
基于上面描述,则对于任一超融合管理设备,其状态变化会如图4所示变迁。Based on the above description, for any hyper-converged management device, its state change will transition as shown in FIG. 4 .
如上描述的通告报文,则步骤102中,从本设备和其他超融合管理设备中选举出主设备、备设备、待机设备包括图5所示流程:For the notification message described above, in
参见图5,图5为本申请提供的选举流程图。该流程应用于超融合管理设备,具体可包括以下步骤:Referring to FIG. 5, FIG. 5 is an election flowchart provided for this application. This process is applied to hyper-converged management devices, and may specifically include the following steps:
步骤501,超融合管理设备从主设备的候选设备中选举出一个设备作为主设备。In
这里,主设备的候选设备为:如果网络中有一个以上状态为Master的超融合管理设备,则状态为Master的超融合管理设备为主设备的候选设备,否则,网络中所有超融合管理设备为主设备的候选设备;Here, the candidate devices of the master device are: if there is more than one hyper-converged management device whose status is Master in the network, then the hyper-converged management device whose status is Master is the candidate device of the master device; otherwise, all hyper-converged management devices in the network are The candidate device of the master device;
如上描述的通告报文的结构,则超融合管理设备可以通过收集其他超融合管理设备发送的通告报文获知其他超融合管理设备的状态。其中,收集的其他超融合管理设备发送的通告报文可为截至当前的最新通告报文。With the structure of the notification message described above, the hyperconverged management device can learn the status of other hyperconverged management devices by collecting notification messages sent by other hyperconverged management devices. The collected notification messages sent by other hyper-converged management devices may be the latest notification messages as of now.
如上描述的通告报文还携带选举参数,作为一个实施例,本步骤501中从主设备的候选设备中选举出一个设备作为主设备可按照优先级进行选举。具体地,按照优先级从主设备的候选设备中选举出一个设备作为主设备可包括:从主设备的候选设备中选举出优先级最高的一个设备。需要说明的是,当从主设备的候选设备中选举出优先级最高的设备的数量为1,则则选举优先级最高的设备为主设备,当选举出优先级最高的设备的数量大于1,则选举优先级最高的设备中MAC地址最小的设备为主设备。最终保证只选举一个超融合管理设备为主设备。The announcement message described above also carries election parameters. As an embodiment, in this
步骤502,超融合管理设备在本设备未被选举为主设备时,将本设备的状态置为Backup。
当超融合管理设备将本设备的状态置为Backup也即超融合管理设备默认本设备为备设备。When the hyper-converged management device sets the status of this device to Backup, that is, the hyper-converged management device defaults this device as the backup device.
步骤503,超融合管理设备从备设备的候选设备中选举出一个设备作为备设备,所述备设备的候选设备为:所有状态为Backup的超融合管理设备。Step 503 , the hyper-converged management device elects one device as the backup device from the candidate devices of the backup device, and the candidate devices of the backup device are: all the hyper-converged management devices whose status is Backup.
在本申请中,步骤503中的选举类似步骤501中的选举,也是按照优先级选举的。具体为:按照优先级从备设备的候选设备中选举出一个优先级最高的设备。需要说明的是,当选举出的优先级最高的设备的数量为1时,选举优先级最高的设备为备设备,否则,选举优先级最高的设备中MAC地址最小的设备为备设备。最终保证只选举一个超融合管理设备为备设备。In this application, the election in step 503 is similar to the election in
步骤504,超融合管理设备在本设备未被选举为备设备时,将本设备的状态置为Waiting。Step 504: When the hyper-converged management device is not elected as the standby device, the hyper-converged management device sets the state of the current device to Waiting.
当超融合管理设备将本设备的状态置为Waiting也即超融合管理设备默认本设备为待机设备。When the hyper-converged management device sets the state of this device to Waiting, that is, the hyper-converged management device defaults this device as a standby device.
至此,完成图5所示流程。通过图5所示流程,最终完成超融合管理设备的选举。So far, the process shown in FIG. 5 is completed. Through the process shown in Figure 5, the election of the hyper-converged management device is finally completed.
需要说明的是,作为一个特例,如果网络中只有一台超融合管理设备,则无需执行本申请如图5所示的选举流程。It should be noted that, as a special case, if there is only one hyper-converged management device in the network, there is no need to perform the election process shown in FIG. 5 in this application.
需要说明的是,在本申请中,对于被选举为备设备的超融合管理设备,可进一步包括:当检测到状态为Master的超融合管理设备异常时,将本设备升级为主设备,并更新本设备的状态为Master,将本设备更新后的状态携带在通告报文中发送给网络中其他超融合管理设备。It should be noted that, in this application, for the hyper-converged management device that is elected as the standby device, it may further include: when it is detected that the hyper-converged management device in the master state is abnormal, upgrade the device to the primary device, and update the The state of the device is Master, and the updated state of the device is carried in the notification message and sent to other hyper-converged management devices in the network.
在上面描述中,检测到状态为Master的超融合管理设备异常主要包括:设定时间未收到状态为Master的超融合管理设备发送的通告报文;或者由被选举为备设备的超融合管理设备主动发起的检测而检测到状态为Master的超融合管理设备异常。这里的异常可包括状态为Master的超融合管理设备消失或故障。In the above description, the detected abnormality of the hyper-converged management device in the master state mainly includes: the notification message sent by the hyper-converged management device in the master state is not received within the set time; or the hyper-converged management device elected as the standby device The detection initiated by the device detects that the hyper-converged management device in the Master state is abnormal. The exception here may include the disappearance or failure of the hyper-converged management device in the Master state.
以上对本申请提供的方法进行了描述。下面对本发明提供的装置进行描述:The method provided by the present application has been described above. The device provided by the present invention is described below:
参见图6,图6为本发明提供的装置结构图。该装置应用于超融合管理设备,包括:Referring to FIG. 6, FIG. 6 is a structural diagram of an apparatus provided by the present invention. The device is applied to hyper-converged management equipment, including:
选举单元,用于确定当前到达选举时间时,从本设备和网络中其他超融合管理设备中选举出主设备、备设备、待机设备;The election unit is used to determine that when the current election time arrives, the main device, the standby device, and the standby device are elected from the device and other hyper-converged management devices in the network;
处理单元,用于在本设备被选举为主设备时,控制网络中其他所有超融合管理设备工作;在本设备被选举为备设备时,按照主设备的控制进行工作;在本设备为待机设备时,按照主设备的控制进行工作。The processing unit is used to control the work of all other hyper-converged management devices in the network when the device is elected as the master device; when the device is elected as the backup device, work according to the control of the master device; when the device is the standby device , work according to the control of the master device.
优选地,该装置进一步包括:Preferably, the device further comprises:
发送单元,用于在本设备被选举为主设备时,周期发送携带本设备的状态Master的通告报文;在本设备被选举为备设备时,周期发送携带本设备的状态Backup的通告报文;在本设备被选举为待机设备时,周期发送携带本设备的状态Waiting的通告报文。The sending unit is used to periodically send a notification message carrying the state of the device when the device is elected as the master device; when the device is elected as a backup device, it periodically sends a notification message carrying the state of the device Backup ; When the device is elected as the standby device, it periodically sends a notification message carrying the state of the device Waiting.
优选地,所述选举时间包括:Preferably, the election time includes:
本设备的状态为初始化Init时启动的定时器超时;或者,The state of this device is that the timer started when Init is initialized expires; or,
本设备的状态为Init时收到携带了状态为Master或Backup的通告报文;或者,When the status of the device is Init, it receives a notification packet carrying the status of Master or Backup; or,
网络中状态为Master或Backup的超融合管理设备的状态发生了变化。The status of the hyper-converged management device in the network status of Master or Backup has changed.
作为一个实施例,网络中状态为Master或Backup的超融合管理设备的状态发生了变化包括但不限于:As an embodiment, the status of the hyper-converged management device whose status is Master or Backup in the network has changed, including but not limited to:
网络中新增加一台以上状态为Master或Backup的超融合管理设备;Add more than one hyper-converged management device with the status of Master or Backup to the network;
网络中被选举为主设备或备设备的超融合管理设备的状态发生更新;The status of the hyper-converged management device elected as the master or backup device in the network is updated;
设定时间未收到携带了状态为Master或Backup的通告报文。The notification message carrying the status of Master or Backup has not been received within the set time.
优选地,在本设备被选举为备设备时,所述处理单元进一步检测到状态为Master的超融合管理设备消失或异常时,将本设备升级为主设备,并更新本设备的状态为Master,将本设备更新后的状态携带在通告报文中发送给网络中其他超融合管理设备。Preferably, when the device is elected as the standby device, the processing unit further detects that the hyper-converged management device whose state is Master disappears or is abnormal, upgrades the device to the master device, and updates the state of the device to Master, The updated state of the device is carried in a notification message and sent to other hyper-converged management devices in the network.
优选地,所述选举单元从本设备和其他超融合管理设备中选举出主设备、备设备、待机设备包括:Preferably, the electoral unit elects the main device, the standby device, and the standby device from the device and other hyper-converged management devices, including:
从主设备的候选设备中选举出一个设备作为主设备,所述主设备的候选设备为:如果网络中有一个以上状态为Master的超融合管理设备,则状态为Master的超融合管理设备为主设备的候选设备,否则,网络中所有超融合管理设备为主设备的候选设备;A device is elected as the master device from the candidate devices of the master device, and the candidate device of the master device is: if there is more than one hyper-converged management device in the state of Master in the network, the hyper-converged management device in the state of Master is the master device The candidate device of the device, otherwise, all the hyper-converged management devices in the network are the candidate devices of the main device;
在本设备未被选举为主设备时,将本设备的状态置为Backup;When the device is not elected as the master device, set the state of the device to Backup;
从备设备的候选设备中选举出一个设备作为备设备,所述备设备的候选设备为:所有状态为Backup的超融合管理设备;A device is elected as the standby device from the candidate devices of the standby device, and the candidate devices of the standby device are: all hyper-converged management devices whose status is Backup;
在本设备未被选举为备设备时,将本设备的状态置为WaitingWhen the device is not elected as the standby device, set the state of the device to Waiting
作为一个实施例,所述从主设备的候选设备中选举出一个设备作为主设备包括:从主设备的候选设备中选举出优先级最高的设备;如果选举出的优先级最高的设备的数量为1,则选举优先级最高的设备为主设备,否则,选举优先级最高的设备中MAC地址最小的设备为主设备;As an embodiment, the electing a device as the master device from the candidate devices of the master device includes: electing the device with the highest priority from the candidate devices of the master device; if the number of the devices with the highest priority selected is 1, the device with the highest priority is elected as the master device, otherwise, the device with the smallest MAC address among the devices with the highest priority is elected as the master device;
所述从备设备的候选设备中选举出一个设备作为备设备包括:从备设备的候选设备中选举出优先级最高的设备,当选举出的优先级最高的设备的数量为1时,选举优先级最高的设备为备设备,否则,选举优先级最高的设备中MAC地址最小的设备为备设备。The electing a device as the standby device from the candidate devices of the standby device includes: electing the device with the highest priority from the candidate devices of the standby device, and when the number of the devices with the highest priority elected is 1, the election is prioritized. The device with the highest priority is the standby device. Otherwise, the device with the smallest MAC address among the devices with the highest priority is elected as the standby device.
至此,完成图6所示的装置描述。So far, the description of the device shown in FIG. 6 is completed.
对应地,本发明还提供了图6所示装置的硬件结构。参见图7,图7为本申请提供的图6所示装置的硬件结构示意图。该装置包含:Correspondingly, the present invention also provides the hardware structure of the apparatus shown in FIG. 6 . Referring to FIG. 7 , FIG. 7 is a schematic diagram of the hardware structure of the apparatus shown in FIG. 6 provided by the present application. The device contains:
存储器,用于存放选举单元运行的程序指令、处理单元运行的程序指令;The memory is used to store the program instructions run by the electoral unit and the program instructions run by the processing unit;
处理器,用于执行选举单元运行的程序指令、用于执行处理单元运行的程序指令。其中,处理器执行选举单元运行的程序指令所执行的操作如上选举单元执行的操作,处理器执行处理单元运行的程序指令所执行的操作如上处理单元执行的操作。The processor is used to execute the program instructions run by the election unit and the program instructions run by the processing unit. The operations performed by the processor to execute the program instructions run by the election unit are the same as the operations performed by the election unit, and the operations performed by the processor to execute the program instructions executed by the processing unit are the same as the operations performed by the processing unit.
如图7所示,该硬件结构还可以包括一个电源组件被配置为执行装置的电源管理,一个有线或无线网络接口被配置为将装置连接到网络,和一个输入输出(I/O)接口。As shown in FIG. 7, the hardware architecture may also include a power component configured to perform power management of the device, a wired or wireless network interface configured to connect the device to a network, and an input output (I/O) interface.
至此,完成图7所示的硬件结构描述。So far, the description of the hardware structure shown in FIG. 7 is completed.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610807969.9ACN106411574B (en) | 2016-09-05 | 2016-09-05 | Management control method and device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610807969.9ACN106411574B (en) | 2016-09-05 | 2016-09-05 | Management control method and device |
| Publication Number | Publication Date |
|---|---|
| CN106411574A CN106411574A (en) | 2017-02-15 |
| CN106411574Btrue CN106411574B (en) | 2020-01-03 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610807969.9AActiveCN106411574B (en) | 2016-09-05 | 2016-09-05 | Management control method and device |
| Country | Link |
|---|---|
| CN (1) | CN106411574B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11121922B2 (en) | 2017-10-02 | 2021-09-14 | Hewlett Packard Enterprise Development Lp | Automatic network assembly |
| CN107844274B (en)* | 2017-11-17 | 2021-03-16 | 北京联想超融合科技有限公司 | Hardware resource management method, device and terminal based on super-fusion storage system |
| CN113900386B (en)* | 2021-11-17 | 2022-02-25 | 北京联盛德微电子有限责任公司 | Self-adaptive linkage control method and system for Internet of things equipment |
| CN114827003B (en)* | 2022-03-21 | 2024-05-14 | 浪潮思科网络科技有限公司 | Topology election method, device, equipment and medium of distributed system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1725733A (en)* | 2005-06-10 | 2006-01-25 | 杭州华为三康技术有限公司 | Method of route backup in combination equipment and combination equipment |
| CN101094102A (en)* | 2007-07-18 | 2007-12-26 | 杭州华三通信技术有限公司 | Main and standby switching method and route standby system for route device |
| CN101610182A (en)* | 2009-06-26 | 2009-12-23 | 杭州华三通信技术有限公司 | Multi-primary apparatus conflict detection method and stack member apparatus in piling up |
| CN101764744A (en)* | 2009-11-24 | 2010-06-30 | 福建星网锐捷网络有限公司 | VRRP (Virtual Router Redundancy Protocol) access method, device and system, as well as VRRP routing equipment |
| CN102215158A (en)* | 2010-04-08 | 2011-10-12 | 杭州华三通信技术有限公司 | Method for realizing VRRP (Virtual Router Redundancy Protocol) flow transmission and routing equipment |
| CN102447615A (en)* | 2010-10-15 | 2012-05-09 | 中兴通讯股份有限公司 | Switching method and router |
| CN102904705A (en)* | 2012-11-05 | 2013-01-30 | 迈普通信技术股份有限公司 | Method and equipment for synchronizing batch of stacking systems |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1725733A (en)* | 2005-06-10 | 2006-01-25 | 杭州华为三康技术有限公司 | Method of route backup in combination equipment and combination equipment |
| CN101094102A (en)* | 2007-07-18 | 2007-12-26 | 杭州华三通信技术有限公司 | Main and standby switching method and route standby system for route device |
| CN101610182A (en)* | 2009-06-26 | 2009-12-23 | 杭州华三通信技术有限公司 | Multi-primary apparatus conflict detection method and stack member apparatus in piling up |
| CN101764744A (en)* | 2009-11-24 | 2010-06-30 | 福建星网锐捷网络有限公司 | VRRP (Virtual Router Redundancy Protocol) access method, device and system, as well as VRRP routing equipment |
| CN102215158A (en)* | 2010-04-08 | 2011-10-12 | 杭州华三通信技术有限公司 | Method for realizing VRRP (Virtual Router Redundancy Protocol) flow transmission and routing equipment |
| CN102447615A (en)* | 2010-10-15 | 2012-05-09 | 中兴通讯股份有限公司 | Switching method and router |
| CN102904705A (en)* | 2012-11-05 | 2013-01-30 | 迈普通信技术股份有限公司 | Method and equipment for synchronizing batch of stacking systems |
| Publication number | Publication date |
|---|---|
| CN106411574A (en) | 2017-02-15 |
| Publication | Publication Date | Title |
|---|---|---|
| US11522951B2 (en) | Configuring service mesh networking resources for dynamically discovered peers or network functions | |
| US10484265B2 (en) | Dynamic update of virtual network topology | |
| US20100332212A1 (en) | Method and apparatus for sleep and wake of computer devices | |
| US20170048123A1 (en) | System for controlling switch devices, and device and method for controlling system configuration | |
| CN110557791A (en) | Session management method, device and system | |
| CN106411574B (en) | Management control method and device | |
| CN115004650B (en) | Node configuration method, device, distributed system and computer-readable medium | |
| CN106487578A (en) | Error recovery method, and Internet of things system and charging system applying same | |
| CN104935672A (en) | High available realizing method and equipment of load balancing service | |
| JP2007509536A (en) | Redundant routing capabilities for network node clusters | |
| US20190026168A1 (en) | Geographical Redundancy and Dynamic Scaling for Virtual Network Functions | |
| WO2020030000A1 (en) | Disaster recovery switching method, related device and computer storage medium | |
| US10581669B2 (en) | Restoring control-plane connectivity with a network management entity | |
| CN110932876B (en) | A communication system, method and device | |
| CN104521181B (en) | Fault handling method, device and system | |
| CN105704042A (en) | Message processing method, BNG and BNG cluster system | |
| CN114422427B (en) | Flow balancing method and device, electronic equipment and storage medium | |
| CN115225450A (en) | A virtualized cluster management system for multiple data rooms based on edge computing | |
| WO2015003420A1 (en) | Resource deployment method for cloud computing environment | |
| JP2013206112A (en) | Computer system and sub-system management method | |
| US20250142317A1 (en) | Unified data registry (udr) synchronization in a wireless communication network | |
| CN111901395A (en) | Multi-cluster handover method and device | |
| KR101984846B1 (en) | Communication method and apparatus providing mobility of objects | |
| WO2022044546A1 (en) | Communication system and method for recovering faults therein | |
| CN109150941B (en) | A method of floating physical resources in a data center |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information | Address after:310052 Binjiang District, Zhejiang Province, Changhe Road, No. 11, building 466, building Applicant after:Huashan Information Technology Co., Ltd. Address before:310052 Binjiang District, Zhejiang Province, Changhe Road, No. 11, building 466, building Applicant before:Hangzhou Kun Hai Information Technology Co., Ltd | |
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information | Address after:310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Applicant after:Xinhua Sanxin Information Technology Co., Ltd. Address before:310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Applicant before:Huashan Information Technology Co., Ltd. | |
| GR01 | Patent grant | ||
| GR01 | Patent grant |