Reporting method, device and equipment based on secondary tree resources and medium
By adopting a secondary tree resource reporting method in cloud computing, the calculation node is allocated through the cluster selection operation, and the resource information is summarized through the primary computing node and reported to the central database, the database pressure and performance bottlenecks in the existing technology are solved. The problem has achieved efficient resource information reporting.
Patent Information
- Application Number
- CN202311085019.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-25
- Publication Date
- 2025-02-25
AI Technical Summary
In the prior art, the update and reporting of cloud computing resources have problems such as excessive database pressure and performance bottlenecks, especially when there are too many computing nodes, the risk of connection loss and update loss is prone to occur.
Using a resource reporting method based on a secondary tree, a cluster master selection operation is performed through multiple computing nodes in each logical management unit to obtain a primary computing node and at least one secondary computing node. Each secondary computing node reports the first resource information to the first-level computing node, and the last-level computing node reports the second resource information to the central database.
Through the secondary tree-shaped independent deployment method, the database pressure is reduced and the performance of resource information reporting is improved.
Smart Images

Figure CN119513083A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of cloud computing, and in particular to a method, device, equipment and medium based on secondary tree-based resource reporting. Background Art
[0002] In today's era of information explosion, cloud computing processing plays a vital role in various fields, and the update and reporting of cloud computing resources is the basis for ensuring the update of resource pool information at the infrastructure layer and realizing accurate instance scheduling.
[0003] In the related technology, mainstream resource reporting mostly adopts two methods. One is that each computing node connects to the central database, and each computing node updates its own resource information to the central database independently. However, when there are too many computing nodes, it will cause excessive pressure on the database, and there is a risk of connection loss and update loss. The other is that each computing node calls an intermediate service to update the database and report resource information through the service, but there will be performance bottlenecks, service single point failure and other problems. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a secondary tree-based resource reporting method, device, equipment and medium.
[0005] In a first aspect, the present disclosure provides a secondary tree-based resource reporting method, comprising:
[0006] Performing a cluster master election operation on multiple computing nodes included in each logical management unit to obtain a primary computing node and at least one secondary computing node;
[0007] Reporting the first resource information to the first-level computing node through each second-level computing node;
[0008] The second resource information is reported to the central database through the first-level computing node, and the second resource information includes at least one first resource information.
[0009] In a second aspect, the present disclosure provides a secondary tree-based resource reporting device, comprising:
[0010] A first processing module is used to perform a cluster master election operation on multiple computing nodes included in each logical management unit to obtain a primary computing node and at least one secondary computing node;
[0011] A first reporting module, used to report the first resource information to the first-level computing node through each second-level computing node;
[0012] The second reporting module is used to report the second resource information to the central database through the first-level computing node, where the second resource information includes at least one first resource information.
[0013] In a third aspect, the present disclosure provides a secondary tree-based resource reporting device, including:
[0014] processor;
[0015] A memory for storing executable instructions;
[0016] The processor is used to read executable instructions from the memory and execute the executable instructions to implement the secondary tree-based resource reporting method of the first aspect.
[0017] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements the secondary tree-based resource reporting method of the first aspect.
[0018] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0019] The two-level tree-based resource reporting method, device, equipment and medium of the disclosed embodiments can perform cluster master election operations on multiple computing nodes included in each logical management unit, obtain a first-level computing node and at least one second-level computing node, then report first resource information to the first-level computing node through each second-level computing node, and finally report second resource information to the central database through the first-level computing node. The second resource information includes at least one first resource information. Therefore, through the two-level tree-based autonomous master election deployment method, the database pressure can be reduced and the resource information reporting performance can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0021] Figure 1 A flowchart of a secondary tree-based resource reporting method provided in an embodiment of the present disclosure;
[0022] Figure 2 A schematic diagram of an independent interface provided in an embodiment of the present disclosure;
[0023] Figure 3 A schematic diagram of a cluster leader election process provided by an embodiment of the present disclosure;
[0024] Figure 4 A schematic diagram of the structure of a secondary tree-based resource reporting device provided in an embodiment of the present disclosure;
[0025] Figure 5 A schematic diagram of the structure of a secondary tree-based resource reporting device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0027] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0028] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0029] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0030] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0032] In order to solve the above problems, the present disclosure provides a method, device, equipment and medium based on a secondary tree resource report. Figures 1 to 3 The secondary tree-based resource reporting method provided in the embodiment of the present disclosure is described in detail.
[0033] Figure 1 A flow chart of a secondary tree-based resource reporting method provided in an embodiment of the present disclosure is shown.
[0034] In the embodiment of the present disclosure, the secondary tree-based resource reporting method may be executed by a server, wherein the server may include but is not limited to servers such as cloud servers or cloud server clusters.
[0035] like Figure 1 As shown, the secondary tree-based resource reporting method may include the following steps.
[0036] S110 , performing a cluster master election operation on multiple computing nodes included in each logical management unit to obtain a primary computing node and at least one secondary computing node.
[0037] In the embodiment of the present disclosure, the server may perform a cluster master election operation on multiple computing nodes included in each logical management unit to obtain a primary computing node and at least one secondary computing node.
[0038] Optionally, the logical management unit may be a separate cluster.
[0039] Optionally, a computing node may be a basic storage and computing unit of a cluster.
[0040] Optionally, the cluster master election operation may be an operation of selecting a master node from multiple computing nodes.
[0041] Optionally, the primary computing node can be a master node.
[0042] Optionally, the secondary computing node may be a slave node.
[0043] Specifically, each logical management unit may include multiple computing nodes, and the server may perform a cluster master election operation on the multiple computing nodes, that is, select a master node from the multiple computing nodes, thereby obtaining a primary computing node and at least one secondary computing node.
[0044] S120. Report the first resource information to the primary computing node through each secondary computing node.
[0045] In the embodiment of the present disclosure, the server may report the first resource information to the primary computing node through each secondary computing node.
[0046] Optionally, the first resource information may be resource information stored in a secondary computing node.
[0047] Specifically, for each secondary computing node in the at least one secondary computing node, the server may report the corresponding first resource information to the primary computing node through each secondary computing node.
[0048] S130. Report second resource information to a central database through a primary computing node, where the second resource information includes at least one first resource information.
[0049] In the disclosed embodiment, the server may report the second resource information to the central database through the primary computing node.
[0050] Optionally, the central database may be a database for storing resource information corresponding to the computing nodes.
[0051] Optionally, the second resource information may be resource information stored by a first-level computing node. The second resource information may include at least one first resource information.
[0052] Specifically, after each secondary computing node reports the first resource information to the primary computing node, the primary computing node can receive at least one first resource information reported by at least one secondary computing node, thereby obtaining second resource information, and the server can report the second resource information to the central database through the primary computing node.
[0053] Therefore, in the embodiment of the present disclosure, a cluster master election operation can be performed on the multiple computing nodes included in each logical management unit to obtain a primary computing node and at least one secondary computing node, and then the first resource information is reported to the primary computing node through each secondary computing node, and finally the second resource information is reported to the central database through the primary computing node. The second resource information includes at least one first resource information. Therefore, through the two-level tree-shaped autonomous master election deployment method, the database pressure can be reduced and the resource information reporting performance can be improved.
[0054] Optionally, before S110, the secondary tree-based resource reporting method may further include: performing a logical management unit division operation on the physical cluster to obtain a plurality of logical management units, each of which includes a plurality of computing nodes.
[0055] In the embodiment of the present disclosure, the server may perform a logical management unit division operation on the physical cluster to obtain a plurality of logical management units.
[0056] Optionally, the physical cluster may be a cluster included in a server.
[0057] Optionally, the logical management unit division operation may be an operation of dividing a physical cluster into logical management units.
[0058] Optionally, each logical management unit may include multiple computing nodes.
[0059] Specifically, the server can perform a logical management unit division operation on the physical cluster to divide the physical cluster into multiple logical management units. For example, the physical cluster may include 10,000 computing nodes, and the server can perform a logical management unit division operation to obtain 100 logical management units, each of which may include 100 computing nodes.
[0060] Therefore, it can be divided into multiple logical management units for resource reporting, which is conducive to reducing database pressure and facilitating management.
[0061] Optionally, S110 may specifically include: based on a consistency algorithm, performing a cluster master election operation on multiple computing nodes included in each logical management unit to obtain a first-level computing node and at least one second-level computing node, the first-level computing node reporting object is the central database, and the second-level computing node reporting object is the first-level computing node.
[0062] In an embodiment of the present disclosure, the server may perform a cluster master election operation on multiple computing nodes included in each logical management unit based on a consistency algorithm to obtain a primary computing node and at least one secondary computing node.
[0063] Optionally, the consistency algorithm may be an algorithm that ensures the consistency of each computing node.
[0064] Optionally, the reporting object may be an object to which the computing node reports resource information.
[0065] Specifically, the server can use a distributed cluster (etcd) to perform cluster master election operations for multiple computing nodes included in each logical management unit based on a consistency algorithm (such as Raft). For example, if each logical management unit includes 100 computing nodes, the server can determine a master node and multiple slave nodes through the cluster master election operation, that is, obtain a first-level computing node and at least one second-level computing node, and specify the reporting object of the computing node through the etcd cluster, such as specifying the reporting object of at least one second-level computing node as a first-level computing node, and specifying the reporting object of the first-level computing node as a central database.
[0066] Optionally, the data domain of the etcd cluster includes multiple logical management units, including reporting objects, mutex locks, other information, etc. of the logical management units.
[0067] Therefore, multiple computing nodes can be divided into primary computing nodes and secondary computing nodes, that is, a two-level tree-shaped resource reporting method, which can reduce database pressure and improve resource information reporting performance.
[0068] Optionally, before S120, the secondary tree-based resource reporting method may further include: performing a data collection operation based on an independent interface through each secondary computing node to obtain the first resource information.
[0069] In the embodiment of the present disclosure, the server may perform data collection operations based on an independent interface through each secondary computing node to obtain the first resource information.
[0070] Optionally, the independent interface may be an independent plug-in interface.
[0071] Specifically, the server may perform data collection operations through each secondary computing node based on an independent interface, that is, the secondary computing node may perform data collection through an independent interface, thereby obtaining the first resource information that needs to be reported.
[0072] Figure 2 A schematic diagram of an independent interface provided by an embodiment of the present disclosure is shown.
[0073] like Figure 2 As shown, the independent interface may include a data acquisition agent service, and the data acquisition agent service may implement data acquisition operations by a hard disk acquisition driver, a central processing unit (CPU) acquisition driver, a graphics processing unit (GPU) acquisition driver, and a network card acquisition driver to obtain the first resource information.
[0074] Optionally, before S130, the secondary tree-based resource reporting method may further include: receiving, by a primary computing node, at least one first resource information reported by at least one secondary computing node within a target time, to obtain second resource information.
[0075] In an embodiment of the present disclosure, the server may receive at least one first resource information reported by at least one second-level computing node within a target time through a first-level computing node to obtain second resource information.
[0076] Optionally, the target time may be a preset time, such as 5 seconds, 10 seconds, etc., which is not limited here.
[0077] Specifically, the server can receive at least one first resource information reported by at least one second-level computing node within the target time through the first-level computing node. For example, each second-level computing node reports the corresponding first resource information to the first-level computing node respectively. The server can receive at least one first resource information reported by multiple second-level computing nodes within the target time, such as within 5s, through the first-level computing node, and thus use the at least one first resource information as the second resource information.
[0078] Optionally, S130 may specifically include: when a failure event occurs in the target secondary computing node, receiving at least one first resource information reported by at least one secondary computing node other than the target secondary computing node within the target time through the first-level computing node to obtain updated second resource information; and reporting the updated second resource information to the central database through the first-level computing node.
[0079] In an embodiment of the present disclosure, when a failure event occurs in a target secondary computing node, the server can receive at least one first resource information reported by at least one secondary computing node other than the target secondary computing node within a target time through the primary computing node to obtain updated second resource information.
[0080] Optionally, the target secondary computing node may be a computing node in which a fault occurs among the multiple secondary computing nodes.
[0081] Specifically, when a failure event occurs in the target secondary computing node, the target secondary computing node is unable to report the corresponding first resource information to the primary computing node. At this time, the second resource information received by the primary computing node is erroneous due to the lack of the first resource information. The server can re-receive at least one first resource information reported by at least one secondary computing node other than the target secondary computing node within the target time through the primary computing node, thereby obtaining updated second resource information.
[0082] Furthermore, the server may report the updated second resource information to the central database through the primary computing node.
[0083] Optionally, the secondary tree-based resource reporting method may further include: when a primary computing node fails, re-performing a cluster master election operation for at least one secondary computing node to obtain a new primary computing node and at least one new secondary computing node.
[0084] In an embodiment of the present disclosure, when a primary computing node fails, the server can re-perform a cluster master election operation for at least one secondary computing node to obtain a new primary computing node and at least one new secondary computing node.
[0085] Specifically, a logical management unit includes 100 computing nodes, which determine 1 first-level computing node and 99 second-level computing nodes. When a failure occurs in a first-level computing node, the server can re-perform the cluster master election operation for at least one second-level computing node, that is, re-perform the cluster master election operation for the 99 second-level computing nodes except the first-level computing node, thereby obtaining a new first-level computing node and 98 second-level computing nodes.
[0086] In this way, autonomous master selection can be carried out to ensure the reporting method of the two-level tree, reduce the pressure on the database, and improve the performance of resource information reporting.
[0087] Figure 3 A schematic diagram of a process of cluster leader election operation provided by an embodiment of the present disclosure is shown.
[0088] like Figure 3 As shown, for the central database (mongoDB), if the number of computing nodes in the central database is less than or equal to 100, the server does not need to perform cluster master election operations, and each computing node can directly report the corresponding first resource information to the central database, such as 1.1, 1.2, and 1.3 respectively represent computing nodes, and directly report the corresponding first resource information to the central database; if the number of computing nodes in the central database is greater than 100, the server can perform cluster master election operations on multiple computing nodes to determine the first-level computing node and at least one second-level computing node. For example, 1.4 can be a first-level computing node, and 2.1, 2.2, and 2.3 can be three second-level computing nodes corresponding to 1.4; 1.5 can be a first-level computing node, and 2.100, 2.101, and 2.102 can be three second-level computing nodes corresponding to 1.5, which are not limited here.
[0089] Figure 4 A schematic structural diagram of a secondary tree-based resource reporting device provided in an embodiment of the present disclosure is shown.
[0090] like Figure 4 As shown, the secondary tree-based resource reporting device 400 may include a first processing module 410 , a first reporting module 420 and a second reporting module 430 .
[0091] The first processing module 410 may be used to perform a cluster master election operation on multiple computing nodes included in each logical management unit to obtain a primary computing node and at least one secondary computing node.
[0092] The first reporting module 420 may be configured to report the first resource information to the first-level computing node through each second-level computing node.
[0093] The second reporting module 430 may be configured to report second resource information to a central database through a primary computing node, where the second resource information includes at least one first resource information.
[0094] Therefore, in the embodiment of the present disclosure, a cluster master election operation can be performed on the multiple computing nodes included in each logical management unit to obtain a primary computing node and at least one secondary computing node, and then the first resource information is reported to the primary computing node through each secondary computing node, and finally the second resource information is reported to the central database through the primary computing node. The second resource information includes at least one first resource information. Therefore, through the two-level tree-shaped autonomous master election deployment method, the database pressure can be reduced and the resource information reporting performance can be improved.
[0095] In some embodiments of the present disclosure, the secondary tree-based resource reporting device 400 may further include a second processing module.
[0096] The second processing module may be used to perform a logical management unit division operation on the physical cluster to obtain multiple logical management units, each of which includes multiple computing nodes, before performing a cluster master election operation on multiple computing nodes included in each logical management unit.
[0097] In some embodiments of the present disclosure, the first processing module 410 may specifically include a cluster master selection unit.
[0098] The cluster master election unit can be used to perform cluster master election operations on multiple computing nodes included in each logical management unit based on a consistency algorithm to obtain a primary computing node and at least one secondary computing node. The reporting object of the primary computing node is the central database, and the reporting object of the secondary computing node is the primary computing node.
[0099] In some embodiments of the present disclosure, the secondary tree-based resource reporting device 400 may further include a third processing module.
[0100] The third processing module may be used to obtain the first resource information by performing a data collection operation based on an independent interface through each secondary computing node before reporting the first resource information to the primary computing node through each secondary computing node.
[0101] In some embodiments of the present disclosure, the secondary tree-based resource reporting device 400 may further include a fourth processing module.
[0102] The fourth processing module can be used to receive at least one first resource information reported by at least one second-level computing node within a target time through the first-level computing node before reporting the second resource information to the central database through the first-level computing node to obtain the second resource information.
[0103] In some embodiments of the present disclosure, the second reporting module 430 may specifically include an information receiving unit and an information updating unit.
[0104] The information receiving unit can be used to receive at least one first resource information reported by at least one secondary computing node other than the target secondary computing node within a target time through the primary computing node when a failure event occurs in the target secondary computing node, and obtain updated second resource information.
[0105] The information updating unit may be used to report updated second resource information to a central database through a primary computing node.
[0106] In some embodiments of the present disclosure, the secondary tree-based resource reporting device 400 may further include a fifth processing module.
[0107] The fifth processing module can be used to re-perform a cluster master election operation for at least one secondary computing node when a primary computing node fails, to obtain a new primary computing node and at least one new secondary computing node.
[0108] It should be noted that Figure 4 The secondary tree-based resource reporting device 400 shown can execute Figures 1 to 3 The various steps in the method embodiment shown in the figure are implemented Figures 1 to 3 The various processes and effects in the method embodiment shown are not described in detail here.
[0109] Figure 5 A schematic diagram of the structure of a secondary tree-based resource reporting device provided in an embodiment of the present disclosure is shown.
[0110] In some embodiments of the present disclosure, Figure 5 The secondary tree-based resource reporting device shown may be a server device. Specifically, the server may include but is not limited to servers such as a cloud server or a cloud server cluster.
[0111] like Figure 5 As shown, the secondary tree-based resource reporting device may include a processor 501 and a memory 502 storing computer program instructions.
[0112] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0113] The memory 502 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 502 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 502 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 502 is a non-volatile solid-state memory. In a particular embodiment, the memory 502 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.
[0114] The processor 501 reads and executes the computer program instructions stored in the memory 502 to perform the steps of the secondary tree-based resource reporting method provided in the embodiment of the present disclosure.
[0115] In one example, the secondary tree-based resource reporting device may further include a transceiver 503 and a bus 504. Figure 5 As shown, the processor 501, the memory 502 and the transceiver 503 are connected via a bus 504 and communicate with each other.
[0116] The bus 504 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 504 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0117] The embodiment of the present disclosure further provides a computer-readable storage medium, which may store a computer program. When the computer program is executed by a processor, the processor implements the secondary tree-based resource reporting method provided by the embodiment of the present disclosure.
[0118] The above-mentioned storage medium may, for example, include a memory 502 of computer program instructions, and the above-mentioned instructions may be executed by a processor 501 based on a secondary tree-shaped resource reporting device to complete the secondary tree-shaped resource reporting method provided by the embodiment of the present disclosure. Optionally, the storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact Disc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0119] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0120] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for reporting resources based on a secondary tree structure, characterized in that: include: Performing a cluster master election operation on multiple computing nodes included in each logical management unit to obtain a primary computing node and at least one secondary computing node; Reporting the first resource information to the first-level computing node through each of the second-level computing nodes; The second resource information is reported to the central database through the first-level computing node, where the second resource information includes at least one of the first resource information.
2. The method according to claim 1, characterized in that Before performing the cluster master election operation on the multiple computing nodes included in each logical management unit, the method further includes: The physical cluster is divided into logical management units to obtain a plurality of the logical management units, each of which includes a plurality of the computing nodes.
3. The method according to claim 1, characterized in that The cluster master election operation is performed on the multiple computing nodes included in each logical management unit to obtain a primary computing node and at least one secondary computing node, including: Based on the consistency algorithm, a cluster master election operation is performed on the multiple computing nodes included in each of the logical management units to obtain one primary computing node and at least one secondary computing node. The reporting object of the primary computing node is the central database, and the reporting object of the secondary computing node is the primary computing node.
4. The method according to claim 1, characterized in that: Before reporting the first resource information to the first-level computing node through each of the second-level computing nodes, the method further includes: The first resource information is obtained by performing data collection operations on each of the secondary computing nodes based on an independent interface.
5. The method according to claim 1, characterized in that: Before reporting the second resource information to the central database through the primary computing node, the method further includes: The second resource information is obtained by receiving, by the first-level computing node, at least one piece of the first resource information reported by at least one of the second-level computing nodes within a target time.
6. The method according to claim 5, characterized in that The reporting of the second resource information to the central database through the primary computing node includes: When a failure event occurs in the target secondary computing node, receiving, through the primary computing node, at least one of the first resource information reported by at least one of the secondary computing nodes other than the target secondary computing node within the target time, to obtain updated second resource information; The updated second resource information is reported to the central database through the first-level computing node.
7. The method according to claim 1, characterized in that The method further comprises: When a failure event occurs in the primary computing node, a cluster master election operation is re-performed for at least one of the secondary computing nodes to obtain a new primary computing node and at least one new secondary computing node.
8. A secondary tree-based resource reporting device, characterized in that: include: A first processing module is used to perform a cluster master election operation on multiple computing nodes included in each logical management unit to obtain a primary computing node and at least one secondary computing node; A first reporting module, configured to report first resource information to the first-level computing node through each of the second-level computing nodes; The second reporting module is used to report second resource information to the central database through the first-level computing node, where the second resource information includes at least one of the first resource information.
9. A secondary tree-based resource reporting device, characterized in that: include: processor; A memory for storing executable instructions; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the secondary tree-based resource reporting method described in any one of claims 1 to 7.
10. A non-volatile computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the processor implements the secondary tree-based resource reporting method according to any one of claims 1 to 7.