Movatterモバイル変換


[0]ホーム

URL:


CN106411574B - Management control method and device - Google Patents

Management control method and device
Download PDF

Info

Publication number
CN106411574B
CN106411574BCN201610807969.9ACN201610807969ACN106411574BCN 106411574 BCN106411574 BCN 106411574BCN 201610807969 ACN201610807969 ACN 201610807969ACN 106411574 BCN106411574 BCN 106411574B
Authority
CN
China
Prior art keywords
master
hyper
elected
backup
status
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610807969.9A
Other languages
Chinese (zh)
Other versions
CN106411574A (en
Inventor
陆亦雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Information Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Information Technologies Co LtdfiledCriticalNew H3C Information Technologies Co Ltd
Priority to CN201610807969.9ApriorityCriticalpatent/CN106411574B/en
Publication of CN106411574ApublicationCriticalpatent/CN106411574A/en
Application grantedgrantedCritical
Publication of CN106411574BpublicationCriticalpatent/CN106411574B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请提供了一种管理控制方法和装置。本申请中,通过动态选举网络中各超融合管理设备的角色(主设备、备设备、待机设备),避免不同超融合管理设备因为权限完全相同而导致的相互排斥、管理资源浪费等问题。

Figure 201610807969

The present application provides a management control method and device. In this application, by dynamically electing the roles of each hyper-converged management device (main device, standby device, standby device) in the network, problems such as mutual exclusion and waste of management resources caused by the identical permissions of different hyper-converged management devices are avoided.

Figure 201610807969

Description

Translated fromChinese
一种管理控制方法和装置A management control method and device

技术领域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,在本设备被选举为主设备时,控制网络中其他所有超融合管理设备,在本设备被选举为备设备时,按照主设备的控制进行工作,在本设备为待机设备时,按照主设备的控制进行工作。Step 102, when the device is elected as the master device, control all other hyper-converged management devices in the network, when the device is elected as the backup device, work according to the control of the master device, and when the device is the standby device, according to The control of the master device works.

在本申请中,虽然被选举为备设备的超融合管理设备、被选举为待机设备的超融合管理设备是按照主设备的控制进行工作的,但在具体实现时主设备对被选举为备设备的超融合管理设备和被选举为待机设备的超融合管理设备的控制不同,具体是基于实际需求控制,不再一一描述。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 theforegoing step 101 is the timeout of the timer started when the state of the device is Init.

超融合管理设备的状态为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 foregoingstep 101 may also be: when the state of the device is Init, it receives a notification message carrying the state of Master or Backup.

在本申请中,当选举出主设备、备设备、待机设备后,被选举的主设备、备设备并非稳定不变,其会动态变化。作为一个实施例,上述步骤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 theabove step 101 may also be: the state of the hyper-converged management device whose status is Master or Backup in the network has changed, that is, the primary device and the backup device in the network have changed. Variety.

作为一个实施例,网络中状态为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, instep 102, electing the main device, the standby device, and the standby device from the local device and other hyper-converged management devices includes the process shown in Figure 5:

参见图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,超融合管理设备从主设备的候选设备中选举出一个设备作为主设备。Instep 501, the hyper-converged management device elects a device from the candidate devices of the master device as the master device.

这里,主设备的候选设备为:如果网络中有一个以上状态为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 thisstep 501, a device is elected from the candidate devices of the master device as the master device, and the election can be performed according to the priority. Specifically, electing a device as the master device from the candidate devices of the master device according to the priority may include: selecting a device with the highest priority from the candidate devices of the master device. It should be noted that when the number of devices with the highest priority selected from the candidate devices of the master device is 1, the device with the highest priority is elected as the master device, and when the number of devices with the highest priority elected is greater than 1, The device with the smallest MAC address among the devices with the highest priority is elected as the master device. Ultimately, it is guaranteed that only one hyper-converged management device is elected as the master device.

步骤502,超融合管理设备在本设备未被选举为主设备时,将本设备的状态置为Backup。Step 502, when the hyper-converged management device is not elected as the master device, the hyper-converged management device sets the state of the device to 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 instep 501, and the election is also based on priority. Specifically, a device with the highest priority is selected from the candidate devices of the standby device according to the priority. It should be noted that when the number of devices with the highest priority is 1, the device with the highest priority is elected as the backup device; otherwise, the device with the lowest MAC address among the devices with the highest priority is elected as the backup device. Ultimately, it is guaranteed that only one hyper-converged management device is elected as the backup device.

步骤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.

Claims (9)

Translated fromChinese
1.一种管理控制方法,其特征在于,该方法应用于超融合管理设备,所述超融合管理设备对外呈现为一台由虚拟的计算资源、存储资源、网络带宽组成的大型服务器,不同超融合管理设备运行在同一网络的不同层级,初始,运行在同一网络不同层级的不同超融合管理设备具有相同的权限,包括:1. a management control method is characterized in that, the method is applied to a hyper-converged management device, and the hyper-converged management device is presented as a large-scale server consisting of virtual computing resources, storage resources, network bandwidth, different hyper-converged management devices. Converged management devices run at different levels of the same network. Initially, different hyper-converged management devices running at different levels of the same network have the same permissions, including:确定当前到达选举时间时,从主设备的候选设备中选举出一个设备作为主设备,所述主设备的候选设备为:如果网络中有一个以上状态为Master的超融合管理设备,则状态为Master的超融合管理设备为主设备的候选设备,否则,网络中所有超融合管理设备为主设备的候选设备;在本设备未被选举为主设备时,将本设备的状态置为Backup;从备设备的候选设备中选举出一个设备作为备设备,所述备设备的候选设备为:所有状态为Backup的超融合管理设备;在本设备未被选举为备设备时,将本设备的状态置为待机Waiting;When it is determined that the current election time is reached, a device is elected as the master device from the candidate devices of the master device. The candidate device of the master device is: if there is more than one hyperconverged management device whose state is Master in the network, the state is Master The hyper-converged management device is the candidate device of the master device, otherwise, all the hyper-converged management devices in the network are the candidate devices of the master device; when the device is not elected as the master device, the status of the device is set to Backup; One device is elected as the standby device from the candidate devices of the device, and the candidate devices of the standby device are: all the hyper-converged management devices whose status is Backup; when the device is not elected as the standby device, the status of the device is set to Standby Waiting;在本设备被选举为主设备时,控制网络中其他所有超融合管理设备工作;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;在本设备为待机设备时,按照主设备的控制进行工作,所述待机设备是指状态为Waiting的设备。When the device is a standby device, it works according to the control of the master device, and the standby device refers to a device whose state is Waiting.2.根据权利要求1所述的方法,其特征在于,该方法进一步包括:2. The method according to claim 1, wherein the method further comprises:在本设备被选举为主设备时,周期发送携带本设备的状态Master的通告报文;When the device is elected as the master device, it periodically sends a notification message carrying the state Master of the device;在本设备被选举为备设备时,周期发送携带本设备的状态Backup的通告报文;When the device is elected as the standby device, it periodically sends a notification message carrying the status of the device Backup;在本设备被选举为待机设备时,周期发送携带本设备的状态Waiting的通告报文。When the device is elected as the standby device, it periodically sends a notification message carrying the state of the device Waiting.3.根据权利要求2所述的方法,其特征在于,所述选举时间包括:3. The method according to claim 2, wherein the election time comprises:本设备的状态为初始化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.4.根据权利要求2所述的方法,其特征在于,网络中状态为Master或Backup的超融合管理设备的状态发生了变化包括但不限于:4. The method according to claim 2, wherein the state of the hyperconverged management device whose state 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.5.根据权利要求2所述的方法,其特征在于,在本设备被选举为备设备时,该方法进一步包括:5. The method according to claim 2, wherein when the device is elected as the standby device, the method further comprises:当检测到状态为Master的超融合管理设备异常时,将本设备升级为主设备,并更新本设备的状态为Master,将本设备更新后的状态携带在通告报文中发送给网络中其他超融合管理设备。When it is detected that the hyper-converged management device with the status of Master is abnormal, the device is upgraded to the master device, and the state of the device is updated to Master, and the updated state of the device is carried in the notification message and sent to other hypervisors in the network. Converged management equipment.6.一种管理控制装置,其特征在于,该装置应用于超融合管理设备,所述超融合管理设备对外呈现为一台由虚拟的计算资源、存储资源、网络带宽组成的大型服务器,初始,不同超融合管理设备运行在同一网络的不同层级,且具有相同的权限,包括:6. A management control device, characterized in that, the device is applied to a hyper-converged management device, and the hyper-converged management device is externally presented as a large server consisting of virtual computing resources, storage resources, and network bandwidth. Initially, Different hyper-converged management devices run at different layers of the same network and have the same permissions, including:选举单元,用于确定当前到达选举时间时,从主设备的候选设备中选举出一个设备作为主设备,所述主设备的候选设备为:如果网络中有一个以上状态为Master的超融合管理设备,则状态为Master的超融合管理设备为主设备的候选设备,否则,网络中所有超融合管理设备为主设备的候选设备;在本设备未被选举为主设备时,将本设备的状态置为Backup;从备设备的候选设备中选举出一个设备作为备设备,所述备设备的候选设备为:所有状态为Backup的超融合管理设备;在本设备未被选举为备设备时,将本设备的状态置为Waiting;The election unit is used to determine that when the current election time arrives, 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 whose status is Master is a candidate device for the master device; otherwise, all hyper-converged management devices in the network are candidates for the master device; when the device is not elected as the master device, the state of the device is set to Backup; elect a 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; when the current device is not elected as the backup device, the The status of the device is set to Waiting;处理单元,用于在本设备被选举为主设备时,控制网络中其他所有超融合管理设备工作;在本设备被选举为备设备时,按照主设备的控制进行工作;在本设备为待机设备时,按照主设备的控制进行工作,所述待机设备是指状态为Waiting的设备。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 When , work according to the control of the master device, and the standby device refers to the device whose status is Waiting.7.根据权利要求6所述的装置,其特征在于,该装置进一步包括:7. The apparatus of claim 6, further comprising:发送单元,用于在本设备被选举为主设备时,周期发送携带本设备的状态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.8.根据权利要求7所述的装置,其特征在于,所述选举时间包括:8. The apparatus according to claim 7, wherein the election time comprises:本设备的状态为初始化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.9.根据权利要求7所述的装置,其特征在于,在本设备被选举为备设备时,所述处理单元进一步在检测到状态为Master的超融合管理设备异常时,将本设备升级为主设备,并更新本设备的状态为Master,将本设备更新后的状态携带在通告报文中发送给网络中其他超融合管理设备。9. device according to claim 7, is characterized in that, when this equipment is elected as backup equipment, described processing unit is further when detecting that the hyperconvergence management equipment that state is Master is abnormal, this equipment is upgraded to main device, and update the state of the device to Master, carry the updated state of the device in a notification message and send it to other hyper-converged management devices in the network.
CN201610807969.9A2016-09-052016-09-05Management control method and deviceActiveCN106411574B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610807969.9ACN106411574B (en)2016-09-052016-09-05Management control method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610807969.9ACN106411574B (en)2016-09-052016-09-05Management control method and device

Publications (2)

Publication NumberPublication Date
CN106411574A CN106411574A (en)2017-02-15
CN106411574Btrue CN106411574B (en)2020-01-03

Family

ID=57998823

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610807969.9AActiveCN106411574B (en)2016-09-052016-09-05Management control method and device

Country Status (1)

CountryLink
CN (1)CN106411574B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US11121922B2 (en)2017-10-022021-09-14Hewlett Packard Enterprise Development LpAutomatic network assembly
CN107844274B (en)*2017-11-172021-03-16北京联想超融合科技有限公司Hardware resource management method, device and terminal based on super-fusion storage system
CN113900386B (en)*2021-11-172022-02-25北京联盛德微电子有限责任公司Self-adaptive linkage control method and system for Internet of things equipment
CN114827003B (en)*2022-03-212024-05-14浪潮思科网络科技有限公司Topology election method, device, equipment and medium of distributed system

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1725733A (en)*2005-06-102006-01-25杭州华为三康技术有限公司Method of route backup in combination equipment and combination equipment
CN101094102A (en)*2007-07-182007-12-26杭州华三通信技术有限公司Main and standby switching method and route standby system for route device
CN101610182A (en)*2009-06-262009-12-23杭州华三通信技术有限公司Multi-primary apparatus conflict detection method and stack member apparatus in piling up
CN101764744A (en)*2009-11-242010-06-30福建星网锐捷网络有限公司VRRP (Virtual Router Redundancy Protocol) access method, device and system, as well as VRRP routing equipment
CN102215158A (en)*2010-04-082011-10-12杭州华三通信技术有限公司Method for realizing VRRP (Virtual Router Redundancy Protocol) flow transmission and routing equipment
CN102447615A (en)*2010-10-152012-05-09中兴通讯股份有限公司Switching method and router
CN102904705A (en)*2012-11-052013-01-30迈普通信技术股份有限公司Method and equipment for synchronizing batch of stacking systems

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1725733A (en)*2005-06-102006-01-25杭州华为三康技术有限公司Method of route backup in combination equipment and combination equipment
CN101094102A (en)*2007-07-182007-12-26杭州华三通信技术有限公司Main and standby switching method and route standby system for route device
CN101610182A (en)*2009-06-262009-12-23杭州华三通信技术有限公司Multi-primary apparatus conflict detection method and stack member apparatus in piling up
CN101764744A (en)*2009-11-242010-06-30福建星网锐捷网络有限公司VRRP (Virtual Router Redundancy Protocol) access method, device and system, as well as VRRP routing equipment
CN102215158A (en)*2010-04-082011-10-12杭州华三通信技术有限公司Method for realizing VRRP (Virtual Router Redundancy Protocol) flow transmission and routing equipment
CN102447615A (en)*2010-10-152012-05-09中兴通讯股份有限公司Switching method and router
CN102904705A (en)*2012-11-052013-01-30迈普通信技术股份有限公司Method and equipment for synchronizing batch of stacking systems

Also Published As

Publication numberPublication date
CN106411574A (en)2017-02-15

Similar Documents

PublicationPublication DateTitle
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

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information
CB02Change 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

CB02Change of applicant information
CB02Change 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.

GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp