Method and device for maintaining service configuration consistency of high-availability device group

By adding the dual-machine cluster deployment device to the high-availability device group and synchronizing the business configuration, the problem of inconsistent device configurations in the SD-WAN service is solved, and rapid business recovery and configuration consistency are achieved in the event of a failure.

CN114328033BActive Publication Date: 2024-10-29QI AN XIN TECHNOLOGY GROUP INC +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111372443.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-18
Publication Date
2024-10-29
Estimated Expiration
2041-11-18

AI Technical Summary

Technical Problem

In the SD-WAN service, the business configurations of the two devices deployed in a dual-machine cluster are inconsistent, resulting in the backup device being unable to synchronize the business configuration in a timely manner and ensuring the consistency of the business configuration.

Method used

Add the dual-machine cluster deployment device to the same high-availability device group, receive the high-availability status reported by the master device, determine the status of the high-availability device group, and issue the business configuration if available; if the master device fails, the new master device will modify As a backup device, deliver the high-availability device group configuration to ensure that the business status of the active and backup devices is consistent.

Benefits of technology

It realizes the synchronization of business configurations of dual-machine cluster deployment devices when the main device fails, ensuring the consistency of business configurations and ensuring the rapid recovery and continuity of services when equipment fails.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114328033B_ABST
    Figure CN114328033B_ABST
Patent Text Reader

Abstract

The method and device for maintaining the consistency of the service configuration of a high-availability device group provided by the present invention are as follows: adding a dual-machine cluster deployment device to the same high-availability device group; receiving the high-availability status of the dual-machine cluster deployment device reported by the master device in the dual-machine cluster deployment device; judging whether the high-availability status of the high-availability device group is available according to the high-availability status of the dual-machine cluster deployment device; if the high-availability status of the high-availability device group is available, sending the service configuration of the high-availability device group to the master device; if the master device fails, receiving a connection request from a new master device, the new master device is a standby device that modifies its own high-availability status to the master high-availability status; sending the service configuration of the high-availability device group to the new master device. When the master device fails, the standby device becomes the new master device, interacts with the controller, and ensures that the service status is consistent with that of the failed master device. The method can ensure the consistency of the service configuration of the master and standby devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of high-availability device group configuration, and in particular to a method and a device for maintaining consistency in service configuration of a high-availability device group. Background Art

[0002] The current SD-WAN service has a complex network environment, and has high requirements for the immediacy, continuity, and recoverability of services. In order to avoid service interruptions due to network device disconnection or program failure, dual-machine cluster deployment is usually adopted to ensure that services can be restored in time when a device fails, thereby meeting the high availability of services in the network; to ensure that when a device fails, the service can be switched to another network device in time and can operate normally, it is required that the service configuration between the two network devices deployed in the dual-machine cluster is the same.

[0003] In the current SD-WAN service, the business configurations of the two devices deployed in the dual-machine cluster are not exactly the same. The configuration of the backup device needs to be synchronized by the primary device. When the primary device fails, the business configuration cannot be synchronized to the backup device in time, resulting in inconsistent configurations of the dual-machine cluster deployment devices. As a result, the backup device cannot perceive business changes and cannot ensure the consistency of the business configurations of the two devices. Summary of the invention

[0004] The present invention provides a method and device for maintaining consistency in the service configuration of a high-availability device group, which is used to solve the defect in the prior art that when a main device fails, the backup device cannot synchronize the service configuration of two devices deployed in a dual-machine cluster with different service configurations, and can ensure the consistency of the service configuration of the two devices.

[0005] In the first aspect, an embodiment of the present invention provides a method for maintaining consistency in the business configuration of a high-availability device group, which is applied to a controller, comprising: adding a dual-machine cluster deployment device to the same high-availability device group; receiving the high availability status of the dual-machine cluster deployment device reported by the master device in the dual-machine cluster deployment device; judging whether the high availability status of the high-availability device group is available based on the high availability status of the dual-machine cluster deployment device; if the high availability status of the high-availability device group is available, issuing the business configuration of the high-availability device group to the master device; if the master device fails, receiving a connection request from a new master device, the new master device being a backup device that modifies its own high availability status to a master high availability status; and issuing the business configuration of the high-availability device group to the new master device.

[0006] Further, the sending the configuration of the high-availability device group to the new master device includes: comparing the configuration of the high-availability device group with the configuration of the new master device to obtain a difference configuration; and sending the difference configuration to the new master device.

[0007] Furthermore, the method for maintaining consistency in the business configuration of a high-availability device group also includes: adding a non-dual-machine cluster deployment device to the same high-availability device group; based on modification of a backup device of the non-dual-machine cluster deployment device in the high-availability device group, modifying the non-dual-machine cluster deployment device to the dual-machine cluster deployment device.

[0008] Furthermore, the method for maintaining consistency of business configuration of a high-availability device group also includes: obtaining a device selected by a user in the high-availability device group; sending the business configuration of the high-availability device group to the device selected by the user; and deleting information of the high-availability device group in a database.

[0009] Furthermore, based on the modification of the backup device of the non-dual-machine cluster deployed device in the high-availability device group, the non-dual-machine cluster deployed device is modified to the dual-machine cluster deployed device, including: after modifying the name of the high-availability device group, querying in a database according to the identity identification code of the high-availability device group to obtain the master device and backup device of the non-dual-machine cluster deployed device in the high-availability device group; obtaining the first backup device that is deployed as a single machine outside the high-availability device group and constitutes a dual-machine cluster deployment with the master device of the non-dual-machine cluster deployed device; and modifying the backup device of the non-dual-machine cluster deployed device according to the first backup device and the master and backup devices of the non-dual-machine cluster deployed device to modify the non-dual-machine cluster deployed device to the dual-machine cluster deployed device.

[0010] Furthermore, after receiving the high availability status of the dual-machine cluster deployment device reported by the master device in the dual-machine cluster deployment device, the method further includes: storing the high availability status of the dual-machine cluster deployment device in the database.

[0011] In the second aspect, an embodiment of the present invention also provides a device for maintaining consistency in the business configuration of a high-availability device group, comprising: an adding module, used to add a dual-machine cluster deployment device to the same high-availability device group; a first receiving module, used to receive the high availability status of the dual-machine cluster deployment device reported by the master device in the dual-machine cluster deployment device; a judging module, used to judge whether the high availability status of the high-availability device group is available based on the high availability status of the dual-machine cluster deployment device; a first sending module, used to send the business configuration of the high-availability device group to the master device if the high availability status of the high-availability device group is available; a second receiving module, used to receive a connection request from a new master device if a failure occurs in the master device, the new master device being a backup device that modifies its own high availability status to the master high availability status; a second sending module, used to send the configuration of the high-availability device group to the new master device.

[0012] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for maintaining the consistency of the business configuration of a high-availability device group as described in the first aspect are implemented.

[0013] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for maintaining consistency in the business configuration of a high-availability device group as described in the first aspect.

[0014] In a fifth aspect, an embodiment of the present invention further provides a computer program product having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the steps of the method for maintaining consistency in the business configuration of a high-availability device group as described in the first aspect.

[0015] The method and device for maintaining the consistency of the service configuration of a high-availability device group provided by the embodiment of the present invention are as follows: adding a dual-machine cluster deployment device to the same high-availability device group; receiving the high-availability status of the dual-machine cluster deployment device reported by the master device in the dual-machine cluster deployment device; judging whether the high-availability status of the high-availability device group is available according to the high-availability status of the dual-machine cluster deployment device; if the high-availability status of the high-availability device group is available, the service configuration of the high-availability device group is sent to the master device; if the master device fails, receiving a connection request from a new master device, the new master device is a standby device that modifies its own high-availability status to the master high-availability status; sending the service configuration of the high-availability device group to the new master device. When the master device fails, the standby device becomes the new master device and interacts with the controller to ensure that the service status is consistent with that of the failed master device. The method realizes two devices deployed in a dual-machine cluster with different service configurations. When the master device fails, the two devices can synchronize the service configuration to ensure the consistency of the service configuration of the master and standby devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A flow chart of an embodiment of a method for maintaining consistency of service configuration of a high-availability device group provided by the present invention;

[0018] Figure 2 A schematic diagram of a process for a master device to report the high availability status of a high availability device group provided by the present invention;

[0019] Figure 3 A schematic diagram of the process of sending service configuration to a main device provided by the present invention;

[0020] Figure 4 A schematic diagram of a process for deleting a high-availability device group provided by the present invention;

[0021] Figure 5 A schematic diagram of the process of obtaining a dual-machine cluster deployment device provided by the present invention;

[0022] Figure 6 A schematic diagram of a process flow of a high-availability device group state change provided by the present invention;

[0023] Figure 7 A schematic diagram of the structure of an embodiment of a device for maintaining service configuration consistency of a high-availability device group provided by the present invention;

[0024] Figure 8 An example physical structure diagram of an electronic device is provided. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] The method for maintaining the consistency of service configuration of a high-availability device group provided by the present invention is applied to a controller, wherein the type of the controller may be an SD-WAN controller, which is not limited in the embodiment of the present invention.

[0027] Figure 1 A flow chart of an embodiment of a method for maintaining the consistency of service configuration of a high-availability device group provided by the present invention. Figure 1 As shown, the method for maintaining the consistency of service configuration of a high-availability device group includes the following steps:

[0028] S101, add the dual-machine cluster deployment device to the same high-availability device group.

[0029] In step S101, the dual-machine cluster can be understood as having two servers on the hardware architecture, and a set of disk array subsystems is set between the two servers to achieve data redundancy and fault tolerance; the centralized control software DualCluster allocates resources and applications between the multiple processors of the server, integrates them, and makes them a whole to serve the system. High availability (HA) refers to improving the availability of systems and applications by minimizing the downtime caused by daily maintenance operations (planned) and sudden system crashes (unplanned). Highly available device groups are an effective solution to ensure business continuity. Highly available device groups generally have two or more nodes, which are divided into active nodes and standby nodes. The node that is executing the business is usually called the active node, and the node that is a backup of the active node is called the standby node. When a problem occurs in the active node, causing the running business (task) to fail to operate normally, the standby node will detect it at this time and immediately take over the active node to execute the business. Thereby achieving uninterrupted or short-term interruption of the business.

[0030] S102: Receive a high availability status of a high availability device group reported by a master device in a dual-machine cluster deployment device.

[0031] In step S102, the dual-machine cluster deployment device includes a master device and a standby device, wherein the master device can be understood as an active node in a high-availability device group, and the standby device can be understood as a standby node in a high-availability device group. The master device obtains the high-availability status of the high-availability device group and uploads the obtained high-availability status to the controller. The controller only interacts with the master device, and the standby device changes according to the changes in the service configuration of the master device. The process of the master device reporting the high-availability status of the high-availability device group is as follows: Figure 2 As shown, the process may include: the main device reports high availability status information; the management and control platform stores the high availability status information reported by the main device; the device high availability status monitoring interface displays the high availability device group; the main device in the group is queried according to the high availability device group; the high availability status information is queried according to the main device and displayed.

[0032] S103: judging whether the high availability status of the high availability device group is available according to the high availability status of the dual-machine cluster deployment device.

[0033] In step S103, the high availability status includes available and unavailable status. If the high availability status of the master device and the backup device of the dual-machine cluster deployment device are both available, it can be determined that the high availability status of the high availability device group where the dual-machine cluster deployment device is located is available.

[0034] S104: If the high availability status of the high availability device group is available, the service configuration of the high availability device group is sent to the master device.

[0035] In step S104, only when the high availability status of the high availability device group is available, the service configuration in the high availability device group will be sent to the main device. Figure 3 As shown, the process may include: adding devices to the management and control platform, the devices including primary devices and backup devices; users adding high-availability device groups; referencing devices in high-availability device groups; storing the reference relationship between high-availability device groups and devices in a database; adding business configurations based on the high-availability device groups, and sending the business configurations to the primary devices.

[0036] S105, if the master device fails, a connection request of a new master device is received, and the new master device modifies its own high availability state to a standby device in a master high availability state.

[0037] In step S105, since the controller interacts only with the master device, when the master device fails, the backup device actively changes its state to the master high-availability state, becomes the new master device, and connects to the controller.

[0038] S106: Send the service configuration of the high-availability device group to the new master device.

[0039] In step S106, the controller sends the service configuration of the high-availability device group to the new master device so that the service status of the failed master device and the new master device can be consistent.

[0040] The method for maintaining the consistency of the service configuration of a high-availability device group provided by an embodiment of the present invention is as follows: adding a dual-machine cluster deployment device to the same high-availability device group; receiving the high-availability status of the dual-machine cluster deployment device reported by the master device in the dual-machine cluster deployment device; judging whether the high-availability status of the high-availability device group is available according to the high-availability status of the dual-machine cluster deployment device; if the high-availability status of the high-availability device group is available, the service configuration of the high-availability device group is sent to the master device; if the master device fails, receiving a connection request from a new master device, the new master device is a standby device that modifies its own high-availability status to the master high-availability status; sending the service configuration of the high-availability device group to the new master device. When the master device fails, the standby device becomes the new master device and interacts with the controller to ensure that the service status is consistent with that of the failed master device. The method realizes two devices deployed in a dual-machine cluster with different service configurations. When the master device fails, the two devices can synchronize the service configuration to ensure the consistency of the service configuration of the master and standby devices.

[0041] In some optional embodiments, sending the configuration of the high-availability device group to the new master device may include: comparing the configuration of the high-availability device group with the configuration of the new master device to obtain a differential configuration; and sending the differential configuration to the new master device.

[0042] In the embodiment provided by the present invention, by sending the difference configuration to the new master device, the service configuration of the new master device can be quickly deployed to make it consistent with the service configuration of the failed master device.

[0043] In some optional embodiments, the method for maintaining consistency in the business configuration of a high-availability device group may also include: adding a non-dual-machine cluster-deployed device to the same high-availability device group; and based on modification of a backup device of the non-dual-machine cluster-deployed device in the high-availability device group, modifying the non-dual-machine cluster-deployed device to a dual-machine cluster-deployed device.

[0044] In the embodiment provided by the present invention, when a user issues an instruction to add two devices that are not deployed in a dual-machine cluster to a high-availability device group due to an erroneous operation, after the controller adds the two devices that are not deployed in a dual-machine cluster to a high-availability device group, the two devices that are truly deployed in a dual-machine cluster can be added to the same high-availability device group by modifying the backup device of the non-dual-machine cluster deployed device in the high-availability device group.

[0045] The method for obtaining a dual-machine cluster deployment device provided by the embodiment of the present invention can quickly obtain a dual-machine cluster deployment device by modifying a device in a high-availability device group.

[0046] In some optional embodiments, the method for maintaining consistency of business configuration of a high-availability device group may also include: obtaining a device selected by a user within the high-availability device group; sending the business configuration of the high-availability device group to the device selected by the user within the high-availability device group; and deleting information of the high-availability device group from a database.

[0047] In the embodiment provided by the present invention, the process of deleting a high-availability device group is as follows: Figure 4 As shown, the process may include: querying based on the identity code of the high-availability device group to determine whether the high-availability device group exists in the database; if the high-availability device group exists in the database, determining whether there are devices in the high-availability device group, and if the high-availability device group does not exist in the database, the high-availability device group deletion fails; if there are devices in the high-availability device group, migrating the business configuration of the device group to the devices in the high-availability device group selected by the user, removing another device in the high-availability device group, deleting the high-availability device group, and deleting the policy set in the high-availability device group, and the high-availability device group deletion is successful; if there are no devices in the high-availability device group, directly deleting the information of the high-availability device group in the database, deleting the policy set in the high-availability device group, and the high-availability device group deletion is successful.

[0048] The method for deleting a high-availability device group provided by the embodiment of the present invention can migrate the service configuration in the high-availability device group to a device in the group before deleting the high-availability device group. Although the high-availability device group is deleted, the service configuration in the high-availability device group is retained.

[0049] In some optional embodiments, based on the modification of the backup device of the non-dual-machine cluster deployed device in the high-availability device group, the non-dual-machine cluster deployed device is modified to a dual-machine cluster deployed device, which can include: after modifying the name of the high-availability device group, querying in the database according to the identity identification code of the high-availability device group to obtain the main device and backup device of the non-dual-machine cluster deployed device in the high-availability device group; obtaining the first backup device that is deployed as a single machine outside the high-availability device group and constitutes a dual-machine cluster deployment with the main device of the non-dual-machine cluster deployed device; and modifying the backup device of the non-dual-machine cluster deployed device according to the first backup device and the main device of the non-dual-machine cluster deployed device to modify the non-dual-machine cluster deployed device to a dual-machine cluster deployed device.

[0050] In the embodiment provided by the present invention, based on the modification of the standby device of the non-dual-machine cluster deployment device in the high-availability device group, the process of modifying the non-dual-machine cluster deployment device to the dual-machine cluster deployment device is as follows: Figure 5As shown, the process may include: checking whether the name and number of devices of the high-availability device group are legal. If the name and number of devices of the high-availability device group are illegal, the modification of the high-availability device group fails; if the name and number of devices of the high-availability device group are legal, querying whether the high-availability device group exists in the database according to the identification code of the high-availability device group. If the high-availability device group does not exist in the database, the modification of the high-availability device group fails; if the high-availability device group exists in the database, modifying the name of the high-availability device group, querying the master device and standby device of the non-dual-machine cluster deployment device in the high-availability device group according to the identification code of the high-availability device group; if the master device of the non-dual-machine cluster deployment device is not in the device of the new high-availability device group, the modification of the high-availability device group fails because the high-availability device group does not allow the modification of the master device; if the master device of the non-dual-machine cluster deployment device is in the device of the new high-availability device group, judging whether the standby device of the non-dual-machine cluster deployment device and the first standby device of the standby device deployed on a single machine outside the high-availability device group and constituting the standby device of the dual-machine cluster deployment with the master device of the non-dual-machine cluster deployment device are the same, if the non-dual-machine The standby device of the cluster deployment device is the same as the first standby device, and the high availability device group is modified successfully; if the standby device of the non-dual-machine cluster deployment device is not the same as the first standby device, the standby device of the non-dual-machine cluster deployment device is moved out of the high availability device group, and the first standby device is moved into the high availability device group, and it is determined whether the serial number of the first standby device is the same as the serial number of the standby device in the high availability information reported by the master device of the non-dual-machine cluster deployment device. If the serial number of the first standby device is not the same as the serial number of the standby device in the high availability information reported by the master device of the non-dual-machine cluster deployment device, the state of the first standby device is set to INIT, and the system log is recorded, and the high availability device group is modified successfully; if the serial number of the first standby device is the same as the serial number of the standby device in the high availability information reported by the master device of the non-dual-machine cluster deployment device, it is determined whether the first standby device has a business configuration. If the first standby device does not have a business configuration, its state is changed to BACKUP, and the high availability device group is modified successfully; if the first standby device has a business configuration, its business configuration is cleared, its state is changed to BACKUP, and the high availability device group is modified successfully. The method for obtaining a dual-machine cluster deployment device provided by the embodiment of the present invention can transform a non-dual-machine cluster deployment device into a dual-machine cluster deployment device by modifying a backup device of the non-dual-machine cluster deployment device.

[0051] In some optional embodiments, after receiving the high availability status of the dual-machine cluster deployment device reported by the master device in the dual-machine cluster deployment device, the method may further include: storing the high availability status of the dual-machine cluster deployment device in a database.

[0052] In the embodiment provided by the present invention, the high availability status is stored in a database so as to facilitate querying the high availability status of the high availability device group at any time.

[0053] Figure 6 The following is a schematic diagram of the state change process of the high-availability device group provided by the present invention. Figure 6 As shown, the process may include: when the master device reports the high availability status information of the dual-machine cluster deployment device, since the controller is only connected to the master device, it is necessary to determine whether the master device exists in the high availability group; if the master device exists in the high availability device group, determine the number of devices in the high availability device group; if the master device does not exist in the high availability device group, ignore the reported high availability status information and end; if the number of devices in the high availability device group is 1, determine whether the old high availability status of the high availability device group is available; if it is available, store the reported high availability status in the database; if it is unavailable, modify the high availability status of the high availability device group. The available status is available and is recorded in the system log. The reported high availability status is stored in the database. If the number of devices in the high availability device group is 2, determine whether the reported high availability status information contains a backup device. If there is a backup device in the reported high availability status information, determine whether the reported main device is the same as the main device in the high availability device group. If there is no backup device in the reported high availability status information, determine whether the status of the high availability device group is available. If so, modify the status of the high availability device group to unavailable and record it in the system log. Store the reported high availability status in the database. If not, modify the reported high availability status to unavailable. The available status is stored in the database; if the reported main device is different from the main device in the high-availability device group, determine whether the status of the high-availability device group is available. If so, modify the status of the high-availability device group to unavailable and record it in the system log, and store the reported high-availability status in the database. If not, store the reported high-availability status in the database; if the reported main device is the same as the main device in the high-availability device group, determine whether the backup device in the reported high-availability status information is the same as the backup device in the high-availability device group; if the backup device in the reported high-availability status information is the same as the backup device in the high-availability device group , determine whether the status of the high-availability device group is available, if so, store the reported high-availability status in the database, if not, modify the status of the high-availability device group to available, and record it in the system log, and store the reported high-availability status in the database; if the backup device in the reported high-availability status information is different from the backup device in the high-availability device group, determine whether the status of the high-availability device group is available, if so, modify the status of the high-availability device group to unavailable, and record it in the system log, and store the reported high-availability status in the database, if not, store the reported high-availability status in the database.

[0054] Figure 7 The present invention provides a schematic diagram of the structure of an embodiment of a device for maintaining the consistency of service configuration of a high-availability device group. Figure 7 As shown, the device for maintaining the consistency of service configuration of a high-availability device group includes:

[0055] An adding module 701 is used to add a dual-machine cluster deployment device to the same high-availability device group;

[0056] The first receiving module 702 is used to receive the high availability status of the dual-machine cluster deployment device reported by the master device in the dual-machine cluster deployment device;

[0057] A judgment module 703 is used to judge whether the high availability status of the high availability device group is available according to the high availability status of the dual-machine cluster deployment device;

[0058] The first sending module 704 is used to send the service configuration of the high availability device group to the main device if the high availability status of the high availability device group is available;

[0059] The second receiving module 705 is used to receive a connection request from a new master device if the master device fails, and the new master device is a standby device that changes its high availability state to a master high availability state;

[0060] The second sending module 706 is used to send the configuration of the high-availability device group to the new master device.

[0061] Optionally, the second sending module 706 includes:

[0062] A comparison unit, used to compare the configuration of the high-availability device group with the configuration of the new master device to obtain a difference configuration;

[0063] The sending unit is used to send the difference configuration to the new master device.

[0064] Optionally, the device further includes:

[0065] The adding module 701 is further used to add a non-dual-machine cluster deployment device to the same high-availability device group;

[0066] The modification module is used to modify the non-dual-machine cluster deployment device into a dual-machine cluster deployment device based on the modification of the standby device of the non-dual-machine cluster deployment device in the high-availability device group.

[0067] Optionally, the device further includes:

[0068] An acquisition module is used to acquire a device selected by a user in a high-availability device group;

[0069] A sending module, used to send the service configuration of the high-availability device group to the device selected by the user;

[0070] The deletion module is used to delete the information of the high-availability device group in the database.

[0071] Optionally, modify the module to include:

[0072] A query unit, which is used to query in a database according to an identification code of the high-availability device group after modifying the name of the high-availability device group, and obtain a master device and a backup device of a non-dual-machine cluster deployment device in the high-availability device group;

[0073] An acquisition unit, used for acquiring a first standby device deployed on a single machine outside a high-availability device group and forming a dual-machine cluster deployment with a master device of a non-dual-machine cluster deployment device;

[0074] The modification unit is used to modify the backup device of the non-dual-machine cluster deployment device according to the first backup device and the master device and backup device of the non-dual-machine cluster deployment device, and modify the non-dual-machine cluster deployment device into a dual-machine cluster deployment device.

[0075] Optionally, the device further includes:

[0076] The storage module is used to store the high availability status of the high availability device group in a database.

[0077] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 The electronic device may include: a processor 801, a communications interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communications interface 802 and the memory 803 communicate with each other through the communication bus 804. The processor 801 may call the logic instructions in the memory 803 to execute the following method: adding a dual-machine cluster deployment device to the same high-availability device group; receiving the high-availability status of the dual-machine cluster deployment device reported by the master device in the dual-machine cluster deployment device; judging whether the high-availability status of the high-availability device group is available according to the high-availability status of the dual-machine cluster deployment device; if the high-availability status of the high-availability device group is available, sending the service configuration of the high-availability device group to the master device; if the master device fails, receiving a connection request of a new master device, the new master device is a standby device that modifies its own high-availability status to the main high-availability status; sending the service configuration of the high-availability device group to the new master device.

[0078] In addition, the logic instructions in the above-mentioned memory 803 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0079] On the other hand, an embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the method for maintaining the consistency of the service configuration of a high-availability device group provided in the above embodiments, for example including: adding a dual-machine cluster deployment device to the same high-availability device group; receiving the high availability status of the dual-machine cluster deployment device reported by the master device in the dual-machine cluster deployment device; judging whether the high availability status of the high-availability device group is available based on the high availability status of the dual-machine cluster deployment device; if the high availability status of the high-availability device group is available, sending the service configuration of the high-availability device group to the master device; if the master device fails, receiving a connection request from a new master device, the new master device is a standby device that modifies its own high availability status to the master high availability status; sending the service configuration of the high-availability device group to the new master device.

[0080] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the method for maintaining the consistency of the service configuration of a high-availability device group provided in the above-mentioned embodiments, for example, including: adding a dual-machine cluster deployment device to the same high-availability device group; receiving the high availability status of the dual-machine cluster deployment device reported by the master device in the dual-machine cluster deployment device; judging whether the high availability status of the high-availability device group is available based on the high availability status of the dual-machine cluster deployment device; if the high availability status of the high-availability device group is available, sending the service configuration of the high-availability device group to the master device; if the master device fails, receiving a connection request from a new master device, the new master device is a backup device that modifies its own high availability status to the master high availability status; sending the service configuration of the high-availability device group to the new master device.

[0081] The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without paying creative labor.

[0082] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for maintaining service configuration consistency of a high-availability device group, applied to a controller, characterized in that: include: Add the dual-machine cluster deployment devices to the same high-availability device group; Receiving a high availability status of the dual-machine cluster deployment device reported by a master device in the dual-machine cluster deployment device; According to the high availability status of the dual-machine cluster deployment device, determine whether the high availability status of the high availability device group is available; wherein, when the high availability status of the master device and the backup device of the dual-machine cluster deployment device are both available, determine that the high availability status of the high availability device group where the dual-machine cluster deployment device is located is available; If the high availability state of the high availability device group is available, sending the service configuration of the high availability device group to the master device; If the master device fails, a connection request of a new master device is received, and the new master device is a standby device that changes its high availability state to a master high availability state; The service configuration of the high-availability device group is issued to the new master device.

2. The method for maintaining service configuration consistency of a high-availability device group according to claim 1, characterized in that: The sending the configuration of the high-availability device group to the new master device includes: Comparing the configuration of the high-availability device group with the configuration of the new master device to obtain a differential configuration; The difference configuration is sent to the new master device.

3. The method for maintaining service configuration consistency of a high-availability device group according to claim 1, characterized in that: Also includes: Adding non-dual-machine cluster deployment devices to the same high-availability device group; Based on the modification of the standby device of the non-dual-machine cluster deployment device in the high-availability device group, the non-dual-machine cluster deployment device is modified to the dual-machine cluster deployment device.

4. The method for maintaining service configuration consistency of a high-availability device group according to claim 1, characterized in that: Also includes: Obtaining a device selected by a user in the high-availability device group; Sending the service configuration of the high-availability device group to the device selected by the user; The information of the high-availability device group is deleted from the database.

5. The method for maintaining service configuration consistency of a high-availability device group according to claim 3, characterized in that: The modifying of the standby device of the non-dual-machine cluster deployment device in the high-availability device group to the dual-machine cluster deployment device includes: After the name of the high-availability device group is modified, a query is performed in a database according to the identity code of the high-availability device group to obtain the master device and the backup device of the non-dual-machine cluster deployment device in the high-availability device group; Acquire a first standby device deployed on a single machine outside the high-availability device group and forming a dual-machine cluster deployment with a master device of the non-dual-machine cluster deployment device; According to the first backup device and the master device and the backup device of the non-dual-machine cluster deployment device, the backup device of the non-dual-machine cluster deployment device is modified to modify the non-dual-machine cluster deployment device to the dual-machine cluster deployment device.

6. The method for maintaining service configuration consistency of a high-availability device group according to any one of claims 1 to 5, characterized in that: After receiving the high availability status of the dual-machine cluster deployment device reported by the master device in the dual-machine cluster deployment device, the method further includes: The high availability status of the dual-machine cluster deployment device is stored in a database.

7. A device for maintaining service configuration consistency of a high-availability device group, characterized in that: include: Add module to add dual-machine cluster deployment devices to the same high-availability device group; A first receiving module is used to receive the high availability status of the dual-machine cluster deployment device reported by the master device in the dual-machine cluster deployment device; A judgment module is used to judge whether the high availability status of the high availability device group is available according to the high availability status of the dual-machine cluster deployment device; wherein, when the high availability status of the master device and the backup device of the dual-machine cluster deployment device are both available, it is determined that the high availability status of the high availability device group where the dual-machine cluster deployment device is located is available; A first sending module, configured to send the service configuration of the high availability device group to the master device if the high availability state of the high availability device group is available; A second receiving module is used to receive a connection request from a new master device if the master device fails, and the new master device is a standby device that changes its high availability state to a master high availability state; The second sending module is used to send the configuration of the high-availability device group to the new master device.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method for maintaining the consistency of the service configuration of a high-availability device group as described in any one of claims 1 to 6 are implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for maintaining the consistency of service configuration of a high-availability device group as described in any one of claims 1 to 6 are implemented.

10. A computer program product having executable instructions stored thereon, characterized in that: When the instruction is executed by the processor, the processor implements the steps of the method for maintaining the consistency of the service configuration of a high-availability device group as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Dynamic management method for improving high availability of online clustering group

    CN103152416A

  • Data backup method and device

    CN107038094A

  • Simplified high-availability Zookeeper cluster deployment method and simplified high-availability Zookeeper cluster deployment system

    CN112104727A

  • Highly available cloud-based database services

    US20200050522A1