Resource configuration management method, system, device, storage medium and electronic device

By monitoring and synchronizing resource information in the child node configuration management database in the cloud environment, the incomplete collection of resource information caused by complex network status is solved, and the timeliness and accuracy of resource information is improved.

CN114610798BActive Publication Date: 2025-03-28YIDU CLOUD (BEIJING) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210307595.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-25
Publication Date
2025-03-28
Estimated Expiration
2042-03-25

AI Technical Summary

Technical Problem

In the case of complex network status, the agent cannot actively report resource information, resulting in incomplete collection of resource information or exceeding traffic limits, affecting the accuracy and timeliness of resource information.

Method used

In a cloud environment, resource information in the configuration management database corresponding to the child node associated with the master node is monitored, and the change information is synchronized to the configuration management database corresponding to the master node when the resource information changes.

Benefits of technology

Resource information can still be effectively collected in environments with poor network conditions, improving the timeliness and accuracy of resource information collection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114610798B_ABST
    Figure CN114610798B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of computer technology, and provides a resource configuration management method, a resource configuration management system, a resource configuration management device, a computer-readable storage medium, and an electronic device. The above method is applied to a cloud environment, and the cloud environment includes a master node and a sub-node associated with the master node, wherein the master node is deployed in a first cloud environment, and the sub-node is deployed in a second cloud environment, and the above method includes: according to a preset rule, monitoring the resource information in the first configuration management database corresponding to each sub-node associated with the master node; when any resource information in the first configuration management database corresponding to any sub-node is monitored to change, synchronizing the change information of the resource information to the second configuration management database corresponding to the master node. Based on the active monitoring of resource information in the sub-nodes, this solution can improve the accuracy and timeliness of resource information management.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] CMDB (Configuration Management Database) is a logical database used to collect and manage configuration items and the relationships between configuration items.

[0003] In the related art, resource information can be collected through an agent (agent service) automatic tool. For example, the agent can directly synchronize the collected resource information to the CMDB through a network protocol.

[0004] However, this method cannot actively report when the network status is complex, such as when the network between hybrid cloud environments is one-way, and the integrity of resource information cannot be guaranteed. Or if there is a traffic limit, when the traffic exceeds the usage range, it is impossible to rely on the agent's automatic collection tool to complete the automatic collection of resource information, which will affect the accuracy and timeliness of resource information collection.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The purpose of the present disclosure is to provide a resource configuration management method, a resource configuration management system, a resource configuration management device, a computer-readable storage medium and an electronic device, thereby at least to a certain extent improving the technical problem in the related technology that it is difficult to ensure the accuracy and timeliness of resource information collection when the network status is complex.

[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0008] According to a first aspect of the present disclosure, there is provided a resource configuration management method, which is applied to a cloud environment, wherein the cloud environment comprises a master node and a child node associated with the master node, the master node is deployed in a first cloud environment, and the child node is deployed in a second cloud environment, the method comprising: monitoring resource information in a first configuration management database corresponding to each child node associated with the master node according to a preset rule; and synchronizing the change information of the resource information to a second configuration management database corresponding to the master node when a change is detected in any resource information in the first configuration management database corresponding to any of the child nodes.

[0009] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the first configuration management database corresponding to each child node is used to store resource information of each host in the child node, and the second configuration management database corresponding to the main node is used to store resource information of each host in each child node associated with the main node.

[0010] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the resource information of each host is determined by a proxy service deployed in the host; for each host, the proxy service deployed in the host determines the resource information of the host in the following manner: the proxy service deployed in the host monitors the current data of the resource information of the host, and compares the current data with the historical data of the resource information of the host stored in the first configuration management database; when the historical data is inconsistent with the current data, the current data is used to update the resource information of the host stored in the first configuration management database.

[0011] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, monitoring the resource information in the first configuration management database corresponding to each child node associated with the main node according to preset rules includes: obtaining current data of the resource information in the first configuration management database corresponding to each child node associated with the main node according to preset rules; comparing the current data with the historical data of the resource information stored in the second configuration management database to monitor whether the resource information has changed.

[0012] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, monitoring the resource information in the first configuration management database corresponding to each child node associated with the main node according to preset rules includes: monitoring the resource information in the first configuration management database corresponding to each child node associated with the main node according to a preset period; or monitoring the resource information in the first configuration management database corresponding to each child node associated with the main node in real time.

[0013] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the method further includes: in response to an adjustment operation on any resource information of any host in the second configuration management database, synchronizing the change information of the resource information to the first configuration management database corresponding to the resource information, so as to manage the resource information stored in the first configuration management database; and / or in response to an adjustment operation on any resource information of any host in the first configuration management database corresponding to any child node, synchronizing the change information of the resource information to the second configuration management database corresponding to the master node associated with the child node, so as to manage the resource information stored in the first configuration management database.

[0014] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the method further includes: in response to simultaneously receiving a first adjustment instruction and a second adjustment instruction, determining a target adjustment instruction from the first adjustment instruction and the second adjustment instruction, the first adjustment instruction and the second adjustment instruction being determined based on adjustment operations on the same resource information in the second configuration management database and in the first configuration management database, respectively; synchronizing change information of the resource information in the configuration management database corresponding to the target adjustment instruction to another configuration management database; wherein the target adjustment instruction is the adjustment instruction with a later adjustment time between the first adjustment instruction and the second adjustment instruction.

[0015] In an exemplary embodiment of the present disclosure, based on the above-mentioned solution, the resource information of the host includes status information of devices related to the host; wherein the status information includes one or more of in use, removed from shelves, and destroyed.

[0016] In an exemplary embodiment of the present disclosure, based on the aforementioned solution, the resource information of the host includes one or more of the host's memory information, hard disk information, MAC address, IP address, port number, and service information running in the host.

[0017] According to a second aspect of the present disclosure, a resource configuration management system is provided, comprising: at least one master node, a sub-node associated with each of the master nodes, a first configuration management database configured for each of the sub-nodes, a second configuration management database configured for each of the master nodes, and a synchronization server configured for each of the master nodes, wherein the master node is deployed in a first cloud environment, and the sub-node is deployed in a second cloud environment;

[0018] The synchronization server configured for each master node is used to monitor the resource information in the first configuration management database corresponding to each child node associated with the master node according to preset rules, and when any change is detected in the resource information in the first configuration management database corresponding to any child node, the change information of the resource information is synchronized to the second configuration management database corresponding to the master node.

[0019] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the first configuration management database configured for each child node is used to store resource information of each host in the child node; the second configuration management database configured for each master node is used to store resource information of each host in each child node associated with the master node.

[0020] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the system also includes an agent service deployed in each host respectively, and the agent service is used to monitor the resource information of the host, and when it is detected that the resource information of the host has changed, the change information of the resource information is synchronized to the first configuration management database corresponding to the sub-node to which the host belongs.

[0021] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the resource information of the host includes status information of devices related to the host, and the status information includes one or more of in use, removed from the shelves, and destroyed; any one of the configuration management databases is also used to respond to a query operation on the current status information of any host in any one of the configuration management databases, and determine the current status information of the host; and / or any one of the configuration management databases is also used to respond to a trace query operation on the status information of any device related to the host in any one of the configuration management databases, and determine the status flow trace of the device according to the time sequence.

[0022] In an exemplary embodiment of the present disclosure, based on the aforementioned solution, the resource information of the host includes one or more of the host's memory information, hard disk information, MAC address, IP address, port number, and service information running in the host.

[0023] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the synchronization server is also used to respond to a first adjustment instruction sent by the master node, synchronize the change information of the resource information of the host indicated by the first adjustment instruction to the first configuration management database corresponding to the child node to which the host belongs, so as to manage the resource information in the child node, and the first adjustment instruction is determined based on the adjustment operation of any resource information in the second configuration management database corresponding to the master node; and / or the synchronization server is also used to respond to a second adjustment instruction sent by any of the child nodes, synchronize the change information of the resource information of the host indicated by the second adjustment instruction to the second configuration management database corresponding to the master node associated with the child node, so as to manage the resource information in the child node, and the second adjustment instruction is determined based on the adjustment operation of any resource information of any host in the first configuration management database corresponding to any of the child nodes.

[0024] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the synchronization server is also used to determine a target adjustment instruction from the first adjustment instruction and the second adjustment instruction in response to simultaneously receiving a first adjustment instruction sent by the master node and a second adjustment instruction sent by the child node, and synchronize the change information of the resource information in the configuration management database indicated by the target adjustment instruction to another configuration management database; wherein, the first adjustment instruction and the second adjustment instruction are determined based on the adjustment operations on the same resource information in the second configuration management database corresponding to the master node and in the first configuration management database corresponding to any child node associated with the master node, respectively, and the target adjustment instruction is the adjustment instruction with a later adjustment time between the first adjustment instruction and the second adjustment instruction.

[0025] According to a third aspect of the present disclosure, there is provided a resource configuration management device, which is applied to a cloud environment, wherein the cloud environment comprises a master node and a child node associated with the master node, wherein the master node is deployed in a first cloud environment, and the child node is deployed in a second cloud environment, wherein the device comprises: a monitoring module, configured to monitor, according to preset rules, resource information in a first configuration management database corresponding to each child node associated with the master node; and a synchronization module, configured to synchronize change information of the resource information to a second configuration management database corresponding to the master node when a change is detected in any resource information in the first configuration management database corresponding to any child node.

[0026] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the resource configuration management method as described in the first aspect of the above embodiment is implemented.

[0027] According to the fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a storage device for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the resource configuration management method as described in the first aspect of the above embodiment.

[0028] It can be seen from the above technical solutions that the resource configuration management method, resource configuration management system, resource configuration management device, and computer-readable storage medium and electronic device for implementing the resource configuration management method in the exemplary embodiments of the present disclosure have at least the following advantages and positive effects:

[0029] In the technical solutions provided by some embodiments of the present disclosure, the master node can be deployed in the first cloud environment, and the sub-node can be deployed in the second cloud environment. Then, according to preset rules, the resource information in the first configuration management database corresponding to each sub-node associated with the master node can be monitored. When any resource information in the first configuration management database corresponding to any sub-node is detected to have changed, the change information of the resource information is synchronized to the second configuration management database corresponding to the master node. Compared with the related art, the present disclosure can still collect resource information in an environment with poor network conditions by monitoring the first configuration management database corresponding to the sub-node, thereby improving the timeliness and accuracy of resource information collection.

[0030] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0032] Figure 1 A schematic diagram showing a flow chart of a resource configuration management method in an exemplary embodiment of the present disclosure;

[0033] Figure 2 A schematic flow chart showing a method for monitoring resource information of each host in a subnode in an exemplary embodiment of the present disclosure;

[0034] Figure 3 A schematic diagram showing the state transition process of a complete life cycle of a server in an exemplary embodiment of the present disclosure is shown;

[0035] Figure 4 A schematic diagram showing the structure of a resource configuration management system in an exemplary embodiment of the present disclosure is shown;

[0036] Figure 5 A schematic diagram showing the structure of another resource configuration management system in a hybrid cloud environment in an exemplary embodiment of the present disclosure;

[0037] Figure 6 A schematic diagram showing the structure of a resource configuration management device in an exemplary embodiment of the present disclosure is shown;

[0038] Figure 7 A schematic diagram showing the structure of a computer storage medium in an exemplary embodiment of the present disclosure;

[0039] Figure 8 A schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0040] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0041] The terms "a", "an", "the" and "said" are used in this specification to indicate the presence of one or more elements / components / etc.; the terms "including" and "having" are used to express an open-ended inclusion and mean that additional elements / components / etc. may exist in addition to the listed elements / components / etc.; the terms "first" and "second" etc. are used only as labels and are not intended to limit the quantity of their objects.

[0042] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities.

[0043] CMDB (Configuration Management Database) is a logical database used to collect and manage configuration items and the relationships between them. CMDB stores and manages various configuration information in the enterprise IT (Internet Technology) architecture. It is closely linked to all service support and service delivery processes, supports the operation of these processes, and maximizes the value of configuration information. At the same time, it relies on related processes to ensure the accuracy of data.

[0044] In the related technology, the CMDB platform can collect resource information through agent automatic tools, support manual import and export of resource information, and can also adjust resource information through the web (World Wide Web). Specifically, when the network is in good condition, the agent can directly synchronize the collected information to the CMDB through the network protocol.

[0045] However, when the network status is complex, such as when the network is one-way in a hybrid cloud environment, the agent cannot actively report, and it is difficult to ensure the integrity of the resource information stored in the CMDB. For example, in the case of traffic restrictions, it is difficult to complete the automatic collection of resource information when the traffic exceeds the usage range. Therefore, the CMDB-based resource information management method in the relevant technology has a small scope of application, and it is difficult to ensure the accuracy and timeliness of the collected resource information in a complex network state.

[0046] Furthermore, the CMDB migration in the related art lacks the management of the complete life cycle of resource information and is unable to track the complete life cycle of resource information.

[0047] In the embodiments of the present disclosure, a resource configuration management method is first provided, which overcomes the defects existing in the above-mentioned related technologies at least to a certain extent.

[0048] Figure 1 The following is a flow chart of a resource configuration management method in an exemplary embodiment of the present disclosure. The resource configuration management method provided in this embodiment is applied to a cloud environment. The cloud environment includes a master node and a sub-node associated with the master node. The master node is deployed in a first cloud environment, and the sub-node is deployed in a second cloud environment. Figure 1 , the method comprising:

[0049] Step S110, monitoring resource information in a first configuration management database corresponding to each child node associated with the master node according to a preset rule;

[0050] Step S120: when it is detected that any resource information in the first configuration management database corresponding to any of the child nodes changes, the change information of the resource information is synchronized to the second configuration management database corresponding to the master node.

[0051] exist Figure 1In the technical solution provided by the illustrated embodiment, the master node can be deployed in the first cloud environment, and the sub-node can be deployed in the second cloud environment. Then, according to the preset rules, the resource information in the first configuration management database corresponding to each sub-node associated with the master node can be monitored. When any resource information in the first configuration management database corresponding to any sub-node is detected to have changed, the change information of the resource information is synchronized to the second configuration management database corresponding to the master node. Compared with the related art, the present disclosure can still collect resource information in an environment with poor network conditions by monitoring the first configuration management database corresponding to the sub-node, thereby improving the timeliness and accuracy of resource information collection.

[0052] The following Figure 1 The specific implementation methods of each step in the embodiment shown are described in detail:

[0053] In step S110, according to a preset rule, resource information in a first configuration management database corresponding to each child node associated with the master node is monitored.

[0054] In an exemplary embodiment, the cloud environment may include a hybrid cloud environment, which may include at least one master node and child nodes associated with each master node, wherein each master node and child nodes associated with the master node may form a cloud cluster.

[0055] In an exemplary implementation, each master node may be deployed in a first cloud environment, and each sub-node may be deployed in a second cloud environment, wherein the first cloud environment and the second cloud environment may be the same or different.

[0056] In an exemplary embodiment, the first cloud environment may include a public cloud environment, and the second cloud environment may include a private cloud environment. Of course, the first cloud environment may include a private cloud environment, that is, the master node may be deployed in a public cloud environment or in a private cloud environment, and this exemplary embodiment does not specifically limit this.

[0057] Among them, the public cloud environment can be understood as a service model in which a cloud service provider deploys IT (Internet Technology) infrastructure and performs operation and maintenance, and provides standardized, undifferentiated IT resources carried by the infrastructure to public customers, that is, an environment in which multiple parties share a cloud server to provide shared resource services. The private cloud environment can be understood as a product delivery model in which a cloud service provider builds IT infrastructure for a single customer, and the corresponding IT resources are only used by the customer's internal employees. The core feature of a private cloud environment is that cloud resources are only used by a certain customer, and other customers have no access. The hybrid cloud environment can be understood as a model that includes both public and private cloud environments.

[0058] Exemplarily, the master node being deployed in the first cloud environment can be understood as the master node being the first cloud environment, or the master node being at least one physical server (i.e., a real server) in the first cloud environment, or the master node being at least one virtual server in the first cloud environment, or the master node being at least one physical server and at least one virtual server in the first cloud environment. Similarly, the sub-node being deployed in the first cloud environment can be understood as the sub-node being the second cloud environment, or the sub-node being at least one physical server in the second cloud environment, or the sub-node being at least one virtual server in the second cloud environment, or the sub-node being at least one physical service and at least one virtual server in the second cloud environment, and this exemplary embodiment does not specifically limit this.

[0059] Taking the example that the first cloud environment is a public cloud environment and the second cloud environment is a private cloud environment, the master node can be a public cloud, or at least one physical server in a public cloud, or at least one virtual server in a public cloud, or at least one physical server and at least one virtual server in a public cloud. The child node can be a private cloud, or at least one physical service in a private cloud, or at least one virtual server in a private cloud, or at least one physical server and at least one virtual server in a private cloud.

[0060] Exemplarily, a first configuration management database may be configured for each child node, respectively, for storing and managing resource information of each host in the child node; a second configuration management database may also be configured for each master node, respectively, for storing and managing resource information of each host in each child node associated with the master node.

[0061] The resource information of the host may include one or more of the host's memory information, hard disk information, MAC (Media Access Control) address, IP (Internet Protocol) address, port number, and service information running in the host. The MAC address may also be understood as a local area network address, an Ethernet address, or a physical address. Of course, the specific resource information stored and managed in the first configuration management database and the second configuration management database may be customized according to user needs, and this exemplary embodiment does not specifically limit this.

[0062] Furthermore, a synchronization server can be configured for each master node respectively, and the synchronization server can monitor the resource information in the first configuration management database corresponding to each child node associated with the master node to achieve synchronous update and management of the resource information in the master node and each child node associated with it.

[0063] Exemplarily, a specific implementation of step S110 may be that each synchronization server monitors the resource information in the first configuration management database corresponding to each child node associated with its corresponding master node according to a preset rule.

[0064] In an exemplary embodiment, according to a preset rule, monitoring the resource information in the first configuration management database corresponding to each child node associated with the master node may include: according to the preset rule, obtaining the current data of the resource information in the first configuration management database corresponding to each child node associated with the master node; comparing the current data with the historical data of the resource information stored in the second configuration management database to monitor whether the resource information has changed. The preset rule may include real-time monitoring or periodic monitoring.

[0065] Exemplarily, according to the preset rule, monitoring the resource information in the first configuration management database corresponding to each child node associated with the master node may include: monitoring the resource information in the first configuration management database corresponding to each child node associated with the master node according to a preset period; or monitoring the resource information in the first configuration management database corresponding to each child node associated with the master node in real time. The preset period may be an equal interval period or an unequal interval period, which is not particularly limited in this exemplary embodiment.

[0066] Taking monitoring according to a preset period at equal intervals as an example, if the preset period is 10 minutes, the synchronization server obtains the current data of the resource information stored in each first configuration management database from the first configuration management database corresponding to each child node associated with the corresponding master node every 10 minutes. For each item of resource information, the current data of the resource information obtained is compared with the data of the resource information stored in the second configuration management database. When the two are inconsistent, it is determined that the resource information has changed. When the two are consistent, it is determined that the resource information has not changed.

[0067] As for real-time monitoring, it can be understood that the synchronization server can respond to the synchronization instruction of resource information sent by any child node in real time. In other words, when the resource information of the first configuration management database corresponding to a child node changes, the child node can send a synchronization instruction to the synchronization server corresponding to the master node associated with it, instructing the synchronization server to synchronize the change information of the current resource information of the first configuration management database to the second configuration management database corresponding to the master node.

[0068] In another exemplary embodiment, the synchronization server may also monitor the resource information change records stored in the first configuration management database corresponding to each child node associated with the corresponding master node according to preset rules, and determine whether the resource information stored in the first configuration management database has changed according to the newly monitored resource information change records. For example, if a new resource information change record is monitored during the current monitoring cycle, it is determined that the resource information in the first configuration management database corresponding to the child node to which the host corresponding to the resource information change record belongs has changed. Among them, the new resource information change record can be determined based on the timestamp corresponding to each resource information change record. If the time represented by the timestamp corresponding to a resource information change record is within the current monitoring cycle, the resource information change record is determined to be a new resource information change record.

[0069] Next, in step S120, when it is detected that any resource information in the first configuration management database corresponding to any of the child nodes changes, the change information of the resource information is synchronized to the second configuration management database corresponding to the master node.

[0070] Exemplarily, a specific implementation of step S120 may be that when the synchronization server detects a change in any resource information in the first configuration management database corresponding to any child node, the synchronization server synchronizes the change information of the resource information to the second configuration management database corresponding to the master node associated with the child node.

[0071] In an exemplary implementation, the change information of the resource information may include one or more of data after the resource information is changed or a change record of the resource information.

[0072] For example, when a change is detected in any resource information in the first configuration management database corresponding to any child node, the data after the change of the resource information and / or the change record of the resource information can be synchronized to the second configuration management database corresponding to the main node associated with the child node. For example, at the current monitoring moment, the memory information of host 1 obtained from the first configuration management database is 8G, and the memory information of host 1 stored in the second configuration management database is 4G, which indicates that the memory information of host 1 has changed, and the memory information of host 1 stored in the second configuration management database can be changed to 8G. The change record corresponding to the memory information of host 1 "4G before change, 8G after change, change time 22:22:22 on February 22, 2022" can also be synchronized to the second configuration management database. The changed memory information and the change record of the memory information can also be synchronized to the second configuration management database at the same time, and this exemplary embodiment does not make any special limitations on this.

[0073] For the resource information of each host in each child node, the change information of the resource information of the host can be monitored by the proxy service deployed in the host. Figure 2 In step S210 to step S220, the resource information of the host is monitored to determine whether the resource information of the host has changed.

[0074] In step S210, the proxy service deployed in the host monitors current data of resource information of the host, and compares the current data with historical data of resource information of the host stored in the first configuration management database;

[0075] In step S220, when the historical data is inconsistent with the current data, the resource information of the host stored in the first configuration management database is updated using the current data.

[0076] For example, the proxy service agent deployed in the host can periodically scan the current data of the resource information corresponding to each resource information identifier in the host according to the preset scanning cycle and the pre-configured resource information identifiers, and then compare the current data of each resource information with the data of the resource information stored in the first configuration management database corresponding to the host to which the resource information belongs. When the two are inconsistent, it indicates that the resource information in the host has changed, and the data of the resource information stored in the first configuration management database needs to be updated, then the scanned current data of the resource information can be updated to the first configuration management database. It is also possible to determine the change record of the changed resource information based on the current data and the historical data stored in the first configuration management database, and synchronize the change record to the first configuration management database. It is also possible to synchronize the change record of the resource information stored in the first configuration management database to the first configuration management database while updating the data of the resource information stored in the first configuration management database to the current data.

[0077] For example, the proxy service 1 deployed in host 1 scans that the current memory information of host 1 is 8G, and the child node to which host 1 belongs corresponds to the first configuration management database A, then the memory information 8G of host 1 is compared with the memory information of host 1 stored in the first configuration management database A. If the two are consistent, it is determined that the memory information of host 1 has not changed. If the two are inconsistent, it means that the resource information of host 1, such as memory information, has changed, then the current data of host 1's memory information is updated to 8G in the first configuration management database A. At the same time, the memory information change record of host 1 "before the change was 4G, after the change was 8G, change time: February 22, 2022 22:22:22" can be synchronized to the first configuration management database.

[0078] In an exemplary implementation, both the first configuration management database and the second configuration management database can be understood as CMDB. The CMDB platform includes a CMDB service and an agent service. The CMDB service is used to manage resource information, while the agent service is deployed in each host to collect resource information of the corresponding host, such as basic host information, hard disk information, service information running on the host, etc., and report the collected resource information to the CMDB service.

[0079] In the present disclosure, a set of CMDB services is deployed in each master node, and a set of CMDB services is also deployed in each sub-node associated with the master node, which can collect the current data of various resource information of the corresponding sub-node. When the data of the resource information stored in the sub-node changes, it can be synchronized to the CMDB corresponding to the master node through the synchronization server to ensure the accuracy of the data between the master node and each sub-node.

[0080] For example, when the host is expanded, the host memory, hard disk information, etc. will change. The agent deployed in the host detects the change in the host resource information and can synchronize the changed data to the CMDB in the child node. Then, the synchronization server corresponding to the master node associated with the child node can synchronize the change information corresponding to the change to the CMDB in the master node after monitoring the change in the CMDB in the child node. Automatic synchronization can ensure the collection and synchronization of resource information under complex network conditions.

[0081] After completing the collection of resource information, the CMDB platform can also manage the collected resource information. For example, it can confirm whether the collected resource information is correct. If it is incorrect, the resource information can be manually adjusted. Or a certain resource information can be manually added, such as marking the person in charge of a certain machine in a certain sub-node.

[0082] In an exemplary implementation, the resource information in all the sub-nodes associated with the master node can be managed by the master node, wherein the master node can complete the data adjustment of the resource information stored in the CMDB platform of the sub-node through the synchronization server.

[0083] Based on this, an exemplary implementation of adjusting and managing resource information in child nodes may be that the synchronization server responds to an adjustment operation on any resource information of any host in the second configuration management database corresponding to the master node, and synchronizes the change information of the resource information to the first configuration management database corresponding to the resource information, so as to manage the resource information stored in the first configuration management database.

[0084] Another exemplary implementation for adjusting and managing resource information in a child node may be that, in response to an adjustment operation on any resource information of any host in a first configuration management database corresponding to any child node, the synchronization server synchronizes the change information of the resource information to a second configuration management database corresponding to a main node associated with the child node, so as to manage the resource information stored in the first configuration management database.

[0085] In other words, when the resource information in the child node is adjusted and managed through the main node, the adjustment can be made in the main node, and then the main node can generate a first adjustment instruction based on the adjustment operation and send it to the synchronization server. After receiving the first adjustment instruction, the synchronization server can obtain the resource information adjusted by the main node from the first adjustment instruction, and synchronize the resource information adjusted in the main node to the corresponding child node; it can also be that certain resource information is adjusted directly in the child node, and then the child node generates a second adjustment instruction based on the adjustment operation and sends it to the synchronization server. When the synchronization service receives the second adjustment instruction, it can obtain the resource information adjusted in the child node from the second adjustment instruction, and synchronize the resource information adjusted in the child node to the corresponding main node.

[0086] When the same resource information is adjusted in both the master node and the child node, the synchronization server can retain the latest resource information according to the order of adjustment time and synchronize it to another configuration management database.

[0087] Based on this, another exemplary implementation of adjusting and managing resource information in a sub-node may be that, in response to simultaneously receiving a first adjustment instruction and a second adjustment instruction, the synchronization server determines a target adjustment instruction from the first adjustment instruction and the second adjustment instruction, the first adjustment instruction and the second adjustment instruction being determined based on adjustment operations on the same resource information in the second configuration management database and in the first configuration management database, respectively; and synchronizes change information of the resource information in the configuration management database corresponding to the target adjustment instruction to another configuration management database; wherein the target adjustment instruction is an adjustment instruction with a later adjustment time between the first adjustment instruction and the second adjustment instruction.

[0088] For example, in the first configuration management database, the person in charge of host 1 is marked as A, and the marking time is: 22:21:21 on February 8, 2022, and a second adjustment instruction is generated based on this information and sent to the synchronization server. In the second configuration management database, the person in charge of host 1 is marked as B, and the marking time is: 22:21:23 on February 8, 2022, and a first adjustment instruction is generated based on this information and sent to the synchronization server. The synchronization server received the first adjustment instruction and the second adjustment instruction at the same time at 22:21:24 on February 8, 2022. The synchronization server can determine the first adjustment instruction as the target adjustment instruction based on the adjustment time information in the first adjustment instruction and the second adjustment instruction, and then synchronize the resource information that the person in charge of host 1 is B to the first configuration management database.

[0089] In an exemplary implementation, the resource information of the host may include status information of devices related to the host, wherein the status information may include one or more of being in use, removed from shelves, and destroyed.

[0090] The status information of the device related to the host may include the status information of the host itself, and may also include the status information of other hardware devices in the host, such as whether the status of the hard disk 1 in the host 1 is in use, removed from the shelf, or destroyed.

[0091] Taking the status information of the host itself as an example, "in use" indicates that the host is currently being used in a certain child node; "delisted" indicates that the host is no longer used in the current child node, but the host itself has not been scrapped and can still be used by other child nodes; "destroyed" indicates that the host has been scrapped and is not suitable for use in other child nodes.

[0092] The status information of the device related to the host can be used to track the status flow of the device, and realize the complete life cycle tracking and management of resource information. For example, the device related to the host is the host itself. Figure 3 The state flow diagram of the complete life cycle of a server in an exemplary embodiment of the present disclosure is shown. Figure 3 , the method may include steps S310 to S370.

[0093] In step S310, purchase equipment; in step S320, the equipment information enters the CMDB platform; in step S330, use the equipment in the subnode; in step S340, repair the equipment; in step S350, determine whether the equipment can continue to be used, if yes, go to step S330, otherwise go to step S340; in step S360, scrap the equipment; in step S370, remove the equipment from the subnode, and go to step S320. The subnode in step S330 can be deployed in a private cloud environment.

[0094] For example, after purchasing a certain device, such as purchasing hard disk 1 with 8G memory, the resource information of hard disk 1 with 8G memory can be stored in a CMDB platform. At this time, the information of this resource is in the resource pool, and the resource has not been officially used. After hard disk 1 is used in subnode 1, the status of hard disk 1 is configured as in use. If hard disk 1 is no longer used in the subnode, the status of hard disk 1 in subnode 1 is changed from in use to removed from the shelf, and the information of hard disk 1 is stored in the resource pool again, indicating that hard disk 1 can still be used in other subnodes. If hard disk 1 has a problem during use in subnode 1, it can be repaired. If hard disk 1 is repaired successfully and it is determined that hard disk 1 needs to continue to be used in the subnode, hard disk 1 can continue to be used in the node, and the status information of hard disk 1 in subnode 1 is still in use. If it is determined that hard disk 1 cannot be repaired successfully, hard disk 1 is scrapped, and a new hard disk can be purchased and replaced, and the status information of hard disk 1 is configured as destroyed.

[0095] The status information of each resource information can be synchronized in the first configuration management database and the second configuration management database. In this way, the flow of resources in the configuration management database can be realized through the complete status information record, and then the complete flow status of the current resource can be tracked to realize the complete life cycle management of the resource.

[0096] In the present disclosure, the active monitoring method of the synchronization server can ensure the collection and synchronization of current data of various resource information of each host in the sub-node under complex network conditions, compared with the method of directly reporting through the proxy service, thereby improving the timeliness and accuracy of resource information synchronization.

[0097] At the same time, the CMDB platform deployed in each cloud cluster can manage the resource information of the current cluster. The master node can collect and uniformly manage the resource information of all child nodes to improve the management efficiency of resource information.

[0098] Furthermore, by marking the status information of resources, the complete life cycle management of resources can be realized, and the complete flow status of current resources can be tracked. With complete life cycle management, each resource can be effectively evaluated, so that the service provider can be rated.

[0099] In an exemplary implementation, it is also possible to select whether to collect resource information based on a synchronization service or based on a reporting method according to the current network condition. For example, when the network condition meets the preset conditions, the sub-node can synchronize the resource information change information in the sub-node to the master node by reporting; when the network condition does not meet the preset conditions, the sub-node can synchronize the resource information change information in the sub-node to the master node by reporting. Figure 1The method described is that the synchronization service performs active monitoring to synchronize the change information of the resource information in the sub-node to the main node. The preset condition indicates that the current network condition is good and the sub-node can access the main node.

[0100] Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments are implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, the above functions defined by the above method provided by the present invention are performed. The program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk.

[0101] In addition, it should be noted that the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0102] Next, Figure 4 FIG. 1 is a schematic diagram showing a structure of a resource configuration management system in an exemplary embodiment of the present disclosure, and the resource configuration management system can be applied to a hybrid cloud environment. Figure 4 The resource configuration management system may include at least one master node 41, a sub-node 42 associated with each master node, a first configuration management database 43 configured for each sub-node, a second configuration management database 44 configured for the master node, and a synchronization server 45 configured for the master node. The synchronization server 45 configured for each master node is used to monitor the resource information in the first configuration management database 43 corresponding to each sub-node 42 associated with the master node 41 according to a preset rule, and when any resource information in the first configuration management database 43 corresponding to any sub-node 42 is detected to change, the change information of the resource information is synchronized to the second configuration management database 44 corresponding to the master node 41.

[0103] In an exemplary implementation, each master node is deployed in a first cloud environment, and each child node is deployed in a second cloud environment. The description of the first cloud environment and the second cloud environment can refer to the explanations thereof in the above-mentioned embodiment corresponding to the resource configuration management method, and will not be repeated here.

[0104] In an exemplary embodiment, the first configuration management database configured for each child node is used to store resource information of each host in the child node; the second configuration management database configured for each master node is used to store resource information of each host in each child node associated with the master node.

[0105] In an exemplary embodiment, the system also includes an agent service deployed in each host, and the agent service is used to monitor the resource information of the host, and when it is detected that the resource information of the host has changed, the change information of the resource information is synchronized to the first configuration management database corresponding to the sub-node to which the host belongs.

[0106] In an exemplary embodiment, the resource information of the host includes status information of devices related to the host, and the status information includes one or more of in use, removed from the shelf, and destroyed; any of the above-mentioned configuration management databases is also used to determine the current status information of the host in response to a query operation on the current status information of any host in any configuration management database; and / or any of the above-mentioned configuration management databases is also used to determine the status flow trace of the device according to time sequence in response to a trace query operation on the status information of any device related to the host in any configuration management database.

[0107] For example, the current status information of a resource can be queried in any of the above-mentioned resource configuration management databases, and the status flow information of a resource can also be queried in any of the above-mentioned resource configuration management databases. For example, the status flow trace of the resource can be determined according to the chronological order of the status marking time.

[0108] For example, when querying the status flow information of host 1 in the second configuration management database 1 corresponding to the main node 1, it is found that the status information of host 1 in child node 1 from January 1, 2022 to January 31, 2022 is in use, the status information of host 1 in child node 1 on February 1, 2022 is delisted, and the status information in child node 2 on February 2, 2022 is in use. Then the status flow trace of host 1 can be obtained as follows: used in child node 1 from January 1, 2022 to January 31, 2022, delisted in child node 1 on February 1, 2022, and used in child node 2 from February 2, 2022 to the present.

[0109] In an exemplary embodiment, the resource information of the host includes one or more of the host's memory information, hard disk information, MAC address, IP address, port number, and service information running in the host.

[0110] In an exemplary embodiment, the synchronization server 45 is also used to respond to a first adjustment instruction sent by the master node 41, synchronize the change information of the resource information of the host indicated by the first adjustment instruction to the first configuration management database corresponding to the child node to which the host belongs, so as to manage the resource information in the child node, and the first adjustment instruction is determined based on the adjustment operation of any resource information in the second configuration management database corresponding to the master node; and / or the synchronization server 45 is also used to respond to a second adjustment instruction sent by any of the child nodes, synchronize the change information of the resource information of the host indicated by the second adjustment instruction to the second configuration management database corresponding to the master node associated with the child node, so as to manage the resource information in the child node, and the second adjustment instruction is determined based on the adjustment operation of any resource information of any host in the first configuration management database corresponding to any of the child nodes.

[0111] In an exemplary embodiment, the synchronization server 45 is further configured to, in response to simultaneously receiving a first adjustment instruction sent by the master node and a second adjustment instruction sent by the child node, determine a target adjustment instruction from the first adjustment instruction and the second adjustment instruction, and synchronize the change information of the resource information in the configuration management database indicated by the target adjustment instruction to another configuration management database;

[0112] Among them, the first adjustment instruction and the second adjustment instruction are determined based on the adjustment operation of the same resource information in the second configuration management database corresponding to the main node and the first configuration management database corresponding to any child node associated with the main node, and the target adjustment instruction is the adjustment instruction with a later adjustment time between the first adjustment instruction and the second adjustment instruction.

[0113] In an exemplary embodiment, the synchronization server monitors the resource information in the first configuration management database corresponding to each child node associated with the main node according to preset rules, including: the synchronization server obtains the current data of the resource information in the first configuration management database corresponding to each child node associated with the main node according to the preset rules; the synchronization server compares the current data with the historical data of the resource information stored in the second configuration management database to monitor whether the resource information has changed.

[0114] In an exemplary embodiment, the synchronization server monitors the resource information in the first configuration management database corresponding to each child node associated with the main node according to preset rules, including: the synchronization server monitors the resource information in the first configuration management database corresponding to each child node associated with the main node according to a preset period; or the synchronization server monitors the resource information in the first configuration management database corresponding to each child node associated with the main node in real time.

[0115] The specific implementation details of each implementation method in the above resource configuration management system have been described in detail in the corresponding resource configuration management method, and will not be repeated here.

[0116] Exemplarily, the cloud environment in the present disclosure may be a hybrid cloud environment. A hybrid cloud environment is an IT architecture. The environment in the hybrid cloud varies from enterprise to enterprise and may include, but is not limited to: at least one private cloud and at least one public cloud, two or more interconnected private clouds, two or more public clouds, and a bare metal or virtual environment connected to at least one public cloud or private cloud.

[0117] Figure 5 A schematic diagram of the structure of another resource configuration management system in a hybrid cloud environment in an exemplary embodiment of the present disclosure is shown. Figure 5 The resource configuration management system in a hybrid cloud environment may include a central node 51, a private cloud node 52 associated with the central node 51, a first configuration management database 53 configured for each private cloud node, a second configuration management database 54 configured for each central node, a synchronization service 55 configured for each central node, and an agent service 56 deployed in each host of each private cloud node.

[0118] The proxy service 56 deployed in each host of each private cloud can check the changes of resource information in the host and report the changed information to the first configuration management database 53 corresponding to the corresponding private cloud node 52. At the same time, after monitoring the change, the synchronization service 55 corresponding to the central node 51 can synchronize the changed data to the second configuration management database 54 corresponding to the central node 51, thereby realizing the collection and synchronization of resource information.

[0119] Figure 5 The central node in the illustrated embodiment can be understood as the above-mentioned master node, and the private cloud node can be understood as the above-mentioned child node. Among them, the central node can be a public cloud.

[0120] In an exemplary embodiment, a proxy service may also be deployed in each host in the central node 51, but the proxy service deployed in the host of the central node 51 is only used to synchronize the resource information of the host in the central node 51 to the first configuration management database corresponding to the central node 51, and the resource information will not be synchronized to the child nodes through the synchronization service.

[0121] Figure 6 FIG. 1 is a schematic diagram showing the structure of a resource configuration management device in an exemplary embodiment of the present disclosure. Figure 6 The resource configuration management device 600 is applied to a cloud environment, the cloud environment includes a master node and a sub-node associated with the master node, the master node is deployed in a first cloud environment, and the sub-node is deployed in a second cloud environment. The device 600 may include a monitoring module 610 and a synchronization module 620. Among them:

[0122] The monitoring module 610 is configured to monitor resource information in a first configuration management database corresponding to each child node associated with the master node according to a preset rule;

[0123] The synchronization module 620 is configured to synchronize the change information of the resource information to the second configuration management database corresponding to the master node when detecting a change in any resource information in the first configuration management database corresponding to any of the child nodes.

[0124] In some exemplary embodiments of the present disclosure, the first configuration management database corresponding to each child node is used to store resource information of each host in the child node, and the second configuration management database corresponding to the main node is used to store resource information of each host in each child node associated with the main node.

[0125] In some exemplary embodiments of the present disclosure, resource information of each host is determined by a proxy service deployed in the host; for each host, the proxy service deployed in the host determines the resource information of the host in the following manner: the proxy service deployed in the host monitors current data of the resource information of the host, and compares the current data with historical data of the resource information of the host stored in the first configuration management database; when the historical data is inconsistent with the current data, the current data is used to update the resource information of the host stored in the first configuration management database.

[0126] In some exemplary embodiments of the present disclosure, based on the aforementioned embodiments, monitoring the resource information in the first configuration management database corresponding to each child node associated with the main node according to preset rules includes: obtaining current data of the resource information in the first configuration management database corresponding to each child node associated with the main node according to preset rules; comparing the current data with the historical data of the resource information stored in the second configuration management database to monitor whether the resource information has changed.

[0127] In some exemplary embodiments of the present disclosure, based on the aforementioned embodiments, monitoring the resource information in the first configuration management database corresponding to each child node associated with the main node according to preset rules includes: monitoring the resource information in the first configuration management database corresponding to each child node associated with the main node according to a preset period; or monitoring the resource information in the first configuration management database corresponding to each child node associated with the main node in real time.

[0128] In some exemplary embodiments of the present disclosure, based on the foregoing embodiments, the device 600 further includes a first adjustment unit and / or a second adjustment unit. The first adjustment unit is configured to, in response to an adjustment operation on any resource information of any host in the second configuration management database, synchronize the change information of the resource information to the first configuration management database corresponding to the resource information, so as to manage the resource information stored in the first configuration management database; the second adjustment unit is configured to, in response to an adjustment operation on any resource information of any host in the first configuration management database corresponding to any sub-node, synchronize the change information of the resource information to the second configuration management database corresponding to the master node associated with the sub-node, so as to manage the resource information stored in the first configuration management database.

[0129] In some exemplary embodiments of the present disclosure, based on the aforementioned embodiments, the device 600 may further include a third adjustment unit, wherein the third adjustment unit is configured to determine a target adjustment instruction from the first adjustment instruction and the second adjustment instruction in response to simultaneously receiving a first adjustment instruction and a second adjustment instruction, wherein the first adjustment instruction and the second adjustment instruction are determined based on adjustment operations on the same resource information in the second configuration management database and in the first configuration management database, respectively; synchronize change information of the resource information in the configuration management database corresponding to the target adjustment instruction to another configuration management database; wherein the target adjustment instruction is an adjustment instruction with a later adjustment time between the first adjustment instruction and the second adjustment instruction.

[0130] In some exemplary embodiments of the present disclosure, based on the aforementioned embodiments, the resource information of the host includes status information of devices related to the host; wherein the status information includes one or more of in use, removed from shelves, and destroyed.

[0131] In some exemplary embodiments of the present disclosure, based on the aforementioned embodiments, the resource information of the host includes one or more of the host's memory information, hard disk information, MAC address, IP address, port number, and service information running in the host.

[0132] The specific details of each unit or module in the above resource configuration management device have been described in detail in the corresponding resource configuration management method, so they will not be repeated here.

[0133] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0134] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0135] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0136] In the exemplary embodiments of the present disclosure, a computer storage medium capable of implementing the above method is also provided. A program product capable of implementing the above method of this specification is stored thereon. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.

[0137] refer to Figure 7 As shown, a program product 700 for implementing the above method according to an embodiment of the present disclosure is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0138] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0139] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0140] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0141] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0142] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0143] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0144] Refer to the following Figure 8 The electronic device 800 according to this embodiment of the present disclosure is described. Figure 8 The electronic device 800 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0145] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one storage unit 820, a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810), and a display unit 840.

[0146] The storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 performs the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 810 can perform the following steps: Figure 1As shown in: Step S110, according to preset rules, monitor the resource information in the first configuration management database corresponding to each child node associated with the main node; Step S120, when it is monitored that any resource information in the first configuration management database corresponding to any of the child nodes changes, synchronize the change information of the resource information to the second configuration management database corresponding to the main node, wherein the main node is deployed in the first cloud environment and the child node is deployed in the second cloud environment.

[0147] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 8201 and / or a cache memory unit 8202 , and may further include a read-only memory unit (ROM) 8203 .

[0148] The storage unit 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0149] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0150] The electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 800, and / or communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 850. Furthermore, the electronic device 800 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 860. As shown, the network adapter 860 communicates with other modules of the electronic device 800 via a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0151] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0152] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0153] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

Claims

1. A resource configuration management method, characterized in that: Applied to a cloud environment, the cloud environment includes a master node and a sub-node associated with the master node, the master node is deployed in a first cloud environment, the sub-node is deployed in a second cloud environment, the master node is configured with a synchronization server, the synchronization server is used to execute the resource configuration management method, the method includes: According to a preset rule, monitoring resource information in a first configuration management database corresponding to each child node associated with the master node; When any resource information in the first configuration management database corresponding to any of the sub-nodes is monitored to change, the change information of the resource information is synchronized to the second configuration management database corresponding to the master node, the first configuration management database corresponding to each sub-node is used to store the resource information of each host in the sub-node, and the second configuration management database corresponding to the master node is used to store the resource information of each host in each sub-node associated with the master node; In response to an adjustment operation on any resource information of any host in the second configuration management database, synchronizing the change information of the resource information to the first configuration management database corresponding to the resource information, so as to manage the resource information stored in the first configuration management database, and / or, in response to an adjustment operation on any resource information of any host in the first configuration management database corresponding to any child node, synchronizing the change information of the resource information to the second configuration management database corresponding to the master node associated with the child node, so as to manage the resource information stored in the first configuration management database; In response to simultaneously receiving a first adjustment instruction and a second adjustment instruction, determining a target adjustment instruction from the first adjustment instruction and the second adjustment instruction, the first adjustment instruction and the second adjustment instruction being determined based on adjustment operations on the same resource information in the second configuration management database and in the first configuration management database, respectively, the adjustment operations comprising manual adjustment operations; Synchronize the change information of the resource information in the configuration management database corresponding to the target adjustment instruction to another configuration management database; The target adjustment instruction is the adjustment instruction with a later adjustment time between the first adjustment instruction and the second adjustment instruction; The resource information includes resource information of each host in the subnode, the resource information of the host includes status information of the host, the resource information of the host includes status information of devices related to the host, and the status information includes one or more of in use, removed from shelves, and destroyed.

2. The resource configuration management method according to claim 1, characterized in that: Resource information of each host is determined by a proxy service deployed in the host; For each host, the proxy service deployed in the host determines the resource information of the host in the following manner: The proxy service deployed in the host monitors current data of resource information of the host, and compares the current data with historical data of resource information of the host stored in the first configuration management database; When the historical data is inconsistent with the current data, the resource information of the host stored in the first configuration management database is updated using the current data.

3. The resource configuration management method according to claim 1, characterized in that: The monitoring, according to a preset rule, of resource information in a first configuration management database corresponding to each child node associated with the master node includes: According to a preset rule, obtaining current data of resource information in a first configuration management database corresponding to each of the child nodes associated with the master node; The current data is compared with the historical data of the resource information stored in the second configuration management database to monitor whether the resource information has changed.

4. The resource configuration management method according to claim 1, characterized in that: The monitoring of resource information in the first configuration management database corresponding to each child node associated with the master node according to a preset rule includes: Monitoring resource information in a first configuration management database corresponding to each child node associated with the master node according to a preset period; or The resource information in the first configuration management database corresponding to each child node associated with the master node is monitored in real time.

5. The resource configuration management method according to claim 1, characterized in that: The resource information of the host includes one or more of the host's memory information, hard disk information, MAC address, IP address, port number, and service information running in the host.

6. A resource configuration management system, characterized in that: include: At least one master node, a child node associated with each of the master nodes, a first configuration management database configured for each child node, a second configuration management database configured for each master node, and a synchronization server configured for each master node, wherein the first configuration management database configured for each child node is used to store resource information of each host in the child node, and the second configuration management database configured for each master node is used to store resource information of each host in each child node associated with the master node, wherein the master node is deployed in a first cloud environment, and the child node is deployed in a second cloud environment; The synchronization server configured for each master node is used to monitor the resource information in the first configuration management database corresponding to each child node associated with the master node according to preset rules, and when any of the resource information in the first configuration management database corresponding to any child node is detected to change, the change information of the resource information is synchronized to the second configuration management database corresponding to the master node; The synchronization server is further used for synchronizing the change information of the resource information to the first configuration management database corresponding to the resource information in response to an adjustment operation on any resource information of any host in the second configuration management database, so as to manage the resource information stored in the first configuration management database, and / or, in response to an adjustment operation on any resource information of any host in the first configuration management database corresponding to any child node, synchronizing the change information of the resource information to the second configuration management database corresponding to the master node associated with the child node, so as to manage the resource information stored in the first configuration management database; The synchronization server is further configured to, in response to simultaneously receiving a first adjustment instruction sent by the master node and a second adjustment instruction sent by the child node, determine a target adjustment instruction from the first adjustment instruction and the second adjustment instruction, and synchronize the change information of the resource information in the configuration management database indicated by the target adjustment instruction to another configuration management database; The first adjustment instruction and the second adjustment instruction are determined based on adjustment operations on the same resource information in the second configuration management database corresponding to the master node and the first configuration management database corresponding to any child node associated with the master node, respectively; the target adjustment instruction is the adjustment instruction with a later adjustment time between the first adjustment instruction and the second adjustment instruction; and the adjustment operation includes a manual adjustment operation; The resource information includes resource information of each host in the subnode, the resource information of the host includes status information of the host, the resource information of the host includes status information of devices related to the host, and the status information includes one or more of in use, removed from shelves, and destroyed.

7. The resource configuration management system according to claim 6, characterized in that: The system also includes an agent service deployed in each host, which is used to monitor the resource information of the host and synchronize the change information of the resource information to the first configuration management database corresponding to the subnode to which the host belongs when the resource information of the host is monitored to change.

8. The resource configuration management system according to claim 6, characterized in that: Any configuration management database is further used to determine the current status information of any host in response to a query operation on the current status information of any host in any configuration management database; and / or Any of the configuration management databases is further used to determine the state flow trace of the device according to the time sequence in response to a trace query operation on the state information of any device related to the host in any of the configuration management databases.

9. The resource configuration management system according to claim 6, characterized in that: The resource information of the host includes one or more of the host's memory information, hard disk information, MAC address, IP address, port number, and service information running in the host.

10. A resource configuration management device, characterized in that: Applied to a cloud environment, the cloud environment includes a master node and a sub-node associated with the master node, the master node is deployed in a first cloud environment, the sub-node is deployed in a second cloud environment, the master node is configured with a synchronization server, the device is deployed in the synchronization server, and the device includes: A monitoring module, configured to monitor resource information in a first configuration management database corresponding to each child node associated with the master node according to a preset rule; A synchronization module is configured to synchronize the change information of the resource information to the second configuration management database corresponding to the master node when monitoring any change of any resource information in the first configuration management database corresponding to any of the sub-nodes, wherein the first configuration management database corresponding to each sub-node is used to store the resource information of each host in the sub-node, and the second configuration management database corresponding to the master node is used to store the resource information of each host in each sub-node associated with the master node; The first adjustment unit and / or the second adjustment unit, wherein the first adjustment unit is configured to, in response to an adjustment operation on any resource information of any host in the second configuration management database, synchronize the change information of the resource information to the first configuration management database corresponding to the resource information, so as to manage the resource information stored in the first configuration management database; the second adjustment unit is configured to, in response to an adjustment operation on any resource information of any host in the first configuration management database corresponding to any child node, synchronize the change information of the resource information to the second configuration management database corresponding to the master node associated with the child node, so as to manage the resource information stored in the first configuration management database; A third adjustment unit is configured to, in response to simultaneously receiving a first adjustment instruction and a second adjustment instruction, determine a target adjustment instruction from the first adjustment instruction and the second adjustment instruction, and synchronize change information of resource information in the configuration management database corresponding to the target adjustment instruction to another configuration management database, wherein the first adjustment instruction and the second adjustment instruction are determined based on adjustment operations on the same resource information in the second configuration management database and in the first configuration management database respectively, the target adjustment instruction is the adjustment instruction with a later adjustment time between the first adjustment instruction and the second adjustment instruction, and the adjustment operation includes a manual adjustment operation; The resource information includes resource information of each host in the subnode, and the resource information of the host includes status information of devices related to the host, and the status information includes one or more of in use, removed from shelves, and destroyed.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the resource configuration management method according to any one of claims 1 to 5 is implemented.

12. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the resource configuration management method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Cluster monitor and management method and system

    CN104468274A

  • CMDB-based resource allocation management system and management method

    CN111682963A