CN114979158A - Resource monitoring method, system, equipment and computer readable storage medium - Google Patents
Resource monitoring method, system, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN114979158A CN114979158A CN202210563996.1A CN202210563996A CN114979158A CN 114979158 A CN114979158 A CN 114979158A CN 202210563996 A CN202210563996 A CN 202210563996A CN 114979158 A CN114979158 A CN 114979158A
- Authority
- CN
- China
- Prior art keywords
- resource
- state monitoring
- monitoring
- resource information
- local state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 220
- 238000000034 method Methods 0.000 title claims abstract description 69
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 claims description 8
- 238000004140 cleaning Methods 0.000 claims description 8
- 238000012216 screening Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 description 9
- 230000001360 synchronised effect Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000003068 static effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000010276 construction Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a resource monitoring method, a system, equipment and a computer readable storage medium, which are applied to a local state monitoring service in a cloud platform, and are used for acquiring resources of physical nodes corresponding to the local state monitoring service one by one to obtain target resource information; incrementally synchronizing target resource information to a resource state monitoring center; storing the target resource information; each physical node is deployed with a local state monitoring service; and the resource state monitoring center is used for monitoring the selected local state in the cloud platform. In the method and the system, the local state monitoring service increments the target resource information to the resource state monitoring center, so that the resource state monitoring center does not need to perform resource polling on the physical nodes, the local state monitoring service stores the target resource information, the physical nodes and the like do not need to access the resource state monitoring center, the service pressure of the resource state monitoring center can be reduced, and the applicability is good.
Description
Technical Field
The present application relates to the field of resource monitoring technologies, and in particular, to a resource monitoring method, system, device, and computer-readable storage medium.
Background
Currently, with the development of cloud computing and virtualization technologies towards the construction of a new generation of data centers, management and service centralization are realized on the basis of virtualization, and data center resources are dynamically adjusted and allocated. For example, the resource state monitoring center is used for providing visual resource monitoring so that a user can conveniently manage the cloud platform, and meanwhile, the resource state monitoring center can also provide data support for the reliability of virtual machines and cloud computing application.
However, in the process of monitoring resources on the cloud platform, the resource state monitoring center needs to continuously poll other systems with high requirements for real-time change of data states, and the performance consumption is high; a system depending on the data state needs to continuously access the resource state monitoring center, so that the pressure of the resource state monitoring center is higher; the resource monitoring method has multiple limitations and poor applicability.
In summary, how to improve the applicability of the resource monitoring method is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The present application aims to provide a resource monitoring method, which can solve the technical problem of how to improve the applicability of the resource monitoring method to a certain extent. The application also provides a resource monitoring system, equipment and a computer readable storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
a resource monitoring method is applied to a local state monitoring service in a cloud platform and comprises the following steps:
acquiring resources of the physical nodes corresponding to the local state monitoring service one by one to obtain target resource information;
incrementally synchronizing the target resource information to a resource state monitoring center;
storing the target resource information;
wherein each physical node is deployed with one local state monitoring service; and the resource state monitoring center is used for monitoring the selected local state in the cloud platform.
Preferably, the acquiring resources of the physical nodes corresponding to the local state monitoring service one to obtain target resource information includes:
acquiring predetermined resource information required to be acquired;
acquiring resources of the physical nodes corresponding to the local state monitoring service one by one to obtain initial resource information;
and screening the initial resource information to obtain the target resource information matched with the resource information.
Preferably, the storing the target resource information includes:
storing resource state data in the target resource information in a memory;
and storing the resource trend data in the target resource information in a time sequence database according to the resource dimension, wherein the time sequence database is stored in a shared storage.
Preferably, after storing the target resource information, the method further includes:
traversing all stored resources;
acquiring the updating time of the stored resources;
judging whether the updating time is beyond a clearing time threshold value, if so, recording the target information of the corresponding stored resource;
and after traversing is finished, cleaning the corresponding stored resources based on the target information.
Preferably, after storing the target resource information, the method further includes:
acquiring a resource query condition;
constructing a monitoring object based on the resource query condition, and registering the monitoring object to a monitoring queue of a corresponding resource;
and carrying out resource monitoring based on the monitoring queue to obtain a resource monitoring result.
Preferably, after storing the target resource information, the method further includes:
and transmitting the resource monitoring result to the client.
Preferably, the transmitting the resource monitoring result to the client includes:
and transmitting the resource monitoring result to the client based on the monitoring event transmission queue.
A resource monitoring system is applied to a local state monitoring service in a cloud platform and comprises the following components:
the resource acquisition module is used for acquiring resources of the physical nodes which correspond to the local state monitoring service one by one to obtain target resource information;
the resource synchronization module is used for incrementally synchronizing the target resource information to a resource state monitoring center;
the resource processing module is used for storing the target resource information;
wherein, each physical node is deployed with one local state monitoring service; and the resource state monitoring center is used for monitoring the selected local state in the cloud platform.
An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the resource monitoring method as described above when executing the computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the resource monitoring method as set forth in any one of the preceding claims.
The resource monitoring method is applied to local state monitoring services in a cloud platform, and resource collection is carried out on physical nodes which correspond to the local state monitoring services one by one to obtain target resource information; incrementally synchronizing target resource information to a resource state monitoring center; storing the target resource information; each physical node is deployed with a local state monitoring service; and the resource state monitoring center is used for monitoring the selected local state in the cloud platform. In the application, each physical node of the cloud platform is deployed with a local state monitoring service, and the local state monitoring service can acquire the resources of the corresponding physical nodes to obtain the target resource information, the local state monitoring service can simply, conveniently and quickly transmit the newly acquired resource information to the resource state monitoring center in a mode of incrementally synchronizing the target resource information to the resource state monitoring center, further, the resource state monitoring center in the application is the local state monitoring service selected in the cloud platform, namely, each local state monitoring service can become the resource state monitoring center, therefore, the resource state monitoring center of the application is a decentralized resource state monitoring center, the resource state monitoring center does not need to perform resource polling on the physical nodes, so that the performance consumption of the resource state monitoring center is reduced; in addition, the local state monitoring service can also store target resource information, namely corresponding resource information is stored in the local state monitoring service, so that the physical node or other equipment can obtain the corresponding resource information only by carrying out resource query on the local state monitoring service without accessing the resource state monitoring center, the service pressure of the resource state monitoring center can be reduced, and the applicability is good. The resource monitoring system, the resource monitoring equipment and the computer readable storage medium solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is an application scenario diagram of a resource monitoring scheme provided in an embodiment of the present application;
fig. 2 is a flowchart of a resource monitoring method according to an embodiment of the present application;
fig. 3 is another flowchart of a resource monitoring method according to an embodiment of the present application;
fig. 4 is a third flowchart of a resource monitoring method according to an embodiment of the present application;
fig. 5 is a fourth flowchart of a resource monitoring method according to an embodiment of the present application;
fig. 6 is a fifth flowchart of a resource monitoring method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a resource monitoring system according to an embodiment of the present application;
fig. 8 is a schematic diagram of a hardware component structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Currently, with the development of cloud computing and virtualization technologies towards the construction of a new generation of data centers, management and service centralization are realized on the basis of virtualization, and data center resources are dynamically adjusted and allocated. For example, the resource state monitoring center is used for providing visual resource monitoring so that a user can conveniently manage the cloud platform, and meanwhile, the resource state monitoring center can also provide data support for the reliability of virtual machines and cloud computing application.
However, in the process of monitoring resources on the cloud platform, the resource state monitoring center needs to continuously poll other systems with high requirements for real-time change of data states, and the performance consumption is high; a system depending on the data state needs to continuously access the resource state monitoring center, so that the pressure of the resource state monitoring center is higher; the resource monitoring method has multiple limitations and poor applicability. In order to solve the technical problem, the application provides a resource monitoring scheme.
In the resource monitoring scheme of the present application, the system framework adopted may specifically refer to fig. 1, and may specifically include: a resource status-monitoring center (status-center) in the cloud platform and a number of Local Status Monitoring Services (LSMS) that establish communication connections with the resource status-monitoring center. Each physical node of the cloud platform is provided with a local state monitoring service; the resource state monitoring center is used for monitoring the selected local state in the cloud platform. It should be noted that the exploter in the local status monitoring service represents a local resource on the physical node, and udevd/agent/… represents a resource sent by a third-party service on the physical node to the physical node.
In the application, the local state monitoring service is used for executing the resource monitoring method steps, and the method comprises the steps of collecting resources of physical nodes which correspond to the local state monitoring service one by one to obtain target resource information; incrementally synchronizing target resource information to a resource state monitoring center; and storing the target resource information.
Referring to fig. 2, fig. 2 is a flowchart of a resource monitoring method according to an embodiment of the present disclosure.
The resource monitoring method provided by the embodiment of the application is applied to a local state monitoring service in a cloud platform, and comprises the following steps:
step S101: and carrying out resource acquisition on the physical nodes which are in one-to-one correspondence with the local state monitoring service to obtain target resource information.
In practical application, the local state monitoring service may collect resources of a corresponding physical node to obtain target resource information on the physical node, and specifically, the local state monitoring service may collect local resources on the physical node and other resources sent by a third-party service connected to the physical node, for example, the target resource information may be information such as resource static data, resource consumption dynamic data, virtual machine operating data, and network traffic related to the physical node, or data pushed to the physical node after resource registration is performed on the physical node for the third-party service, that is, the local state monitoring service in this application refers to a service that monitors a resource state of a deployed physical node, where the described local state may be resource static data, resource consumption dynamic data, and data on the corresponding physical node, The virtual machine running data, the network flow data, the data pushed to the physical node after the third-party service registers the physical node, and the like.
It should be noted that the triggering condition for the local state monitoring service to perform resource collection on the physical node may be flexibly selected according to a specific application scenario, for example, the local state monitoring service may perform resource collection on the physical node at regular time, or perform resource collection on the physical node after receiving a resource update instruction, and the like, which is not limited in this application.
Step S102: and incrementally synchronizing the target resource information to the resource state monitoring center.
In practical application, after the local state monitoring service obtains the target resource information, the target resource information can be transmitted to the resource state monitoring center in an incremental synchronization mode, that is, only the newly acquired resource information is transmitted to the resource state monitoring center, so that the resource state monitoring center can display the resource information of the physical node acquired by the local state monitoring service to a user and the like, and the user and the like can know the resource information of the cloud platform conveniently.
Step S103: storing the target resource information; each physical node is deployed with a local state monitoring service; and the resource state monitoring center is used for monitoring the selected local state in the cloud platform.
In practical application, after the local state monitoring service obtains the target resource information, the local state monitoring service can also store the target resource information, for example, newly acquired resource information in the target resource information can be stored, and the local state monitoring service can also store the resource information according to acquisition time and the like; therefore, the physical node or other equipment can obtain corresponding resource information only by carrying out resource query on the local state monitoring service without accessing the resource state monitoring center, and the service pressure of the resource state monitoring center can be reduced; in addition, the resource state monitoring center in the application is a local state monitoring service selected in the cloud platform, that is, each local state monitoring service can be a resource state monitoring center, so that the resource state monitoring center in the application is a decentralized resource state monitoring center, the resource state monitoring center does not need to perform resource polling on physical nodes, and the performance consumption of the resource state monitoring center is reduced.
It should be noted that the local status monitoring service may be deployed on a physical node in the form of software, a plug-in, and the like, and the present application is not limited in this respect. In addition, the manner of selecting the resource status monitoring center from the multiple local status monitoring services may be determined according to a specific application scenario, for example, to avoid excessive data transmission from the local status monitoring services to the resource status monitoring center, the local status monitoring service with the most stored resource information may be used as the resource status monitoring center, and the most stable local status monitoring service may be used as the resource status monitoring center in a case where stability of the resource status monitoring center is pursued, and the application is not particularly limited herein.
The resource monitoring method is applied to local state monitoring services in a cloud platform, and resource collection is carried out on physical nodes which correspond to the local state monitoring services one by one to obtain target resource information; incrementally synchronizing target resource information to a resource state monitoring center; storing the target resource information; each physical node is deployed with a local state monitoring service; and the resource state monitoring center is used for monitoring the selected local state in the cloud platform. In the application, each physical node of the cloud platform is deployed with a local state monitoring service, and the local state monitoring service can acquire the resources of the corresponding physical nodes to obtain the target resource information, the local state monitoring service can simply, conveniently and quickly transmit the newly acquired resource information to the resource state monitoring center in a mode of incrementally synchronizing the target resource information to the resource state monitoring center, further, the resource state monitoring center in the application is the local state monitoring service selected in the cloud platform, namely, each local state monitoring service can become the resource state monitoring center, therefore, the resource state monitoring center of the application is a decentralized resource state monitoring center, the resource state monitoring center does not need to perform resource polling on the physical nodes, so that the performance consumption of the resource state monitoring center is reduced; in addition, the local state monitoring service can also store target resource information, namely corresponding resource information is stored in the local state monitoring service, so that the physical node or other equipment can obtain the corresponding resource information only by carrying out resource query on the local state monitoring service without accessing the resource state monitoring center, the service pressure of the resource state monitoring center can be reduced, and the applicability is good.
Referring to fig. 3, fig. 3 is another flowchart of a resource monitoring method according to an embodiment of the present disclosure.
The resource monitoring method provided by the embodiment of the application is applied to a local state monitoring service in a cloud platform, and can comprise the following steps:
step S201: and acquiring the predetermined resource information required to be acquired.
In practical application, in the process that the local state monitoring service acquires resources from the physical nodes corresponding to the local state monitoring service one by one to obtain target resource information, the acquired target resource information needs to meet the requirements of users and the like.
Step S202: and carrying out resource acquisition on the physical nodes which correspond to the local state monitoring service one by one to obtain initial resource information.
In practical applications, after acquiring predetermined resource information to be acquired, the local state monitoring service may acquire resources for physical nodes corresponding to the local state monitoring service one to one, to obtain initial resource information, for example, the local state monitoring service may acquire resources for the physical nodes at regular time by a periodic task, and receive resource information reported by a third-party service through an API (Application Programming Interface) rpoe Interface.
Step S203: and screening the initial resource information to obtain target resource information matched with the resource information.
In practical application, after the local state monitoring service obtains the initial resource information, the initial resource information can be screened according to the resource information to obtain target resource information matched with the resource information, so that the acquired target resource information can meet the resource monitoring requirements of users and the like.
Step S204: and incrementally synchronizing the target resource information to the resource state monitoring center.
Step S205: storing the target resource information; each physical node is deployed with a local state monitoring service; and the resource state monitoring center is used for monitoring the selected local state in the cloud platform.
Referring to fig. 4, fig. 4 is a third flowchart of a resource monitoring method according to an embodiment of the present disclosure.
The resource monitoring method provided by the embodiment of the application is applied to a local state monitoring service in a cloud platform, and can comprise the following steps:
step S301: and carrying out resource acquisition on the physical nodes which correspond to the local state monitoring service one by one to obtain target resource information.
Step S302: and incrementally synchronizing the target resource information to the resource state monitoring center.
Step S303: and storing the resource state data in the target resource information in the memory.
Step S304: storing the resource trend data in the target resource information in a time sequence database according to the resource dimension, wherein the time sequence database is stored in a shared storage; each physical node is deployed with a local state monitoring service; and the resource state monitoring center is used for monitoring the selected local state in the cloud platform.
In practical application, in the process of storing the target resource information, the local state monitoring service may perform corresponding storage according to the type of the target resource information, for example, may store resource state data in the target resource information in a memory; and storing the resource trend data in the target resource information in a time-series database (time-series database) according to the resource dimension, storing the time-series database in a shared memory, and the like.
It should be noted that the resource status data is used to describe the status of the resource information, for example, the resource information is updated, the resource information is deleted, the resource information is cleared when it is out of date, and the type of the resource status data may be determined according to a specific application scenario, and in the specific application scenario, when the resource status data changes, the local status monitoring service may also actively report corresponding information in the target resource information to a device such as a client, so that the device such as the client can obtain the latest status of the target resource information in time; the resource trend data is used for describing changes of the resource information along with time, such as changes of physical nodes along with time, changes of virtual machines along with time and the like, the types of the resource trend data can be determined according to specific application scenarios, and correspondingly, because the resource trend data is used for describing changes of the resource information along with time, if data is lost due to abnormal collapse of the resource state monitoring center, data recovery and the like can be carried out according to the resource trend data.
Referring to fig. 5, fig. 5 is a fourth flowchart of a resource monitoring method according to an embodiment of the present disclosure.
The resource monitoring method provided by the embodiment of the application is applied to a local state monitoring service in a cloud platform, and can comprise the following steps:
step S401: and carrying out resource acquisition on the physical nodes which correspond to the local state monitoring service one by one to obtain target resource information.
Step S402: and incrementally synchronizing the target resource information to the resource state monitoring center.
Step S403: storing the target resource information; each physical node is deployed with a local state monitoring service; and the resource state monitoring center is used for monitoring the selected local state in the cloud platform.
Step S404: all stored resources are traversed.
Step S405: and acquiring the updating time of the stored resource.
Step S406: determining whether the update time is outside the clearing time threshold, if yes, executing step S407: and recording the target information of the corresponding stored resource.
Step S408: and after traversing is finished, cleaning the corresponding stored resources based on the target information.
In practical application, after storing the target resource information, the local state monitoring service may also manage the stored resources according to specific application requirements, for example, the stored resources may be cleaned according to the update time of the resources, that is, all the stored resources may be traversed, the update time of the stored resources is obtained, whether the update time is outside the cleaning time threshold is determined, if yes, the target information of the corresponding stored resources is recorded, and after the traversal is completed, the corresponding stored resources are cleaned based on the target information. For ease of understanding, assuming that the cleanup time threshold is the first three days before the current time, the stored resources three days before the current time will be cleaned up by the local status monitoring service.
It should be noted that the condition for the local status monitoring service to clean the stored resource may also be determined according to a specific application scenario, for example, the specified resource in the stored resource may be cleaned according to a cleaning instruction of a user, and the like, which is not specifically limited herein.
Referring to fig. 6, fig. 6 is a fifth flowchart of a resource monitoring method according to an embodiment of the present disclosure.
The resource monitoring method provided by the embodiment of the application is applied to a local state monitoring service in a cloud platform, and comprises the following steps:
step S501: and carrying out resource acquisition on the physical nodes which correspond to the local state monitoring service one by one to obtain target resource information.
Step S502: and incrementally synchronizing the target resource information to the resource state monitoring center.
Step S503: storing the target resource information; each physical node is deployed with a local state monitoring service; and the resource state monitoring center is used for monitoring the selected local state in the cloud platform.
Step S504: and acquiring resource query conditions.
Step S505: and constructing a monitoring object based on the resource query condition, and registering the monitoring object to a monitoring queue of the corresponding resource.
Step S506: and carrying out resource monitoring based on the monitoring queue to obtain a resource monitoring result.
In practical application, in the face of query requirements of users, clients or other services, the local state monitoring service can acquire corresponding resource query conditions, construct a monitoring object based on the resource query conditions, register the monitoring object in a monitoring queue of corresponding resources, perform resource monitoring based on the monitoring queue to obtain a resource monitoring result, and then respond to the resource query requirements. After that, the local state monitoring service may further transmit the monitored resource monitoring result to a setting party of the resource query condition, for example, transmit the resource monitoring result to the client, and in the process, the resource monitoring result may be transmitted to the client and the like based on the monitoring event transmission queue, that is, the target resource information and the like may be transmitted to the client and the like in the form of an event, which is not specifically limited herein.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a resource monitoring system according to an embodiment of the present disclosure.
The resource monitoring system provided by the embodiment of the application is applied to a local state monitoring service in a cloud platform, and can include:
the resource acquisition module 101 is configured to perform resource acquisition on physical nodes corresponding to the local state monitoring service one to one, and obtain target resource information;
the resource synchronization module 102 is configured to incrementally synchronize target resource information to a resource status monitoring center;
the resource processing module 103 is used for storing the target resource information;
each physical node is deployed with a local state monitoring service; and the resource state monitoring center is used for monitoring the selected local state in the cloud platform.
The resource monitoring system provided by the embodiment of the application is applied to a local state monitoring service in a cloud platform, and the resource acquisition module can comprise:
the first determining unit is used for acquiring predetermined resource information required to be acquired;
the first acquisition unit is used for acquiring resources of the physical nodes which correspond to the local state monitoring service one by one to obtain initial resource information;
and the first screening unit is used for screening the initial resource information to obtain target resource information matched with the resource information.
The resource monitoring system provided by the embodiment of the application is applied to a local state monitoring service in a cloud platform, and the resource processing module may include:
the first storage unit is used for storing the resource state data in the target resource information in the memory;
and the second storage unit is used for storing the resource trend data in the target resource information in the time sequence database according to the resource dimension, and the time sequence database is stored in the shared storage.
The resource monitoring system provided by the embodiment of the application is applied to a local state monitoring service in a cloud platform, and can further include:
the traversing module is used for traversing all stored resources after the resource processing module stores the target resource information;
the first acquisition module is used for acquiring the updating time of the stored resources;
the first judgment module is used for judging whether the updating time is out of the threshold value of the cleaning time, and if so, the target information of the corresponding stored resource is recorded;
and the first cleaning module is used for cleaning the corresponding stored resources based on the target information after the traversal is finished.
The resource monitoring system provided by the embodiment of the application is applied to a local state monitoring service in a cloud platform, and can further include:
the second acquisition module is used for acquiring the resource query condition after the resource processing module stores the target resource information;
the first construction module is used for constructing a monitoring object based on the resource query condition and registering the monitoring object to a monitoring queue of the corresponding resource;
and the first monitoring module is used for carrying out resource monitoring based on the monitoring queue to obtain a resource monitoring result.
The resource monitoring system provided by the embodiment of the application is applied to a local state monitoring service in a cloud platform, and can further include:
and the first transmission module is used for transmitting the resource monitoring result to the client after the resource processing module stores the target resource information.
The resource monitoring system provided by the embodiment of the application is applied to a local state monitoring service in a cloud platform, and the first transmission module may include:
and the first transmission unit is used for transmitting the resource monitoring result to the client based on the monitoring event transmission queue.
Based on the hardware implementation of the program module, and in order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides an electronic device, fig. 8 is a schematic diagram of a hardware composition structure of the electronic device according to the embodiment of the present invention, and as shown in fig. 8, the electronic device includes:
a communication interface 1 capable of information interaction with other devices such as network devices and the like;
and the processor 2 is connected with the communication interface 1 to realize information interaction with other equipment, and is used for executing the resource monitoring method provided by one or more technical schemes when running a computer program. And the computer program is stored on the memory 3.
In practice, of course, the various components in the electronic device are coupled together by the bus system 4. It will be appreciated that the bus system 4 is used to enable connection communication between these components. The bus system 4 comprises, in addition to a data bus, a power bus, a control bus and a status signal bus. For the sake of clarity, however, the various buses are labeled as bus system 4 in fig. 8.
The memory 3 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
It will be appreciated that the memory 3 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced Synchronous Dynamic Random Access Memory), Synchronous link Dynamic Random Access Memory (DRAM, Synchronous Dynamic Random Access Memory), Direct Memory (DRmb Random Access Memory). The memory 2 described in the embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed by the above embodiment of the present invention can be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 2. The processor 2 described above may be a general purpose processor, DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, or the like. The processor 2 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 3, and the processor 2 reads the program in the memory 3 and in combination with its hardware performs the steps of the aforementioned method.
When the processor 2 executes the program, the corresponding processes in the methods according to the embodiments of the present invention are realized, and for brevity, are not described herein again.
In an exemplary embodiment, the present invention further provides a storage medium, i.e. a computer storage medium, in particular a computer readable storage medium, for example comprising a memory 3 storing a computer program, which is executable by a processor 2 to perform the steps of the aforementioned method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, terminal and method may be implemented in other manners. The above-described device embodiments are only illustrative, for example, the division of the unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
For a description of a relevant part in the user operation processing system, the electronic device, and the computer-readable storage medium provided in the embodiment of the present application, reference is made to detailed descriptions of a corresponding part in the user operation processing method provided in the embodiment of the present application, and details are not repeated here. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A resource monitoring method is applied to a local state monitoring service in a cloud platform, and comprises the following steps:
acquiring resources of the physical nodes corresponding to the local state monitoring service one by one to obtain target resource information;
incrementally synchronizing the target resource information to a resource state monitoring center;
storing the target resource information;
wherein each physical node is deployed with one local state monitoring service; and the resource state monitoring center is used for monitoring the selected local state in the cloud platform.
2. The method of claim 1, wherein the acquiring the resources of the physical nodes corresponding to the local state monitoring service one to obtain target resource information comprises:
acquiring predetermined resource information required to be acquired;
acquiring resources of the physical nodes corresponding to the local state monitoring service one by one to obtain initial resource information;
and screening the initial resource information to obtain the target resource information matched with the resource information.
3. The method of claim 1, wherein storing the target resource information comprises:
storing resource state data in the target resource information in a memory;
and storing the resource trend data in the target resource information in a time sequence database according to the resource dimension, wherein the time sequence database is stored in a shared storage.
4. The method of claim 1, wherein after storing the target resource information, further comprising:
traversing all stored resources;
acquiring the updating time of the stored resources;
judging whether the updating time is beyond a clearing time threshold value, if so, recording the target information of the corresponding stored resource;
and after traversing is finished, cleaning the corresponding stored resources based on the target information.
5. The method according to any one of claims 1 to 4, wherein after storing the target resource information, further comprising:
acquiring a resource query condition;
constructing a monitoring object based on the resource query condition, and registering the monitoring object to a monitoring queue of a corresponding resource;
and carrying out resource monitoring based on the monitoring queue to obtain a resource monitoring result.
6. The method of claim 5, wherein after storing the target resource information, further comprising:
and transmitting the resource monitoring result to the client.
7. The method of claim 6, wherein the transmitting the resource listening result to a client comprises:
and transmitting the resource monitoring result to the client based on the monitoring event transmission queue.
8. A resource monitoring system is applied to a local state monitoring service in a cloud platform, and comprises the following components:
the resource acquisition module is used for acquiring resources of the physical nodes which correspond to the local state monitoring service one by one to obtain target resource information;
the resource synchronization module is used for incrementally synchronizing the target resource information to a resource state monitoring center;
the resource processing module is used for storing the target resource information;
wherein, each physical node is deployed with one local state monitoring service; and the resource state monitoring center is used for monitoring the selected local state in the cloud platform.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the resource monitoring method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the resource monitoring method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210563996.1A CN114979158B (en) | 2022-05-23 | 2022-05-23 | Resource monitoring method, system, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210563996.1A CN114979158B (en) | 2022-05-23 | 2022-05-23 | Resource monitoring method, system, equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114979158A true CN114979158A (en) | 2022-08-30 |
CN114979158B CN114979158B (en) | 2024-04-09 |
Family
ID=82984937
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210563996.1A Active CN114979158B (en) | 2022-05-23 | 2022-05-23 | Resource monitoring method, system, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114979158B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115460103A (en) * | 2022-09-05 | 2022-12-09 | 中国银行股份有限公司 | Service state monitoring method and system, electronic equipment and storage medium |
CN115473833A (en) * | 2022-09-14 | 2022-12-13 | 康键信息技术(深圳)有限公司 | Client performance monitoring method, device and system and readable storage medium |
CN116055496A (en) * | 2022-12-30 | 2023-05-02 | 广州趣研网络科技有限公司 | Monitoring data acquisition method and device, electronic equipment and storage medium |
Citations (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043407A (en) * | 2007-04-05 | 2007-09-26 | 华为技术有限公司 | Method and system for enquiring data of sensor network and sensor node |
CN104113596A (en) * | 2014-07-15 | 2014-10-22 | 华侨大学 | Cloud monitoring system and method for private cloud |
CN104184819A (en) * | 2014-08-29 | 2014-12-03 | 城云科技(杭州)有限公司 | Multi-hierarchy load balancing cloud resource monitoring method |
CN105554126A (en) * | 2015-12-22 | 2016-05-04 | 内蒙古农业大学 | Method for realizing distributed deployment of multiple data centers through CDN acceleration mechanism |
CN107786616A (en) * | 2016-08-30 | 2018-03-09 | 江苏蓝创聚联数据与应用研究院有限公司 | Main frame intelligent monitor system based on high in the clouds |
CN107959588A (en) * | 2017-12-07 | 2018-04-24 | 郑州云海信息技术有限公司 | Cloud resource management method, cloud resource management platform and the management system of data center |
CN107968881A (en) * | 2017-11-22 | 2018-04-27 | 珠海市魅族科技有限公司 | End-point device broadcast processing method and processing device, terminal device and storage medium |
CN108512719A (en) * | 2018-03-02 | 2018-09-07 | 南京易捷思达软件科技有限公司 | A kind of Integrative resource monitoring system based on cloud platform of increasing income |
CN108540341A (en) * | 2018-03-19 | 2018-09-14 | 云宏信息科技股份有限公司 | resource monitoring method and device |
CN108876317A (en) * | 2018-08-20 | 2018-11-23 | 广东技术师范学院 | A kind of data management monitoring method, device and terminal device |
CN108989385A (en) * | 2018-06-05 | 2018-12-11 | 陈艳 | A kind of implementation method based on Zabbix monitoring collection automatic synchronization CMDB |
CN110309029A (en) * | 2019-06-29 | 2019-10-08 | 深圳乐信软件技术有限公司 | Acquisition method, device, computer equipment and the storage medium of abnormal data |
US20200019439A1 (en) * | 2018-07-13 | 2020-01-16 | Hitachi, Ltd. | Storage system and information management method |
WO2021056949A1 (en) * | 2019-09-24 | 2021-04-01 | 厦门网宿有限公司 | Edge application management method and system |
CN112954591A (en) * | 2021-02-10 | 2021-06-11 | 北京理工大学 | Cooperative distributed positioning method and system |
CN113315635A (en) * | 2021-05-27 | 2021-08-27 | 王文博 | Computational resource sharing processing method based on decentralized architecture |
CN113626447A (en) * | 2021-10-12 | 2021-11-09 | 民航成都信息技术有限公司 | Civil aviation data management platform and method |
CN114124978A (en) * | 2022-01-26 | 2022-03-01 | 军事科学院系统工程研究院网络信息研究所 | Video cloud service high-availability method and device based on distributed cooperation |
CN114328107A (en) * | 2021-12-28 | 2022-04-12 | 北京易华录信息技术股份有限公司 | Monitoring method and system for optomagnetic fusion storage server cluster and electronic equipment |
CN114327404A (en) * | 2021-12-28 | 2022-04-12 | 建信金融科技有限责任公司 | File processing method and device, electronic equipment and computer readable medium |
CN114416470A (en) * | 2021-12-28 | 2022-04-29 | 航天科工网络信息发展有限公司 | Cloud monitoring method, system, equipment and computer storage medium |
CN114443422A (en) * | 2021-12-29 | 2022-05-06 | 中国航空工业集团公司西安航空计算技术研究所 | Distributed resource monitoring method and system |
CN114490262A (en) * | 2022-01-20 | 2022-05-13 | 中国平安人寿保险股份有限公司 | Database monitoring method, device, equipment and storage medium |
-
2022
- 2022-05-23 CN CN202210563996.1A patent/CN114979158B/en active Active
Patent Citations (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043407A (en) * | 2007-04-05 | 2007-09-26 | 华为技术有限公司 | Method and system for enquiring data of sensor network and sensor node |
CN104113596A (en) * | 2014-07-15 | 2014-10-22 | 华侨大学 | Cloud monitoring system and method for private cloud |
CN104184819A (en) * | 2014-08-29 | 2014-12-03 | 城云科技(杭州)有限公司 | Multi-hierarchy load balancing cloud resource monitoring method |
CN105554126A (en) * | 2015-12-22 | 2016-05-04 | 内蒙古农业大学 | Method for realizing distributed deployment of multiple data centers through CDN acceleration mechanism |
CN107786616A (en) * | 2016-08-30 | 2018-03-09 | 江苏蓝创聚联数据与应用研究院有限公司 | Main frame intelligent monitor system based on high in the clouds |
CN107968881A (en) * | 2017-11-22 | 2018-04-27 | 珠海市魅族科技有限公司 | End-point device broadcast processing method and processing device, terminal device and storage medium |
CN107959588A (en) * | 2017-12-07 | 2018-04-24 | 郑州云海信息技术有限公司 | Cloud resource management method, cloud resource management platform and the management system of data center |
CN108512719A (en) * | 2018-03-02 | 2018-09-07 | 南京易捷思达软件科技有限公司 | A kind of Integrative resource monitoring system based on cloud platform of increasing income |
CN108540341A (en) * | 2018-03-19 | 2018-09-14 | 云宏信息科技股份有限公司 | resource monitoring method and device |
CN108989385A (en) * | 2018-06-05 | 2018-12-11 | 陈艳 | A kind of implementation method based on Zabbix monitoring collection automatic synchronization CMDB |
US20200019439A1 (en) * | 2018-07-13 | 2020-01-16 | Hitachi, Ltd. | Storage system and information management method |
CN108876317A (en) * | 2018-08-20 | 2018-11-23 | 广东技术师范学院 | A kind of data management monitoring method, device and terminal device |
CN110309029A (en) * | 2019-06-29 | 2019-10-08 | 深圳乐信软件技术有限公司 | Acquisition method, device, computer equipment and the storage medium of abnormal data |
WO2021056949A1 (en) * | 2019-09-24 | 2021-04-01 | 厦门网宿有限公司 | Edge application management method and system |
CN112954591A (en) * | 2021-02-10 | 2021-06-11 | 北京理工大学 | Cooperative distributed positioning method and system |
CN113315635A (en) * | 2021-05-27 | 2021-08-27 | 王文博 | Computational resource sharing processing method based on decentralized architecture |
CN113626447A (en) * | 2021-10-12 | 2021-11-09 | 民航成都信息技术有限公司 | Civil aviation data management platform and method |
CN114328107A (en) * | 2021-12-28 | 2022-04-12 | 北京易华录信息技术股份有限公司 | Monitoring method and system for optomagnetic fusion storage server cluster and electronic equipment |
CN114327404A (en) * | 2021-12-28 | 2022-04-12 | 建信金融科技有限责任公司 | File processing method and device, electronic equipment and computer readable medium |
CN114416470A (en) * | 2021-12-28 | 2022-04-29 | 航天科工网络信息发展有限公司 | Cloud monitoring method, system, equipment and computer storage medium |
CN114443422A (en) * | 2021-12-29 | 2022-05-06 | 中国航空工业集团公司西安航空计算技术研究所 | Distributed resource monitoring method and system |
CN114490262A (en) * | 2022-01-20 | 2022-05-13 | 中国平安人寿保险股份有限公司 | Database monitoring method, device, equipment and storage medium |
CN114124978A (en) * | 2022-01-26 | 2022-03-01 | 军事科学院系统工程研究院网络信息研究所 | Video cloud service high-availability method and device based on distributed cooperation |
Non-Patent Citations (2)
Title |
---|
姜杰: "分布式Robot系统结构设计", 福建电脑, no. 12, pages 77 - 79 * |
陈林;应时;贾向阳;: "SHMA:一种云平台的监控框架", 计算机科学, no. 01, pages 7 - 12 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115460103A (en) * | 2022-09-05 | 2022-12-09 | 中国银行股份有限公司 | Service state monitoring method and system, electronic equipment and storage medium |
CN115460103B (en) * | 2022-09-05 | 2024-02-27 | 中国银行股份有限公司 | Service state monitoring method and system, electronic equipment and storage medium |
CN115473833A (en) * | 2022-09-14 | 2022-12-13 | 康键信息技术(深圳)有限公司 | Client performance monitoring method, device and system and readable storage medium |
CN116055496A (en) * | 2022-12-30 | 2023-05-02 | 广州趣研网络科技有限公司 | Monitoring data acquisition method and device, electronic equipment and storage medium |
CN116055496B (en) * | 2022-12-30 | 2024-04-05 | 广州趣研网络科技有限公司 | Monitoring data acquisition method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114979158B (en) | 2024-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11641319B2 (en) | Network health data aggregation service | |
CN114979158A (en) | Resource monitoring method, system, equipment and computer readable storage medium | |
US20210119890A1 (en) | Visualization of network health information | |
CN107819829B (en) | Method and system for accessing block chain, block chain node point equipment and user terminal | |
US10243820B2 (en) | Filtering network health information based on customer impact | |
CN108712332B (en) | Communication method, system and device | |
US10911263B2 (en) | Programmatic interfaces for network health information | |
EP3418877A1 (en) | Data writing and reading method and apparatus, and cloud storage system | |
KR101871383B1 (en) | Method and system for using a recursive event listener on a node in hierarchical data structure | |
CN103338243A (en) | Method and system for updating cache data of Web node | |
CN111552701B (en) | Method for determining data consistency in distributed cluster and distributed data system | |
CN108427619B (en) | Log management method and device, computing equipment and storage medium | |
CN111966289A (en) | Partition optimization method and system based on Kafka cluster | |
CN110781149A (en) | Method, device, equipment and storage medium for managing live broadcast room information | |
CN115517009B (en) | Cluster management method, cluster management device, storage medium and electronic equipment | |
CN111464589A (en) | Intelligent contract processing method, computer equipment and storage medium | |
CN109391487A (en) | A kind of configuration update method and system | |
CN109067649B (en) | Node processing method and device, storage medium and electronic equipment | |
CN109284275B (en) | Cloud platform virtual machine file system monitoring method and device | |
CN113157497B (en) | Data storage method, device, equipment and medium | |
CN111309515A (en) | Disaster recovery control method, device and system | |
CN113535477B (en) | Method and equipment for data disaster recovery | |
CN111629054B (en) | Message processing method, device and system, electronic equipment and readable storage medium | |
CN114374705A (en) | Service cluster and message pushing method | |
JP5538810B2 (en) | Mass data storage system for monitoring |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |