Resource monitoring device, system, resource monitoring method, electronic device and medium

By setting up resource monitoring devices in large-scale systems, the problem of untimely resource monitoring caused by distributed deployment is solved, and timely monitoring of resources and system stability are ensured.

CN113849378BActive Publication Date: 2024-11-29JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In large-scale systems, distributed deployment results in varying amounts of resources in different regions, with varying resource stability, making it impossible to monitor resources in different deployments in a timely manner.

Method used

By setting up resource monitoring devices within the monitoring area, including a resource mapping module, a resource processing module, and a fault aggregation module, resource mapping data is stored and updated, anomaly monitoring is performed, resource monitoring data is generated, and maintenance personnel are promptly notified.

Benefits of technology

It enables timely monitoring of resources within the monitoring area, ensuring the normal operation of resources and the stability of the system, reducing the cost of transformation, and avoiding problems of monitoring omissions and untimely monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113849378B_ABST
    Figure CN113849378B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a resource monitoring device, system, resource monitoring method, electronic device and medium. The resource monitoring device includes: a resource mapping module, a resource processing module and a fault collection module, wherein the resource mapping module is used to store resource mapping data in the monitoring area, and receive resource status information of each resource in the monitoring area, and update the resource mapping data based on the received resource status information, wherein the resource mapping data includes each resource information and resource status information; the resource processing module is used to determine the current resource monitoring data according to the updated resource mapping data, and send the current resource monitoring data to the fault collection module; the fault collection module is used to receive the current resource monitoring data, and update the fault resource information in the monitoring area based on the data. By monitoring the resource mapping data, the normal operation of each resource in the monitoring area and the stability of the system operation are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of resource monitoring technology, and in particular to a resource monitoring device, system, resource monitoring method, electronics and medium. Background Art

[0002] Large-scale systems include a large number of resources to ensure the execution of business. In some large-scale systems, the system structure can be deployed in different areas. At the same time, as the number of system nodes increases, the failure of resources will also increase.

[0003] However, in the process of implementing the present invention, the inventors found that there are at least the following technical problems in the prior art: due to the distributed deployment of large-scale systems, the number of resources in different areas is different, the resource stability is also different, and it is impossible to monitor the resources of different deployments in a timely manner. Summary of the invention

[0004] The embodiments of the present invention provide a resource monitoring device, a system, a resource monitoring method, an electronic device and a medium to realize timely monitoring of resources in each monitoring area.

[0005] In a first aspect, an embodiment of the present invention provides a resource monitoring device, which includes a resource mapping module, a resource processing module and a fault collection module, wherein:

[0006] The resource mapping module is used to store resource mapping data in the monitoring area, and receive resource status information of each resource in the monitoring area, and update the resource mapping data based on the received resource status information, wherein the resource mapping data includes each resource information and resource status information;

[0007] The resource processing module is used to determine the current resource monitoring data according to the updated resource mapping data, and send the current resource monitoring data to the fault collection module;

[0008] The fault collection module is used to receive the current resource monitoring data and update the fault resource information within the monitoring area based on the current resource monitoring data.

[0009] In a second aspect, an embodiment of the present invention further provides a resource monitoring system, comprising a plurality of resource monitoring devices provided by the above embodiments.

[0010] In a third aspect, an embodiment of the present invention further provides a resource monitoring method, including:

[0011] Receiving resource status information of each resource in the monitoring area, and updating the resource mapping data based on the received resource status information, wherein the resource mapping data includes each resource information and resource status information;

[0012] The current resource monitoring data is determined according to the updated resource mapping data, and the fault resource information within the monitoring area is updated based on the updated resource mapping data.

[0013] In a fourth aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a resource monitoring method as provided in any embodiment of the present invention is implemented.

[0014] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a resource monitoring method as provided in any embodiment of the present invention.

[0015] The technical solution provided by the embodiment of the present invention is to set a resource monitoring device in each monitoring area, store resource mapping data of each resource in the monitoring area, and update the resource mapping data. By performing abnormal monitoring on the resource mapping data at each moment, the resource monitoring data in the monitoring area is obtained, which is convenient for prompting operators through the resource monitoring data, and timely maintaining or updating abnormal resources, thereby ensuring the normal operation of each resource in the monitoring area and the stability of system operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of the structure of a resource monitoring device provided by an embodiment of the present invention;

[0017] Figure 2 is a monitoring schematic diagram of a resource monitoring device provided by an embodiment of the present invention;

[0018] Figure 3 is a structural diagram of a resource monitoring system provided by an embodiment of the present invention;

[0019] Figure 4 is a flow chart of a resource monitoring method provided by an embodiment of the present invention;

[0020] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0022] Figure 1The schematic diagram of the structure of a resource monitoring device provided by an embodiment of the present invention includes a resource mapping module 101, a resource processing module 102 and a fault collection module 103, wherein:

[0023] The resource mapping module 101 is used to store resource mapping data in the monitoring area, and receive resource status information of each resource in the monitoring area, and update the resource mapping data based on the received resource status information, wherein the resource mapping data includes each resource information and resource status information;

[0024] The resource processing module 102 is used to determine the current resource monitoring data according to the updated resource mapping data, and send the current resource monitoring data to the fault collection module 103;

[0025] The fault collection module 103 is used to receive current resource monitoring data and update fault resource information within the monitoring area.

[0026] In this embodiment, the distributed system can be a subsystem set up in different areas. For example, taking a company as an example, the subsidiaries set up in various places can be used as a subsystem. Taking the financial system as an example, the branches set up in various places can be used as subsystems of the financial system. A large number of resources are deployed in each subsystem to ensure the normal operation of the subsystem. Resources can include physical resources and virtual resources. For example, physical resources can include but are not limited to electronic devices such as terminals, PCs, servers, physical machines, etc., and virtual resources can include but are not limited to virtual machines, same-element virtual machines, networks and storage systems, etc. For example, see Figure 2 , Figure 2 : is a monitoring schematic diagram of a resource monitoring device provided by an embodiment of the present invention. Figure 2 The schematic diagram of the distributed architecture is included, wherein a plurality of fault zones are included in one availability zone, each of which is independently powered to ensure that each fault zone does not affect each other, and a plurality of racks are arranged in any fault zone to carry a plurality of electronic devices, which may be servers, and each electronic device (such as a server) may be configured with a plurality of virtual resources, such as virtual machines. The electronic devices and virtual resources are resources in the availability zone, and the stability monitoring of the resources in each availability zone in the monitoring area can be realized through the resource monitoring device.

[0027] It should be noted that Figure 2 The distributed architecture is only an example. In other embodiments, the number of available zones in the monitoring area where the resource monitoring device is located, the number of fault zones in any available zone, the number of racks set up in any fault zone, the type and number of devices carried by any rack, and the type and number of virtual resources configured on each device are not limited.

[0028] In this embodiment, a resource monitoring device is set in each monitoring area, and the resource monitoring device can be integrated in an electronic device, such as a server, a computer or a terminal device. The resource monitoring device is used to monitor the status of all resources in the monitoring area to determine the normal operation of the subsystem in the monitoring area. At the same time, when a resource failure or a risk of resource failure is detected, an alarm message or prompt message is generated in time, and provided to maintenance personnel for resource maintenance to ensure the stability of the resources. Among them, the monitoring area where each resource monitoring device is located may include one or more subsystems, which is not limited to this. By uniformly monitoring the resources in the monitoring area, there is no need to monitor and modify the subsystem or each resource, which reduces the compatibility problems existing in the modification of different equipment and reduces the cost consumption caused by the modification. At the same time, resource monitoring devices are set for different monitoring areas respectively, so that the same monitoring method is sampled for different monitoring areas, avoiding the situation of missing or untimely monitoring caused by different monitoring strengths in different monitoring areas.

[0029] Each resource monitoring device includes a resource mapping module 101, a resource processing module 102102 and a fault collection module 103, wherein the resource mapping module 101 stores resource mapping data within the monitoring area, and the resource mapping data may be in the form of a list, a data set, a data link, etc., and the storage form of the resource mapping data is not limited. For any resource, the resource mapping data includes resource information of the resource, and the resource information may include resource information and resource location. For physical resources, the resource information may be a resource number, and the resource location may include the region identifier, available zone identifier, fault domain identifier, and rack identifier of the physical resource. For virtual resources, the resource information may be a resource number, and the resource location may include the region identifier, available zone identifier, fault domain identifier, rack identifier, and object device identifier of the physical resource. Among them, each identifier may be in the form of a character, a number, etc., and is used to uniquely mark each type of information, and this is not limited. For example, the region identifier, available zone identifier, fault domain identifier, rack identifier, and object device identifier may be the region number, available zone number, fault domain number, rack number, and object device number, respectively. It should be noted that the resource location can be determined according to the settings of the distributed architecture. For example, if Figure 2 In the distributed structure, if any level is added or deleted, the resource location will be increased or decreased accordingly. For example, if a partition area is added between the fault domain and the availability zone, the corresponding resource location includes the identifier corresponding to the added area.

[0030] In this embodiment, resource information of each resource in the monitoring area where the resource monitoring device is located is obtained to form resource mapping data. The resource mapping data also includes resource status information. In some embodiments, the resource status information may include a resource status identifier, such as a normal operation identifier and an abnormal operation identifier. In some embodiments, the resource status information may include multiple parameter information for characterizing the resource status, and the parameter information includes but is not limited to CPU operating parameters, remaining storage space, remaining memory, etc.

[0031] The resource processing module 102 traverses the resource status information of each resource in the resource mapping data, determines whether there are resources in an abnormal state, such as resources with an abnormal operation flag, or obtains the resource in an abnormal state by analyzing multiple parameter information corresponding to each resource, obtains monitoring data of each resource, and realizes monitoring of each resource in the monitoring area. Among them, obtaining the resource in an abnormal state by analyzing multiple parameter information corresponding to each resource can be comparing each parameter information through a threshold value of each parameter information, and if any parameter information of the resource meets the abnormal condition corresponding to the threshold value, it is determined that the resource is in an abnormal state.

[0032] In order to facilitate the resource processing module 102 to process the resource mapping data stored in the resource mapping module 101, in some embodiments, the resource mapping data can be stored in a classified manner. Optionally, the resource mapping data can be stored in a classified manner according to the resource location of each resource. Exemplarily, the resources of each available zone are stored separately based on the available zone identifier, for example, in different storage spaces or different lists; or the resources of each fault zone are stored separately based on the fault zone identifier, for example, in different storage spaces or different lists, so as to facilitate the resource processing module 102 to traverse by available zones or fault domains to avoid omissions caused by confusion in resource mapping data.

[0033] Optionally, classified storage is performed according to the business system to which each resource belongs. In the monitoring area where the resource monitoring device is located, each resource can support multiple business systems. For example, taking financial business as an example, the business system can include but is not limited to a payment business system, a settlement business system, and a reimbursement business system. Each business system deploys multiple resources respectively, and classifies and stores the resource mapping data according to the business system identifier corresponding to each resource, such as storing it in different storage spaces or different lists, that is, the resource mapping data stored in the resource mapping module 101 includes resource mapping data corresponding to multiple business systems respectively. Each business system is composed of multiple business nodes, and each business node can correspond to a resource. Accordingly, the resource mapping data corresponding to any business system includes resource information and resource status information corresponding to each business node in the business system. Among them, the business node is a module or function that can be independently divided in the business system. For example, the database module can be used as a business node. The business nodes in the business system can be set according to the needs of the business system. The type and number of business nodes are not limited here.

[0034] For example, see Figure 2 , Figure 2 The resource mapping data is classified and stored according to the business system identifier corresponding to each resource, and is stored in different mapping chains. Each business node in the business system can be set with a node identifier. For example, for business system X, it can be marked in the form of x-1, x-2, xn. The multiple resources corresponding to the business system respectively carry and run part of the modules or functions of the business system, such as Figure 2 In the example, the three virtual machines corresponding to the business node xi are used to execute the functions of the business node xi, and the two servers corresponding to the business node yi are used to execute the functions of the business node yi. Each business node runs on multiple independent resources to form a high-availability architecture, thereby improving the stability and availability of each business node. It should be noted that the resources corresponding to each business node in the same business system can be virtual resources or physical resources, without limitation.

[0035] Figure 2The business system X includes business resource nodes xi, xj and xk. Correspondingly, the resource mapping chain (i.e., resource mapping data) of the business system X includes resource information and resource status information of resources corresponding to each business node in the business system X. Similarly, the resource mapping chain of the business system Y includes resource information and resource status information of resources corresponding to each business node in the business system Y. The resource processing module 102 can use the business system identifier as an index to traverse the resource mapping data corresponding to each business system respectively to ensure the stability of the operation of each business system. At the same time, for the resource mapping data stored in a chain, the corresponding resources of each business node are monitored in sequence from one end to the other end of the resource mapping chain to avoid missing any resource.

[0036] In case of changes in resource information of each resource, such as changes in resource location, changes in business systems or business nodes corresponding to resources, and changes in the increase or decrease of resources, the resource mapping module 101 is used to receive resource change information of any business node and update the resource mapping data based on the resource change information. By updating the resource mapping data, the accuracy of each resource information in the resource mapping data is guaranteed.

[0037] In the collection of the above-mentioned embodiment, in view of the change of resource status information of each resource, the resource mapping module 101 receives the resource status information of each resource in the monitoring area, and updates the resource mapping data based on the received resource status information. The resource status information received by the resource mapping module 101 carries resource information, and matches the resource information in the resource mapping data to determine the successfully matched resource information, and replaces the resource status information in the original resource mapping data with the currently received resource status information. Among them, each resource status information carries a timestamp, and the time sequence of the resource status information can be verified by the timestamp.

[0038] Optionally, the resource status information is sent periodically by the corresponding resource, and the sending period of the resource status information is determined by the importance level and / or risk level of the business system to which the corresponding resource belongs. In some embodiments, the sending period of the resource status information of multiple resources corresponding to the same business system may be the same, for example, determined according to one or both of the importance level and risk level of the business system to which the corresponding resource belongs. The higher the importance level, the smaller the sending period of the resource status information. For example, the sending period corresponding to the highest level business system may be 1 minute / time, so as to perform high-precision monitoring of the resources corresponding to the critical business system; the higher the risk level, the smaller the sending period of the resource status information, so as to perform high-precision monitoring of the resources corresponding to the high-risk business system. In some embodiments, the sending period of the resource status information of multiple resources corresponding to the same business system may be different, for example, determined according to the risk level of each business node in the business system. The higher the risk level, the smaller the sending period of the resource status information, so as to perform high-precision monitoring of the resources corresponding to the high-risk business node. Among them, the risk level of each business node and the risk level of each business system may be determined by the resource processing module 102.

[0039] The resource processing module 102 traverses the resource status information of each business node in each business system, determines the available resources corresponding to each business node, and generates current resource monitoring data based on the available resources corresponding to each business node, wherein the current resource monitoring data includes risk identification data and fault identification data. Among them, the risk identification data is used to prompt that the business node has a stability risk, and the fault identification data is used to prompt that the business node has a fault and cannot operate normally. By traversing each business node in each business system, the available resources corresponding to each business node are determined, wherein the available resources are resources that can operate normally. If any resource of the business node is in an abnormal state, that is, a status abnormality identifier has been sent or any parameter information of the resource is in an abnormal state, the resource is determined to be an unavailable resource.

[0040] Optionally, when the number of available resources corresponding to any business node is less than a first preset value, the resource processing module 102 generates risk identification data for the business node. Exemplarily, the first preset value may be 2, that is, when the number of available resources corresponding to any business node is 1, the business node is determined to be a risk node, and risk identification data for the business node is generated. It should be noted that in different business systems, the first preset value may be set as required, for example, it may also be 3. The risk identification data includes a business system identifier, a business node identifier, and a risk factor. For example, the risk factor may be the resource information of the abnormal resources corresponding to the business node and the number of available resources. Exemplarily, see Figure 2For service node xk and service node yk, each of them is configured with a resource to run independently. Then, the number of available resources of service node xk and service node yk is 1, which is less than the first preset value. Service node xk and service node yk are determined to be risk nodes. Exemplary, Figure 2 , if one of the two resources corresponding to the service node xj is in an abnormal state, the number of available resources of the service node xj is 1, which is less than the first preset value, and the service node xj is determined to be a risk node. The resource processing module 102 can determine the risk level according to the number of available resources of the service node, for example, the larger the number of available resources, the lower the risk level. Correspondingly. The resource processing module 102 can determine the risk level of the service system according to the risk level of each service node in the service system, for example, the highest risk level of the service node is determined as the risk level of the service system.

[0041] Optionally, the resource processing module 102 generates fault identification data of the service node when the number of available resources of any service node is less than a second preset value, wherein the first preset value is greater than the second preset value. The second preset value may be 1, that is, when the number of available resources of any service node is 0, it indicates that the service node cannot operate normally, and the fault identification data of the service node is generated. The fault identification data includes a service system identifier, a service node identifier, and resource information of each abnormal resource.

[0042] Optionally, the resource processing module 102 periodically monitors the resource status information in each business system, for example, it can be parallel processing to improve monitoring efficiency. Optionally, the resource processing module 102 can monitor the resource status information of each business system according to the monitoring period of different business systems. Different business systems can correspond to different monitoring periods. The monitoring period of the business system can be determined based on the importance level and / or risk level of the business system. The resource mapping module 101 updates the resource mapping data in real time based on the received resource status information and resource change information. The resource processing module 102 monitors the updated resource processing module 102 to obtain the current resource monitoring data.

[0043] The resource processing module 102 sends the acquired current resource monitoring data to the fault collection module 130, and the fault collection module 130 is used to generate risk warning information according to the risk identification data, and / or, to generate fault warning information based on the fault identification data. By generating risk warning information and fault warning information, the risk points where risks exist or the fault points where faults occur are clearly improved, so that the maintenance information can be maintained and improved through the risk warning information and fault warning information to ensure the stability of the operation of each business system.

[0044] The improved technical solution of this embodiment is to set a resource monitoring device in each monitoring area, store the resource mapping data of each resource in the monitoring area, and update the resource mapping data. By performing abnormal monitoring on the resource mapping data at each moment, the resource monitoring data in the monitoring area is obtained, which makes it convenient to prompt the operator through the resource monitoring data, and to maintain or update the abnormal resources in time, so as to ensure the normal operation of each resource in the monitoring area.

[0045] Based on the above embodiments, Figure 3 It is a structural diagram of a resource monitoring system provided by an embodiment of the present invention. The resource monitoring system includes multiple resource monitoring devices 100. The multiple resource monitoring devices 100 respectively monitor resources in different monitoring areas, realize unified monitoring of resources of a large-scale system, and ensure the operation of the large-scale system.

[0046] Based on the above embodiment, any resource monitoring device is respectively connected to at least two associated resource monitoring devices for communication, for example Figure 3 In the method, multiple resource monitoring devices can form a ring network structure, wherein the associated resource monitoring device can be any resource monitoring device other than the current resource monitoring device in the resource monitoring system. For example, the associated resource monitoring device can be a resource monitoring device adjacent to the current resource monitoring device. For example, it can be judged by the monitoring area in which it is located. The associated resource monitoring device can serve as an upstream and downstream resource monitoring device of the current resource monitoring device in the ring network structure. Figure 3 Each resource monitoring device in the system is an associated resource monitoring device with the downstream resource monitoring device.

[0047] Any resource monitoring device is used to send platform status information to an associated resource monitoring device and receive platform status information sent by the associated resource monitoring device, wherein the platform status information may be information used to characterize the operating status of the resource monitoring device, for example, it may be a status identifier, and the status identifier may be a normal identifier, an abnormal identifier, etc.

[0048] When any resource monitoring device fails to receive platform status information sent by an associated resource monitoring device (for example, the associated resource monitoring device is powered off and cannot send platform status information), or the received platform status information is abnormal information, it obtains the resource information monitored by the associated resource monitoring device, establishes a connection with the resources monitored by the associated resource monitoring device, and monitors the newly added resources.

[0049] At least two associated resource monitoring devices of any current resource monitoring device respectively store local resource information monitored by the current resource monitoring device, and the collection of the local resource information respectively stored in at least two associated resource monitoring devices is all resource information monitored by the current resource monitoring device.

[0050] When an abnormality occurs in any resource monitoring device, the associated resource monitoring device of the resource monitoring device calls the local resource information of the resource monitoring device stored, establishes a connection with the resources corresponding to the local resource information, and monitors the newly added resources, thereby diverting the resource information monitored by the associated resource monitoring device, ensuring normal monitoring of the resources in each monitoring area when a fault occurs in the resource monitoring device, and avoiding the impact of the abnormality of the resource monitoring device on resource monitoring.

[0051] When any resource monitoring device receives normal platform status information sent by an abnormal associated resource monitoring device, it cuts off the connection with the newly added resource and stops monitoring the newly added resource.

[0052] Based on the above embodiment, the resource monitoring system also includes a fault collection device, which is communicated with each resource monitoring device and is used to receive fault resource information sent by each resource monitoring device, so as to facilitate the collection of fault resource information in each monitoring area and to facilitate the statistics and maintenance of faults in each monitoring area.

[0053] Figure 4 is a flow chart of a resource monitoring method provided by an embodiment of the present invention. The method may be executed by a resource monitoring device according to an embodiment of the present invention, and the resource monitoring device may be implemented by software and / or hardware, and the resource monitoring device may be integrated in an electronic device such as a computer. The method specifically includes:

[0054] S210: Receive resource status information of each resource in the monitoring area, and update resource mapping data based on the received resource status information, wherein the resource mapping data includes each resource information and resource status information.

[0055] S220: Determine current resource monitoring data according to the updated resource mapping data, and update fault resource information within the monitoring area based on the updated resource mapping data.

[0056] Optionally, the resource mapping data includes resource mapping data corresponding to a plurality of business systems respectively, and the resource mapping data corresponding to any of the business systems respectively includes resource information corresponding to each business node in the business system.

[0057] Optionally, determining the current resource monitoring data according to the updated resource mapping data includes:

[0058] Traverse the resource status information of each business node in each business system, determine the available resources corresponding to each business node, and generate current resource monitoring data based on the available resources corresponding to each business node, wherein the current resource monitoring data includes risk identification data and fault identification data.

[0059] Optionally, current resource monitoring data is generated based on the available resources corresponding to each business node, including:

[0060] When the number of available resources corresponding to any business node is less than a first preset value, generating risk identification data of the business node;

[0061] When the available resource quantity of any service node is less than a second preset value, fault identification data of the service node is generated, wherein the first preset value is greater than the second preset value.

[0062] Optionally, the resource status information is sent periodically by the corresponding resource, and the sending period of the resource status information is determined by the importance level and / or risk level of the business system to which the corresponding resource belongs.

[0063] Optionally, the method further includes: receiving resource change information of any service node, and updating the resource mapping data based on the resource change information.

[0064] Optionally, the method further includes:

[0065] Sending platform status information to a resource monitoring device with a connection relationship, and receiving platform status information sent by a resource monitoring device with a connection relationship;

[0066] When the platform status information sent by the associated resource monitoring device is not received, or the received platform status information is abnormal information, the resource information monitored by the associated resource monitoring device is obtained, a connection is established with each resource monitored by the associated resource monitoring device, and new resources are monitored.

[0067] The technical solution provided by the embodiment of the present invention obtains resource monitoring data in the monitoring area by storing resource mapping data of each resource in the monitoring area and updating the resource mapping data, and performs abnormal monitoring on the resource mapping data at each moment, so as to facilitate prompting operators through the resource monitoring data and timely maintenance or updating of abnormal resources, thereby ensuring the normal operation of each resource in the monitoring area and the stability of system operation.

[0068] Figure 5 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Figure 5 A block diagram of an electronic device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention. The device 12 is typically an electronic device that undertakes the image classification function.

[0069] like Figure 5As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors 16, a storage device 28, and a bus 18 connecting various system components (including the storage device 28 and the processor 16).

[0070] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0071] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0072] The storage device 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a read-only optical disk (Compact Disc-Read Only Memory, CD-ROM), a digital video disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The storage device 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.

[0073] A program 36 having a set (at least one) of program modules 26 may be stored, for example, in a storage device 28, such program modules 26 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 thereof may include an implementation of a gateway environment. The program modules 26 generally perform the functions and / or methods of the embodiments described herein.

[0074] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, cameras, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the electronic device 12 may also communicate with one or more gateways (e.g., a local area network (LAN), a wide area network (WAN), and / or a public gateway, such as the Internet) via a gateway adapter 20. As shown, the gateway adapter 20 communicates with other modules of the electronic device 12 via a bus 18. 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 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays of Independent Disks, RAID) systems, tape drives, and data backup storage systems.

[0075] The processor 16 executes various functional applications and data processing by running the programs stored in the storage device 28, such as implementing the resource monitoring method provided in the above embodiment of the present invention.

[0076] Embodiment 5

[0077] Embodiment 5 of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the resource monitoring method provided in the embodiment of the present invention is implemented.

[0078] Of course, the computer-readable storage medium provided by the embodiment of the present invention stores a computer program which is not limited to the method operation described above, but can also execute the resource monitoring method provided by any embodiment of the present invention.

[0079] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can 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 computer-readable storage media include: an electrical connection with one or more wires, a portable computer 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. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0080] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable source code. 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. A computer-readable signal medium may also be any computer-readable medium other than a computer-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.

[0081] Source code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0082] Computer source code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The source code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of gateway, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0083] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A resource monitoring device, characterized in that: The resource monitoring device includes a resource mapping module, a resource processing module and a fault collection module, wherein: The resource mapping module is used to store resource mapping data within the monitoring area, and to receive resource status information of each resource within the monitoring area, and to update the resource mapping data based on the received resource status information, wherein the resource mapping data includes each resource information and resource status information; the resource mapping data includes resource mapping data corresponding to a plurality of business systems, and the resource mapping data corresponding to any of the business systems includes resource information and resource status information corresponding to each business node in the business system; wherein the resource mapping data is classified based on the business system to which each resource belongs, and resource data corresponding to different business systems are stored in different mapping chains respectively; The resource processing module is used to determine the current resource monitoring data according to the updated resource mapping data, and send the current resource monitoring data to the fault collection module; the current resource monitoring data is determined based on the available resources corresponding to each of the business nodes, and the current resource monitoring data includes risk identification data and fault identification data of each of the business nodes; the risk identification data is used to indicate that the business node has a stability risk, and the fault identification data is used to indicate that the business node has a fault; wherein the risk identification data includes a business system identifier, a business node identifier, and a risk factor; the fault identification data includes a business system identifier, a business node identifier, and resource information of abnormal resources; The fault collection module is used to receive the current resource monitoring data and update the fault resource information in the monitoring area based on the current resource monitoring data; The resource processing module traverses the resource status information of each service node in each service system, determines the available resources corresponding to each service node, and generates current resource monitoring data based on the available resources corresponding to each service node.

2. The resource monitoring device according to claim 1, characterized in that: The resource processing module generates risk identification data of any business node when the number of available resources corresponding to the business node is less than a first preset value; When the available resource quantity of any service node is less than a second preset value, fault identification data of the service node is generated, wherein the first preset value is greater than the second preset value.

3. The resource monitoring device according to claim 1, characterized in that: The fault collection module is used to generate risk warning information according to risk identification data, and / or to generate fault warning information based on fault identification data.

4. The resource monitoring device according to claim 1, characterized in that: The resource status information is sent periodically by the corresponding resource, and the sending period of the resource status information is determined by the importance level and / or risk level of the business system to which the corresponding resource belongs.

5. The resource monitoring device according to claim 1, characterized in that: The resource mapping module is also used to receive resource change information of any service node, and update the resource mapping data based on the resource change information.

6. A resource monitoring system, characterized in that: It comprises a plurality of resource monitoring devices as described in any one of claims 1-5.

7. The resource monitoring system according to claim 6, characterized in that: Any of the resource monitoring devices is communicatively connected to at least two associated resource monitoring devices respectively; Any of the resource monitoring devices is used to send platform status information to the associated resource monitoring device and receive platform status information sent by the associated resource monitoring device; When the platform status information sent by the associated resource monitoring device is not received, or the received platform status information is abnormal information, the resource information monitored by the associated resource monitoring device is obtained, a connection is established with each resource monitored by the associated resource monitoring device, and new resources are monitored.

8. A resource monitoring method, characterized in that: include: Receive resource status information of each resource in the monitoring area, and update resource mapping data based on the received resource status information, wherein the resource mapping data includes each resource information and resource status information; the resource mapping data includes resource mapping data corresponding to multiple business systems, and the resource mapping data corresponding to any of the business systems includes resource information and resource status information corresponding to each business node in the business system; wherein the resource mapping data is classified based on the business system to which each resource belongs, and resource data corresponding to different business systems are stored in different mapping chains; Determine the current resource monitoring data according to the updated resource mapping data, and update the fault resource information in the monitoring area based on the current resource monitoring data, the current resource monitoring data is determined based on the available resources corresponding to each of the business nodes, and the current resource monitoring data includes risk identification data and fault identification data of each of the business nodes; the risk identification data is used to prompt that the business node has a stability risk, and the fault identification data is used to prompt that the business node has a fault; wherein the risk identification data includes a business system identifier, a business node identifier, and a risk factor; the fault identification data includes a business system identifier, a business node identifier, and resource information of abnormal resources; The current resource monitoring data is determined based on the available resources corresponding to each of the service nodes, including: Traverse the resource status information of each business node in each business system, determine the available resources corresponding to each business node, and generate current resource monitoring data based on the available resources corresponding to each business node.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the resource monitoring method as claimed in claim 8 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the resource monitoring method as claimed in claim 8 is implemented.

Citation Information

Patent Citations

  • Alarming method and device

    CN107562601A

  • Risk management and control-oriented power grid enterprise related party relationship monitoring system

    CN110826824A