A node information acquisition method, device, apparatus, and storage medium
By creating a queue-based cache management area between the distributed storage management system and the hardware layer, the problem of hardware command backlog is solved, efficient node information acquisition is achieved, and the efficiency of the storage management system is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- JINAN INSPUR DATA TECH CO LTD
- Filing Date
- 2022-10-21
- Publication Date
- 2026-05-29
AI Technical Summary
In existing technologies, distributed storage management systems suffer from a large backlog of hardware commands that can only be executed serially, which consumes system resources and reduces the efficiency of the storage management system.
A queue-based cache management area is created between the distributed storage management system and the hardware layer. Node information is obtained through the cache management area, avoiding direct calls to hardware commands. Pre-defined instruction processing rules are used to process the target information retrieval instructions, thereby achieving efficient return of node information.
This avoids the repetitive accumulation of hardware commands and the waste of system resources, thus improving the efficiency of the storage management system.
Smart Images

Figure CN115509458B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of distributed storage technology, and in particular to a method, apparatus, device, and storage medium for obtaining node information. Background Technology
[0002] In the current era of cloud computing and big data, distributed storage systems are increasingly being applied across various fields. For distributed storage systems, distributed storage management systems provide users with a convenient way to manage the storage system and view hardware and software information as well as alarm information. Typically, a distributed storage management system needs to collect information from numerous nodes in the cluster, such as power supply, fans, network cards, CPU (Central Processing Unit), memory, disk, network, file system, and the status of various services. Based on the collected information, it summarizes and analyzes it to provide a visual and user-friendly display of the health status and various alarm information for the entire cluster system.
[0003] Because this information is obtained through commands provided by hardware modules, most of which can only be executed serially, and various modules in the storage management system use multiple threads to retrieve this information in order to maximize the update frequency of this type of information and achieve better management of the cluster hardware, the system frequently experiences a backlog of hardware commands due to the serial execution of these hardware commands and the multi-threaded nature of the storage management system. This consumes valuable system resources and severely reduces the efficiency of the storage management system.
[0004] In summary, how to avoid the accumulation of a large number of repetitive hardware commands and the waste of system resources, and improve the efficiency of the storage management system, is a problem that needs to be solved. Summary of the Invention
[0005] In view of this, the purpose of this invention is to provide a method, apparatus, device, and storage medium for acquiring node information, which can avoid the accumulation of a large number of repetitive hardware commands and the waste of system resources, thereby improving the efficiency of the storage management system. The specific solution is as follows:
[0006] In a first aspect, this application discloses a method for obtaining node information, applied to a pre-created queue-based cache management area, comprising:
[0007] Obtain the target information retrieval command currently sent by the distributed storage management system;
[0008] Obtain the preset instruction processing rules of the cache management area; wherein, the preset instruction processing rules are rules used to parse the target information retrieval instruction and to judge and process the node information contained in the parsed target information retrieval instruction;
[0009] The target information acquisition instruction is processed using the preset instruction processing rules to return the node information to the distributed storage system.
[0010] Optionally, processing the target information acquisition instruction using the preset instruction processing rules to return the node information to the distributed storage system includes:
[0011] If the cache management area already contains node information corresponding to the target information retrieval instruction, then the node information is directly returned to the distributed storage system.
[0012] Optionally, processing the target information acquisition instruction using the preset instruction processing rules to return the node information to the distributed storage system includes:
[0013] If the node information is not present in the cache management area, the system waits for the target process that is acquiring the node information in the cache management area to finish running, and then returns the node information to the distributed storage system after the target process finishes running.
[0014] Optionally, after returning the node information to the distributed storage system after the target process finishes running, the method further includes:
[0015] The node information is cached so that the node information contained in the parsed other information retrieval instructions can be compared with the node information; wherein, the other information retrieval instructions are other information retrieval instructions besides the target information retrieval instruction.
[0016] Optionally, processing the target information acquisition instruction using the preset instruction processing rules to return the node information to the distributed storage system includes:
[0017] When the node information is not present in the cache management area, and there is no target process in the cache management area that is acquiring the node information, a new process is started and hardware commands are called to the hardware layer to acquire the node information of each node in the cluster, and then the node information is returned to the distributed storage system.
[0018] Optionally, after starting a new process and calling hardware commands at the hardware layer to obtain node information of each node in the cluster, and then returning the node information to the distributed storage system, the method further includes:
[0019] The node information is cached so that the node information contained in the parsed other information retrieval instructions can be compared with the node information; wherein, the other information retrieval instructions are other information retrieval instructions besides the target information retrieval instruction.
[0020] Optionally, obtaining the target information acquisition instruction currently sent by the distributed storage management system includes:
[0021] Obtain the target information currently sent by the distributed storage management system, including any one or a combination of several of the following: power supply, fan, network card, CPU, memory, disk, network information, file system, and service status.
[0022] Secondly, this application discloses a node information acquisition device, applied to a pre-created queue-based cache management area, comprising:
[0023] The information acquisition instruction acquisition module is used to acquire the target information acquisition instruction currently sent by the distributed storage management system.
[0024] A preset instruction processing rule acquisition module is used to acquire preset instruction processing rules of the cache management area; wherein, the preset instruction processing rule is a rule used to parse the target information acquisition instruction and to judge and process the node information contained in the parsed target information acquisition instruction;
[0025] The node information return module is used to process the target information acquisition instruction using the preset instruction processing rules, so as to return the node information to the distributed storage system.
[0026] Thirdly, this application discloses an electronic device, which includes a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the node information acquisition method as described above.
[0027] Fourthly, this application discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the node information acquisition method as described above.
[0028] The node information acquisition method provided in this application is applied to a pre-created queue-based cache management area. First, it acquires the target information acquisition instruction currently sent by the distributed storage management system. Then, it acquires the preset instruction processing rules of the cache management area. These preset instruction processing rules are used to parse the target information acquisition instruction and determine the node information contained in the parsed instruction. Finally, it processes the target information acquisition instruction using the preset instruction processing rules to return the node information to the distributed storage system. As can be seen, unlike existing technologies that directly call hardware commands from the distributed storage management system to the hardware layer to acquire information, this application creates a queue-based cache management area between the distributed storage management system and the hardware layer, acquiring node information from this cache management area. This method avoids the accumulation of numerous repetitive hardware commands and the waste of system resources in the distributed storage management system, thus improving the efficiency of the distributed storage management system.
[0029] In addition, the node information acquisition device, equipment and storage medium provided in this application correspond to the above-mentioned node information acquisition method and have the same effect. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0031] Figure 1 This is a flowchart of a node information acquisition method disclosed in this application;
[0032] Figure 2 This is a logical diagram of a node information acquisition method disclosed in this application;
[0033] Figure 3 This is a flowchart of a specific node information acquisition method disclosed in this application;
[0034] Figure 4 This is a schematic diagram of the structure of a node information acquisition device disclosed in this application;
[0035] Figure 5 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation
[0036] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0037] Currently, information about numerous nodes in a cluster is obtained through commands provided by hardware modules. Most of these commands can only be executed serially. However, various modules within the storage management system utilize multiple threads to retrieve this information, aiming to maximize the update frequency of this information and achieve better cluster hardware management. Because these hardware commands can only run serially, while the storage management system operates on a multi-threaded basis, a large backlog of hardware commands frequently occurs, consuming valuable system resources and severely reducing the efficiency of the storage management system.
[0038] To address this, this application provides a node information acquisition scheme that avoids the accumulation of numerous repetitive hardware commands and the waste of system resources, thereby improving the efficiency of the storage management system.
[0039] This invention discloses a method for obtaining node information, see [link to relevant documentation]. Figure 1 As shown, the method, applied to a pre-created queue-based cache management area, includes:
[0040] Step S11: Obtain the target information retrieval instruction currently sent by the distributed storage management system.
[0041] In this embodiment, by adding a queue-based cache management area between the distributed storage management system and the hardware layer, the storage management system no longer directly calls hardware commands to obtain information, but instead obtains it from the cache module. Since the storage management system typically calls hardware commands using multiple threads, the pre-created cache management area obtains the target information retrieval instruction currently sent by the distributed storage management system and analyzes and judges the current information retrieval instruction.
[0042] It is understandable that the target information retrieval instruction is primarily responsible for collecting information from numerous nodes in the cluster. Therefore, the process of obtaining the target information retrieval instruction currently sent by the distributed storage management system includes: obtaining the target information retrieval instruction currently sent by the distributed storage management system, which includes any one or more combinations of power supply, fan, network card, CPU, memory, disk, network information, file system, and service status. The cache management area determines which node information the storage management system needs by receiving the target information retrieval instruction from the storage management system.
[0043] Step S12: Obtain the preset instruction processing rules of the cache management area; wherein, the preset instruction processing rules are rules used to parse the target information retrieval instruction and to judge and process the node information contained in the parsed target information retrieval instruction.
[0044] In this embodiment of the application, the cache management area is pre-set with instruction processing rules for different situations. These rules are mainly used to parse the target information acquisition instructions sent by the storage management system and to further judge and process the node information required by the storage management system after parsing.
[0045] Step S13: Process the target information acquisition instruction using the preset instruction processing rules to return the node information to the distributed storage system.
[0046] In the first specific implementation, if the cache management area already contains the most recently acquired data, the data can be directly returned to the storage management system. Specifically, if the cache management area already contains node information corresponding to the target information retrieval instruction, the node information is directly returned to the distributed storage system.
[0047] In the second specific implementation, the cache management area does not yet cache the most recent data, but a process is currently acquiring it. In this scenario, it is necessary to wait for the process to finish executing and return the data to the storage management system. Specifically, when the node information is not present in the cache management area, the system waits for the target process acquiring the node information in the cache management area to finish running, and then returns the node information to the distributed storage system after the target process finishes running. It should be noted that after the process finishes executing and returns the data to the storage management system, a copy of the data is also cached for future use. That is, the node information is cached so that the node information can be compared with the node information contained in the parsed other information acquisition instructions; wherein, the other information acquisition instructions are information acquisition instructions other than the target information acquisition instruction.
[0048] In the third specific implementation, if the cache management area has not yet cached the most recent data and there is no process currently acquiring it, a new process is started, hardware commands are invoked, and the data is returned to the storage management system after acquisition. Specifically, when the node information does not exist in the cache management area, and there is no target process currently acquiring the node information in the cache management area, a new process is started and hardware commands are invoked at the hardware layer to acquire the node information of each node in the cluster. The node information is then returned to the distributed storage system. It should be noted that after invoking the hardware commands, acquiring the data, and returning it to the storage management system, a copy of the data is cached for future use. That is, the node information is cached so that the node information contained in the parsed other information acquisition instructions can be compared with the node information; wherein, the other information acquisition instructions are information acquisition instructions other than the target information acquisition instruction.
[0049] The node information acquisition method provided in this application is applied to a pre-created queue-based cache management area. First, it acquires the target information acquisition instruction currently sent by the distributed storage management system. Then, it acquires the preset instruction processing rules of the cache management area. These preset instruction processing rules are used to parse the target information acquisition instruction and determine the node information contained in the parsed instruction. Finally, it processes the target information acquisition instruction using the preset instruction processing rules to return the node information to the distributed storage system. As can be seen, unlike existing technologies that directly call hardware commands from the distributed storage management system to the hardware layer to acquire information, this application creates a queue-based cache management area between the distributed storage management system and the hardware layer, acquiring node information from this cache management area. This method avoids the accumulation of numerous repetitive hardware commands and the waste of system resources in the distributed storage management system, thus improving the efficiency of the distributed storage management system.
[0050] like Figure 2The diagram illustrates the overall logic for processing target information retrieval commands using pre-defined command processing rules. When the storage management system needs to collect node information, it initiates a request to retrieve node information, i.e., sends a target information retrieval command. To address the traditional method of acquiring hardware information, a novel collection method is proposed: a pre-created cache management area processes the target information command sent by the storage management system. First, it determines whether the node information requested by the storage management system already exists in the cache management area. If the relevant node information already exists, the existing data is returned. If the relevant node information does not exist in the cache management area, it further determines whether a target process is running in the cache management area to retrieve node information. If a target process is running in the cache management area to retrieve node information, the node information is returned to the distributed storage management system after the target process finishes. If no target process is running in the cache management area to retrieve node information, a new process is created to call the hardware layer command, and after execution, the node information is retrieved and returned to the distributed storage management system. This avoids the accumulation of numerous repetitive hardware commands and the waste of system resources, improving the efficiency of the storage management system.
[0051] This application discloses a specific method for obtaining node information. See [link to relevant documentation]. Figure 3 As shown, the method, applied to a pre-created queue-based cache management area, includes:
[0052] Step S21: Obtain the target information acquisition instruction currently sent by the distributed storage management system, which includes any one or more combinations of power supply, fan, network card, CPU, memory, disk, network information, file system, and service status.
[0053] In this embodiment of the application, the target information acquisition instruction is mainly responsible for collecting information from numerous nodes in the cluster. It obtains target information acquisition instructions sent by the storage management system through a pre-created queue-based cache management area, which includes any one or more combinations of power supply, fan, network card, CPU, memory, disk, network information, file system, and service status, to determine which node information the storage management system needs.
[0054] Step S22: Obtain the preset instruction processing rules of the cache management area; wherein, the preset instruction processing rules are rules used to parse the target information retrieval instruction and to judge and process the node information contained in the parsed target information retrieval instruction.
[0055] In this embodiment of the application, the cache management area is pre-set with instruction processing rules for different situations. These rules are mainly used to parse the target information acquisition instructions sent by the storage management system and to further judge and process the node information required by the storage management system after parsing.
[0056] Step S23: If the cache management area already contains node information corresponding to the target information acquisition instruction, then the node information is directly returned to the distributed storage system.
[0057] In the first specific implementation, if the recently acquired data has already been stored in the cache management area, the data can be directly returned to the storage management system.
[0058] Step S24: When the node information is not present in the cache management area, wait for the target process that is acquiring the node information in the cache management area to finish running, and return the node information to the distributed storage system after the target process finishes running.
[0059] In the second specific implementation, the cache management area has not yet cached the most recent data, but there is a process that is currently retrieving it. In this scenario, it is necessary to wait for the process to finish executing and return the data to the storage management system.
[0060] Accordingly, after the target process finishes execution and returns the node information to the distributed storage system, the node information is cached so that it can be compared with the node information contained in the parsed other information retrieval instructions; wherein, the other information retrieval instructions are information retrieval instructions other than the target information retrieval instruction. That is, after the process finishes execution and returns the data to the storage management system, a copy of the data is cached for future use.
[0061] Step S25: When the node information is not present in the cache management area and there is no target process in the cache management area that is acquiring the node information, a new process is started and hardware commands are called to the hardware layer to acquire the node information of each node in the cluster, and then the node information is returned to the distributed storage system.
[0062] In the third specific implementation, if the cache management area has not yet cached the latest data and there is no process currently acquiring it, a new process is started, hardware commands are invoked, and the data is returned to the storage management system after it is acquired.
[0063] Accordingly, a new process is started and hardware commands are invoked at the hardware layer to obtain node information of each node in the cluster. After the node information is returned to the distributed storage system, it is cached so that it can be compared with the node information contained in the parsed other information retrieval instructions. These other information retrieval instructions are those other than the target information retrieval instruction. In other words, after invoking the hardware command, obtaining the data, and returning it to the storage management system, a copy of the data is cached for future use.
[0064] The node information acquisition method provided in this application is applied to a pre-created queue-based cache management area. First, it acquires a target information acquisition instruction currently sent by the distributed storage management system, which includes one or more combinations of power supply, fan, network card, CPU, memory, disk, network information, file system, and service status. Then, it acquires a preset instruction processing rule for the cache management area. This preset instruction processing rule is used to parse the target information acquisition instruction and judge the node information contained in the parsed instruction. Finally, if the cache management area already contains node information corresponding to the target information acquisition instruction, the node information is directly returned to the distributed storage system. If the cache management area does not contain the node information, it waits for the target process currently acquiring the node information in the cache management area to finish running, and then returns the node information to the distributed storage system after the target process finishes running. If the cache management area does not contain the node information and there is no target process currently acquiring the node information in the cache management area, a new process is started and hardware commands are invoked at the hardware layer to acquire node information of each node in the cluster, and then the node information is returned to the distributed storage system. As can be seen, unlike existing technologies that directly call hardware commands from the distributed storage management system to the hardware layer to obtain information, this application creates a queue-based cache management area between the distributed storage management system and the hardware layer, and obtains node information from the cache management area. This method avoids the accumulation of a large number of repetitive hardware commands and the waste of system resources in the distributed storage management system, thereby improving the efficiency of the distributed storage management system.
[0065] Accordingly, this application also discloses a node information acquisition device, see [link to relevant documentation]. Figure 4 As shown, the device, applied to a pre-created queue-based cache management area, includes:
[0066] Information acquisition instruction acquisition module 11 is used to acquire the target information acquisition instruction currently sent by the distributed storage management system;
[0067] The preset instruction processing rule acquisition module 12 is used to acquire the preset instruction processing rules of the cache management area; wherein, the preset instruction processing rules are rules used to parse the target information acquisition instruction and to judge and process the node information contained in the parsed target information acquisition instruction.
[0068] The node information return module 13 is used to process the target information acquisition instruction using the preset instruction processing rules, so as to return the node information to the distributed storage system.
[0069] For more detailed information on the working process of each of the above modules, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.
[0070] Therefore, the above-described scheme in this embodiment, applied to a pre-created queue-based cache management area, firstly obtains the target information retrieval instruction currently sent by the distributed storage management system; then, it obtains the preset instruction processing rules of the cache management area; wherein, the preset instruction processing rules are rules used to parse the target information retrieval instruction and judge and process the node information contained in the parsed target information retrieval instruction; finally, it uses the preset instruction processing rules to process the target information retrieval instruction to return the node information to the distributed storage system. It is evident that, unlike the prior art where information is obtained by directly calling hardware commands from the hardware layer through the distributed storage management system, this application creates a queue-based cache management area between the distributed storage management system and the hardware layer, and retrieves node information from the cache management area. This method avoids the accumulation of a large number of repetitive hardware commands and the waste of system resources in the distributed storage management system, thus improving the efficiency of the distributed storage management system.
[0071] In one specific implementation, the node information return module 13 includes:
[0072] The first processing module is used to directly return the node information to the distributed storage system when the node information corresponding to the target information acquisition instruction already exists in the cache management area.
[0073] In one specific implementation, the node information return module 13 includes:
[0074] The second processing module is used to wait for the target process that is acquiring the node information in the cache management area to finish running when the node information does not exist in the cache management area, and then return the node information to the distributed storage system after the target process finishes running.
[0075] In one specific implementation, the second processing module is further configured to cache the node information after the target process finishes running and returns the node information to the distributed storage system, so as to compare the node information with the node information contained in the parsed other information retrieval instructions; wherein, the other information retrieval instructions are other information retrieval instructions besides the target information retrieval instructions.
[0076] In one specific implementation, the node information return module 13 includes:
[0077] The third processing module is used to start a new process and call hardware commands to the hardware layer to obtain the node information of each node in the cluster when the node information is not found in the cache management area and there is no target process in the cache management area that is acquiring the node information, and then return the node information to the distributed storage system.
[0078] In one specific implementation, the third processing module is further configured to start a new process and call hardware commands to the hardware layer to obtain node information of each node in the cluster, and then return the node information to the distributed storage system and cache the node information so as to compare the node information with the node information contained in the parsed other information acquisition instructions; wherein, the other information acquisition instructions are other information acquisition instructions besides the target information acquisition instructions.
[0079] In one specific implementation, the information acquisition instruction acquisition module 11 includes:
[0080] The information acquisition instruction acquisition unit is used to acquire target information acquisition instructions currently sent by the distributed storage management system, including any one or a combination of several of the following: power supply, fan, network card, CPU, memory, disk, network information, file system, and service status.
[0081] Furthermore, embodiments of this application also disclose an electronic device, Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.
[0082] Figure 5This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the node information acquisition method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be a server.
[0083] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0084] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk, or optical disk, etc. The resources stored on it can include an operating system 221, computer programs 222, and data 223, etc. The data 223 can include various types of data. The storage method can be temporary storage or permanent storage.
[0085] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the node information acquisition method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.
[0086] Furthermore, this application also discloses a computer-readable storage medium, which includes random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, magnetic disks, optical disks, or any other form of storage medium known in the art. The computer program, when executed by a processor, implements the aforementioned node information acquisition method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0087] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0088] The steps of node information acquisition or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0089] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0090] The node information acquisition method, apparatus, device, and storage medium provided by the present invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for obtaining node information, characterized in that, Applied to a pre-created queue-based cache management area, including: Obtain the target information acquisition instruction currently sent by the distributed storage management system; wherein, the target information acquisition instruction is used to determine which node information the storage management system needs; Obtain the preset instruction processing rules of the cache management area; wherein, the preset instruction processing rules are rules used to parse the target information retrieval instruction and to judge and process the node information contained in the parsed target information retrieval instruction; The target information acquisition instruction is processed using the preset instruction processing rules to return the node information to the distributed storage management system; The step of processing the target information acquisition instruction using the preset instruction processing rules to return the node information to the distributed storage management system includes: If the cache management area already contains node information corresponding to the target information retrieval instruction, then the node information is directly returned to the distributed storage management system. If the node information is not present in the cache management area, wait for the target process that is acquiring the node information in the cache management area to finish running, and return the node information to the distributed storage management system after the target process finishes running; When the node information is not present in the cache management area and there is no target process in the cache management area that is acquiring the node information, a new process is started and hardware commands are called to the hardware layer to acquire the node information of each node in the cluster, and then the node information is returned to the distributed storage management system. After returning the node information to the distributed storage management system, the method further includes: The node information is cached so that the node information contained in the parsed other information retrieval instructions can be compared with the node information; wherein, the other information retrieval instructions are other information retrieval instructions besides the target information retrieval instruction.
2. The node information acquisition method according to claim 1, characterized in that, The method of obtaining the target information acquisition instruction currently sent by the distributed storage management system includes: Obtain the target information currently sent by the distributed storage management system, including any one or a combination of several of the following: power supply, fan, network card, CPU, memory, disk, network information, file system, and service status.
3. A node information acquisition device, characterized in that, Applied to a pre-created queue-based cache management area, including: The information acquisition instruction acquisition module is used to acquire the target information acquisition instruction currently sent by the distributed storage management system; wherein, the target information acquisition instruction is used to determine which node information the storage management system needs; A preset instruction processing rule acquisition module is used to acquire preset instruction processing rules of the cache management area; wherein, the preset instruction processing rule is a rule used to parse the target information acquisition instruction and to judge and process the node information contained in the parsed target information acquisition instruction; The node information return module is used to process the target information acquisition instruction using the preset instruction processing rules, so as to return the node information to the distributed storage management system. The node information return module includes: The first processing module is used to directly return the node information to the distributed storage management system when the node information corresponding to the target information acquisition instruction already exists in the cache management area. The second processing module is used to wait for the target process that is acquiring the node information in the cache management area to finish running when the node information does not exist in the cache management area, and then return the node information to the distributed storage management system after the target process finishes running. The third processing module is used to start a new process and call hardware commands to the hardware layer to obtain the node information of each node in the cluster when the node information is not found in the cache management area and there is no target process in the cache management area that is acquiring the node information; and then return the node information to the distributed storage management system. The node information return module is also used for: The node information is cached so that the node information contained in the parsed other information retrieval instructions can be compared with the node information; wherein, the other information retrieval instructions are other information retrieval instructions besides the target information retrieval instruction.
4. An electronic device, characterized in that, The electronic device includes a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the node information acquisition method as described in claim 1 or 2.
5. A computer-readable storage medium, characterized in that, Used to store computer programs; wherein the computer programs, when executed by a processor, implement the node information acquisition method as described in claim 1 or 2.