A method, system, device and medium for lower-layer node switching management service
By judging the status by the lower layer nodes themselves and providing management services using virtual IP, the problem of waste resources of upper layer nodes is solved, and the handover rate and data transmission reliability and security are improved.
Patent Information
- Application Number
- CN202210333332.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2042-03-31
AI Technical Summary
In an out-of-band management system, the upper-layer nodes in the prior art require multiple interfaces to listen when obtaining management services of lower-layer nodes, resulting in waste of resources from the upper-layer platform, affecting the reliability, accuracy and security of switching efficiency and data transmission.
The lower-level nodes judge their working status by themselves and provide management services to the upper-level management platform through virtual IP. There is no need for upper-level node monitoring. They use heartbeat network to obtain priority and deploy monitoring services to automatically switch main and backup nodes, save resources from upper-level platform and improve switching speed and data transmission efficiency.
It realizes the reliability, accuracy and real-time nature of data transmission, saves resources from the upper-level platform, and improves the efficiency and security of data transmission.
Smart Images

Figure CN114826905B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automatic switching management services for lower-level nodes in an out-of-band management system, and in particular to a method, system, device and medium for switching management services for lower-level nodes. Background Art
[0002] Out-of-band management refers to the management of server devices through a dedicated network channel, which separates management data from business data and establishes an independent channel for management data. In this channel, only management data and statistical information are transmitted. The separation of management data from business data can improve management efficiency and reliability, and is also conducive to improving the security of management data.
[0003] In the case of a server cluster, being able to accurately monitor and obtain the working status and resource usage of each node is the key to ensuring the normal operation of the system. In the prior art, when an upper-layer node obtains the management service of a lower-layer node, the upper-layer node needs to use multiple interfaces to monitor and determine the node in the lower layer that provides the current management service. This method will cause a waste of upper-layer platform resources and is not conducive to improving switching efficiency. Summary of the invention
[0004] In view of this, the present invention proposes a method, system, device and medium for switching management services of lower-level nodes. Among them, the method for switching management services of lower-level nodes proposed by the present invention is a method that can automatically switch to provide management services without upper-level switching when the main and standby out-of-band management systems provide management services through the network. The lower-level nodes determine their own working status as master nodes or slave nodes by themselves, and actively provide their own services to the upper-level management platform using a virtual IP. There is no need to use multiple interfaces on the upper-level platform to monitor and judge the current management service providing node, which saves upper-level platform resources, improves the switching rate, ensures the reliability, accuracy and real-time performance of data transmission, and improves the efficiency and security of data transmission.
[0005] Based on the above purpose, one aspect of an embodiment of the present invention provides a method for switching management services of lower-level nodes, comprising the following steps: obtaining the corresponding priority of each lower-level node in a lower-level node set; deploying a monitoring service on each lower-level node in the lower-level node set; obtaining the lower-level node with the highest priority in the lower-level node set according to the corresponding priority of each lower-level node in the lower-level node set; setting the lower-level node with the highest priority as the master node in the lower-level node set, and setting the remaining lower-level nodes as slave nodes; in response to the current node being the master node, providing a virtual IP to the upper-level node through the monitoring service to provide management services to the upper-level node.
[0006] In some embodiments, obtaining the corresponding priority of each lower-level node in the lower-level node set includes: obtaining the priority in the lower-level node set through a heartbeat network.
[0007] In some embodiments, deploying a monitoring service on each of the lower-level nodes in the lower-level node set includes: deploying a load balancing management software on each of the lower-level nodes in the lower-level node set to deploy a monitoring service for each of the lower-level nodes.
[0008] In some embodiments, providing the virtual IP to the upper-level node through the monitoring service includes: monitoring the actual physical network card mapped to the virtual IP of the current node through the load balancing management software.
[0009] In some embodiments, providing the virtual IP to the upper-level node through the monitoring service includes: switching the virtual IP service of the current node to the local through the load balancing management software to provide services to the upper-level node.
[0010] In some embodiments, setting the lower-level node with the highest priority as the master node in the lower-level node set and the remaining lower-level nodes as slave nodes includes: setting the lower-level node with the highest priority as the master node in the lower-level node set, sorting the priorities of the remaining lower-level nodes in descending order, and setting the remaining lower-level nodes as slave nodes.
[0011] Another aspect of an embodiment of the present invention also provides a system for lower-level node switching management services, comprising the following modules: a first module, configured to obtain the corresponding priority of each lower-level node in a lower-level node set; a second module, configured to deploy a monitoring service on each lower-level node in the lower-level node set; a third module, configured to obtain the lower-level node with the highest priority in the lower-level node set according to the corresponding priority of each lower-level node in the lower-level node set; a fourth module, configured to set the lower-level node with the highest priority as the master node in the lower-level node set, and set the remaining lower-level nodes as slave nodes; and a fifth module, configured to provide a virtual IP to the upper-level node through the monitoring service in response to the current node being the master node, so as to provide management services to the upper-level node.
[0012] In some embodiments, the first module is configured to: obtain the priority in the lower-level node set through the heartbeat network.
[0013] Another aspect of an embodiment of the present invention provides a computer device, comprising at least one processor; and a memory, wherein the memory stores computer instructions executable on the processor, and the instructions implement the steps of any of the above methods when executed by the processor.
[0014] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements any of the above method steps when executed by a processor.
[0015] The present invention has at least the following beneficial effects: a method, system, device and medium for switching management services of a lower-layer node proposed in the present invention, wherein the method for switching management services of a lower-layer node proposed in the present invention determines the working status of its own node based on the lower-layer node itself, and the main node actively provides management services to the upper-layer node based on the lower-layer node's self-determination. The upper-layer node does not need to obtain the management service of the lower-layer node by monitoring the lower-layer node, which is beneficial to saving upper-layer platform resources, improving switching rate, ensuring the reliability, accuracy and real-time performance of data transmission, and improving the efficiency and security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in 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 in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A schematic diagram of an embodiment of a method for lower-layer node switching management service provided by the present invention;
[0018] Figure 2 A schematic diagram of another embodiment of a method for lower-layer node switching management service provided by the present invention;
[0019] Figure 3 A schematic diagram of an embodiment of a system for lower-layer node switching management services provided by the present invention;
[0020] Figure 4 A schematic diagram of an embodiment of a computer device provided by the present invention;
[0021] Figure 5 A schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0022] The following describes embodiments of the present invention. However, it should be understood that the disclosed embodiments are merely examples and other embodiments can take various alternative forms.
[0023] In addition, it should be noted that all expressions using "first" and "second" in the embodiments of the present invention are intended to distinguish two entities with the same name but not the same or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one. The terms "include", "comprise" or any other variation thereof are intended to cover non-exclusive inclusions, so that a process, method, article or device that includes a series of elements includes not only those elements, but also elements that are not explicitly listed or inherent to these processes, methods, articles or devices.
[0024] One or more embodiments of the present application will be described below with reference to the accompanying drawings.
[0025] Based on the above objectives, a first aspect of an embodiment of the present invention provides an embodiment of a method for switching management services of a lower-layer node. Figure 1 FIG. 2 is a schematic diagram showing an embodiment of a method for lower-layer node switching management service provided by the present invention. Figure 1 As shown, a method for switching management services of a lower node in an embodiment of the present invention includes the following steps:
[0026] S1. Obtain the corresponding priority of each lower-level node in the lower-level node set;
[0027] S2. Deploy a monitoring service on each of the lower-layer nodes in the lower-layer node set;
[0028] S3, obtaining the lower-layer node with the highest priority in the lower-layer node set according to the corresponding priority of each lower-layer node in the lower-layer node set;
[0029] S4, setting the lower-layer node with the highest priority as the master node in the lower-layer node set, and setting the remaining lower-layer nodes to be slave nodes;
[0030] S5. In response to the current node being the master node, provide a virtual IP to an upper-level node through the monitoring service to provide management services to the upper-level node.
[0031] Figure 2 FIG. 2 is a schematic diagram of another embodiment of a method for lower-layer node switching management service provided by the present invention. Figure 2As shown, a method for switching management services of lower nodes in an embodiment of the present invention includes: in a lower node set in a master-slave external management system, the lower nodes in the set automatically interact with each other in priority, and obtain the priority of each lower node in the set of lower nodes. According to the priority of the lower nodes, the lower nodes with the highest priority are sorted from high to low, and the lower nodes with the highest priority are set as the master node, and the priority of the master node is 1 by default, and the priorities of the remaining nodes are arranged backward in order, and the remaining nodes are automatically set as slave nodes. When the lower nodes are identified in priority, the heartbeat network can be used to interact with each other to identify their own priorities. If the node itself is the lower node with the highest priority, it will automatically identify itself as the master node and provide services to the upper layer. At the same time, a monitoring service is deployed in each lower node to monitor the priority of each lower node. In practical applications, the monitoring service can realize the monitoring service of each lower node by configuring load balancing software in each lower node. The priorities of the lower nodes in the set of lower nodes are interacted through the heartbeat network to obtain the lower node with the highest priority, and it is set as the master node. The load balancing software configured by the master node monitors the working status of the master node, and switches the virtual IP service of the node to the local physical network card, and provides services to the upper layer through the virtual IP. When the master node in the lower node set is switched, the priority can be re-interacted through the heartbeat network to obtain a new master node in the lower node set, and the virtual IP of the new master node is provided to the upper node, thereby actively providing services to the upper layer.
[0032] Based on the above objectives, a second aspect of an embodiment of the present invention provides a system for lower-layer node switching management services. Figure 3 FIG. 2 is a schematic diagram of an embodiment of a system for lower-layer node switching management services provided by the present invention. Figure 3 As shown, a system for lower-level node switching management services provided by the present invention includes the following modules: a first module 011, configured to obtain the corresponding priority of each lower-level node in a lower-level node set; a second module 012, configured to deploy a monitoring service in each lower-level node in the lower-level node set; a third module 013, configured to obtain the lower-level node with the highest priority in the lower-level node set according to the corresponding priority of each lower-level node in the lower-level node set; a fourth module 014, configured to set the lower-level node with the highest priority as the master node in the lower-level node set, and set the remaining lower-level nodes as slave nodes; and a fifth module 015, configured to provide a virtual IP to the upper-level node through the monitoring service in response to the current node being the master node, so as to provide management services to the upper-level node.
[0033] The first module 011 is configured to obtain priorities in the lower-level node set through a heartbeat network.
[0034] Based on the above objectives, a third aspect of an embodiment of the present invention provides a computer device, Figure 4 FIG. 2 is a schematic diagram of an embodiment of a computer device provided by the present invention. Figure 4 As shown, an embodiment of a computer device provided by the present invention includes the following modules: at least one processor 021; and a memory 022, wherein the memory 022 stores computer instructions 023 that can be executed on the processor 021, and the computer instructions 023 implement the steps of any of the above methods when executed by the processor 021.
[0035] The present invention also provides a computer-readable storage medium. Figure 5 FIG. 2 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 5 As shown, the computer-readable storage medium 031 stores a computer program 032 that performs the above method when executed by a processor.
[0036] Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program of the method for setting system parameters can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiments can achieve the same or similar effects as the corresponding above-mentioned arbitrary method embodiments.
[0037] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a processor, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the above functions defined in the method disclosed in the embodiment of the present invention are performed.
[0038] In addition, the above method steps and system units can also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.
[0039] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.
[0040] In one or more exemplary designs, the function can be implemented in hardware, software, firmware or any combination thereof. If implemented in software, the function can be stored on a computer-readable medium or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include computer storage media and communication media, and the communication media include any media that helps to transmit a computer program from one location to another. The storage medium can be any available medium that can be accessed by a general or special computer. As an example and not limiting, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of an instruction or data structure and can be accessed by a general or special computer or a general or special processor. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (D0L) or wireless technologies such as infrared, radio and microwaves are used to send software from a website, server or other remote source, the above-mentioned coaxial cable, optical fiber cable, twisted pair, D0L or wireless technologies such as infrared, radio and microwaves are all included in the definition of the medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, Blu-ray disc, wherein disks usually reproduce data magnetically, while optical discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0041] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0042] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.
[0043] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0044] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0045] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A method for switching management services of a lower node, characterized in that: include: Get the corresponding priority of each lower node of the lower node set; Deploy a monitoring service on each of the lower-layer nodes in the lower-layer node set; Obtaining the lower-layer node with the highest priority in the lower-layer node set according to the corresponding priority of each lower-layer node in the lower-layer node set; Set the lower-layer node with the highest priority as the master node in the lower-layer node set, and set the remaining lower-layer nodes as slave nodes; In response to the current node being the master node, providing a virtual IP to an upper-level node through the monitoring service to provide management services to the upper-level node; The obtaining of the corresponding priority of each lower-layer node in the lower-layer node set comprises: obtaining the priority in the lower-layer node set through a heartbeat network; The heartbeat network allows the lower-layer nodes in the lower-layer node set to interactively identify their own priorities in pairs. If the node itself is the lower-layer node with the highest priority, it automatically identifies itself as the main node and provides services to the upper layer; The deploying a monitoring service on each of the lower-layer nodes in the lower-layer node set includes: deploying a load balancing management software on each of the lower-layer nodes in the lower-layer node set to deploy a monitoring service for each of the lower-layer nodes; Providing the virtual IP to the upper node through the monitoring service includes: monitoring the actual physical network card mapped to the virtual IP of the current node through the load balancing management software; The virtual IP service of the current node is switched to the local node through the load balancing management software to provide services to the upper-level node.
2. The method for lower-layer node switching management service according to claim 1, characterized in that: The step of setting the lower-level node with the highest priority as the master node in the lower-level node set and the remaining lower-level nodes as slave nodes includes: setting the lower-level node with the highest priority as the master node in the lower-level node set, sorting the priorities of the remaining lower-level nodes in descending order, and setting the remaining lower-level nodes as slave nodes.
3. A system for lower-layer node switching management services, characterized in that: include: A first module is configured to obtain a corresponding priority of each lower-level node of the lower-level node set; A second module is configured to deploy a monitoring service on each of the lower-level nodes in the lower-level node set; A third module is configured to obtain the lower-level node with the highest priority in the lower-level node set according to the corresponding priority of each lower-level node in the lower-level node set; A fourth module is configured to set the lower-layer node with the highest priority as the master node in the lower-layer node set, and set the remaining lower-layer nodes to be slave nodes; as well as A fifth module is configured to provide a virtual IP to an upper node through the monitoring service in response to the current node being a master node, so as to provide a management service to the upper node; The first module is configured to: Obtaining priorities in lower-level nodes through the heartbeat network; And a module for performing the following functions: through the heartbeat network, the lower-layer nodes in the lower-layer node set mutually identify their own priorities, and if the node itself is the lower-layer node with the highest priority, automatically identify itself as the main node and provide services to the upper layer; The second module is further used to: deploy load balancing management software on each of the lower-level nodes in the lower-level node set, so as to deploy monitoring services for each of the lower-level nodes; The fifth module is further used to: monitor the actual physical network card mapped by the virtual IP of the current node through the load balancing management software; The virtual IP service of the current node is switched to the local node through the load balancing management software to provide services to the upper-level node.
4. A computer device, characterized in that: include: at least one processor; as well as A memory, wherein the memory stores computer instructions executable on the processor, wherein the instructions, when executed by the processor, implement the steps of the method according to any one of claims 1 to 2.
5. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.
