CN114979158B - Resource monitoring method, system, equipment and computer readable storage medium - Google Patents

Resource monitoring method, system, equipment and computer readable storage medium Download PDF

Info

Publication number
CN114979158B
CN114979158B CN202210563996.1A CN202210563996A CN114979158B CN 114979158 B CN114979158 B CN 114979158B CN 202210563996 A CN202210563996 A CN 202210563996A CN 114979158 B CN114979158 B CN 114979158B
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.)
Active
Application number
CN202210563996.1A
Other languages
Chinese (zh)
Other versions
CN114979158A (en
Inventor
陈国勋
季长云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202210563996.1A priority Critical patent/CN114979158B/en
Publication of CN114979158A publication Critical patent/CN114979158A/en
Application granted granted Critical
Publication of CN114979158B publication Critical patent/CN114979158B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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 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 the target resource information to a resource state monitoring center; storing the target resource information; each physical node is provided with a local state monitoring service; and the resource state monitoring center is a selected local state monitoring service in the cloud platform. In the method, the local state monitoring service increment synchronizes the target resource information to the resource state monitoring center, so that the resource state monitoring center does not need to poll the physical node for resources, and the local state monitoring service stores the target resource information, so that the physical node and the like do not need to access the resource state monitoring center any more, the service pressure of the resource state monitoring center can be reduced, and the applicability is good.

Description

Resource monitoring method, system, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of resource monitoring technology, 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 technology to the construction of new generation data centers, management and service concentration are realized on the basis of virtualization, and dynamic adjustment and allocation are performed on data center resources. For example, the resource state monitoring center provides 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 reliability of the virtual machine and the cloud computing application and the like.
However, in the process of monitoring the resources of the cloud platform, the resource state monitoring center needs to constantly poll other systems with high requirements on real-time change of the data state, so that the performance consumption is high; the system depending on the data state needs to access the resource state monitoring center continuously, so that the pressure of the resource state monitoring center is high; the resource monitoring method has more limitations and poor applicability.
In summary, how to improve the applicability of the resource monitoring method is a problem to be solved by those skilled in the art.
Disclosure of Invention
The purpose of the application is 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 object, 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:
performing resource acquisition on 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 provided with one local state monitoring service; and the resource state monitoring center serves the selected local state monitoring service in the cloud platform.
Preferably, the resource acquisition is performed on physical nodes corresponding to the local state monitoring service one by one to obtain target resource information, including:
acquiring predetermined resource information to be acquired;
performing resource acquisition on 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 the 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, and storing the time sequence database on a shared storage.
Preferably, after the storing the target resource information, the method further includes:
traversing all stored resources;
acquiring the update time of the stored resource;
judging whether the update time is beyond a cleaning time threshold, if so, recording the corresponding target information of the stored resources;
and after the traversing is finished, cleaning the corresponding stored resources based on the target information.
Preferably, after the storing the target resource information, the method further includes:
acquiring resource query conditions;
constructing a monitoring object based on the resource inquiry condition, and registering the monitoring object into a monitoring queue of the corresponding resource;
and performing resource monitoring based on the monitoring queue to obtain a resource monitoring result.
Preferably, after the 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 a monitoring event transmission queue.
A resource monitoring system applied to a local state monitoring service in a cloud platform, comprising:
the resource acquisition module is used for acquiring resources of physical nodes corresponding 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 provided with one local state monitoring service; and the resource state monitoring center serves the selected local state monitoring service in the cloud platform.
An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of any one of the resource monitoring methods described above when executing the computer program.
A computer readable storage medium having stored therein a computer program which when executed by a processor implements the steps of any of the resource monitoring methods described above.
The resource monitoring method is applied to a local state monitoring service in a cloud platform, and resource acquisition is carried out on 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; each physical node is provided with a local state monitoring service; and the resource state monitoring center is a selected local state monitoring service in the cloud platform. In the method, a local state monitoring service is deployed on each physical node of the cloud platform, the local state monitoring service can acquire resources of the corresponding physical node to obtain target resource information, then the local state monitoring service can simply and rapidly transmit the newly acquired resource information to the resource state monitoring center in a mode of synchronizing the target resource information to the resource state monitoring center in an increment mode, and further, the resource state monitoring center in the method is the selected local state monitoring service in the cloud platform, namely, each local state monitoring service can be the resource state monitoring center, so that the resource state monitoring center in the method is the decentralized resource state monitoring center, the resource state monitoring center does not need to poll the physical node any more, and the performance consumption of the resource state monitoring center is reduced; in addition, the local state monitoring service can store the target resource information, namely the local state monitoring service stores the corresponding resource information, so that the physical node or other equipment can obtain the corresponding resource information only by inquiring the local state monitoring service, the resource state monitoring center is not required to be accessed, the service pressure of the resource state monitoring center can be reduced, and the applicability is good. The resource monitoring system, the equipment and the computer readable storage medium also 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 that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
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 method for monitoring resources 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 composition structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Currently, with the development of cloud computing and virtualization technology to the construction of new generation data centers, management and service concentration are realized on the basis of virtualization, and dynamic adjustment and allocation are performed on data center resources. For example, the resource state monitoring center provides 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 reliability of the virtual machine and the cloud computing application and the like.
However, in the process of monitoring the resources of the cloud platform, the resource state monitoring center needs to constantly poll other systems with high requirements on real-time change of the data state, so that the performance consumption is high; the system depending on the data state needs to access the resource state monitoring center continuously, so that the pressure of the resource state monitoring center is high; the resource monitoring method has more 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 be shown in 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 (Local status monitoring service, LSMS) that establish a communication connection 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 a selected local state monitoring service in the cloud platform. Note that, an exposer in the local state monitoring service represents a local resource on a physical node, and udevd/agent/… represents a resource sent to the physical node by a third party service on the physical node.
In the application, the local state monitoring service is used for executing the steps of the resource monitoring method, and the method comprises the steps of collecting resources of 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; 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 application.
The resource monitoring method provided by the embodiment of the application is applied to the local state monitoring service in the cloud platform, and can comprise the following steps:
step S101: and carrying out resource acquisition on the physical nodes corresponding to the local state monitoring service one by one to obtain target resource information.
In practical application, the local state monitoring service may collect resources of a physical node corresponding to the local state monitoring service to obtain target resource information on the physical node, specifically, the local state monitoring service may collect local resources on the physical node and other resources sent by a third party service connected with the physical node, for example, the target resource information may be information such as resource static data, resource consumption dynamic data, virtual machine operation data, network traffic and the like related to the physical node, or may be information such as data pushed to the physical node after the third party service performs resource registration on the physical node, that is, the local state monitoring service in the application refers to a service for monitoring a resource state of the deployed physical node, where the local state described herein may be resource static data, resource consumption dynamic data, virtual machine operation data, network traffic data, data pushed to the physical node after the third party service performs resource registration on the physical node, and the like.
It should be noted that, the triggering condition of the local state monitoring service for performing resource collection on the physical node may be flexibly selected according to a specific application scenario, for example, resource collection may be performed on the physical node at regular time, or resource collection may be performed on the physical node after receiving a resource update instruction, which is not specifically limited herein.
Step S102: and incrementally synchronizing the target resource information to a resource state monitoring center.
In practical application, after obtaining the target resource information, the local state monitoring service can transmit the target resource information to the resource state monitoring center in an incremental synchronous mode, namely, only the newly acquired resource information is transmitted to the resource state monitoring center, so that the resource state monitoring center displays 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 provided with a local state monitoring service; and the resource state monitoring center is a selected local state monitoring service in the cloud platform.
In practical application, the local state monitoring service may store the target resource information after obtaining the target resource information, for example, may store the resource information newly collected in the target resource information, and may store the resource information according to the collection time; in this way, the physical node or other equipment can obtain the corresponding resource information only by carrying out resource inquiry on the local state monitoring service, and the resource state monitoring center is not required to be accessed any more, so that the service pressure of the resource state monitoring center can be reduced; in addition, the resource state monitoring center in the application is the selected local state monitoring service in the cloud platform, namely, each local state monitoring service can be the resource state monitoring center, so that the resource state monitoring center in the application is the decentralized resource state monitoring center, the resource state monitoring center does not need to carry out resource polling on physical nodes, and the performance consumption of the resource state monitoring center is reduced.
It should be noted that, the local state monitoring service may be deployed on a physical node in a manner of software, a plug-in, or the like, which is not specifically limited herein. In addition, the manner of selecting the resource status monitoring center from the plurality of local status monitoring services may be determined according to a specific application scenario, for example, in order to avoid that the local status monitoring services transmit data to the resource status monitoring center too much, the local status monitoring service with the most saved resource information may be used as the resource status monitoring center, etc., and in the case of pursuing the stability of the resource status monitoring center, the most stable local status monitoring service may be used as the resource status monitoring center, etc., which is not limited herein.
The resource monitoring method is applied to a local state monitoring service in a cloud platform, and resource acquisition is carried out on 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; each physical node is provided with a local state monitoring service; and the resource state monitoring center is a selected local state monitoring service in the cloud platform. In the method, a local state monitoring service is deployed on each physical node of the cloud platform, the local state monitoring service can acquire resources of the corresponding physical node to obtain target resource information, then the local state monitoring service can simply and rapidly transmit the newly acquired resource information to the resource state monitoring center in a mode of synchronizing the target resource information to the resource state monitoring center in an increment mode, and further, the resource state monitoring center in the method is the selected local state monitoring service in the cloud platform, namely, each local state monitoring service can be the resource state monitoring center, so that the resource state monitoring center in the method is the decentralized resource state monitoring center, the resource state monitoring center does not need to poll the physical node any more, and the performance consumption of the resource state monitoring center is reduced; in addition, the local state monitoring service can store the target resource information, namely the local state monitoring service stores the corresponding resource information, so that the physical node or other equipment can obtain the corresponding resource information only by inquiring the local state monitoring service, the resource state monitoring center is not required to be accessed, 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 application.
The resource monitoring method provided by the embodiment of the application is applied to the local state monitoring service in the cloud platform, and can comprise the following steps:
step S201: and acquiring predetermined resource information to be acquired.
In practical application, the local state monitoring service acquires the resources of physical nodes corresponding to the local state monitoring service one by one, and in the process of acquiring the target resource information, the acquired target resource information needs to meet the requirements of users and the like, so that the local state monitoring service can acquire the predetermined resource information required to be acquired, and the type of the resource information can be determined according to specific application scenarios, for example, the resource type, the index contained in the resource, the index type and the like can be included.
Step S202: and carrying out resource acquisition on the physical nodes corresponding to the local state monitoring service one by one to obtain initial resource information.
In practical application, after acquiring the predetermined resource information to be acquired, the local state monitoring service can acquire the resources of the physical nodes corresponding to the local state monitoring service one by one to obtain initial resource information, for example, the resource information of the physical nodes can be acquired by periodic task timing, and the resource information reported by the third party service is received through an API (Application Programming Interface, application program interface) rpoet interface, and the like.
Step S203: and screening the initial resource information to obtain target resource information matched with the resource information.
In practical application, after obtaining the initial resource information, the local state monitoring service can screen the initial resource information according to the resource information to obtain target resource information matched with the resource information, so that the collected target resource information can meet the resource monitoring requirements of users and the like.
Step S204: and incrementally synchronizing the target resource information to a resource state monitoring center.
Step S205: storing the target resource information; each physical node is provided with a local state monitoring service; and the resource state monitoring center is a selected local state monitoring service 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 application.
The resource monitoring method provided by the embodiment of the application is applied to the local state monitoring service in the cloud platform, and can comprise the following steps:
step S301: and carrying out resource acquisition on the physical nodes corresponding to the local state monitoring service one by one to obtain target resource information.
Step S302: and incrementally synchronizing the target resource information to a resource state monitoring center.
Step S303: and storing the resource state data in the target resource information in a memory.
Step S304: storing the resource trend data in the target resource information in a time sequence database according to the resource dimension, and storing the time sequence database on a shared storage; each physical node is provided with a local state monitoring service; and the resource state monitoring center is a selected local state monitoring service in the cloud platform.
In practical application, the local state monitoring service can correspondingly store the target resource information according to the type of the target resource information in the process of storing the target resource information, for example, the resource state data in the target resource information can be stored in a memory; and storing the resource trend data in the target resource information in a time sequence database (time-series database) according to the resource dimension, and storing the time sequence database on a shared storage and the like.
It should be noted that, the resource status data is used to describe the status of the resource information, such as that the resource information is updated, the resource information is deleted, and the resource information is cleared up due to expiration, where 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 is changed, the local status monitoring service may also actively report the corresponding information in the target resource information to the devices such as the client, so that the devices such as the client can timely learn the latest status of the target resource information; the resource trend data is used for describing the change of the resource information with time, such as the change of a physical node with time, the change of a virtual machine with time and the like, the type of the resource trend data can be determined according to a specific application scene, and correspondingly, the resource state monitoring center can also perform data recovery and the like according to the resource trend data if the resource state monitoring center is lost due to abnormal breakdown because the resource trend data is used for describing the change of the resource information with time.
Referring to fig. 5, fig. 5 is a fourth flowchart of a resource monitoring method according to an embodiment of the present application.
The resource monitoring method provided by the embodiment of the application is applied to the local state monitoring service in the cloud platform, and can comprise the following steps:
step S401: and carrying out resource acquisition on the physical nodes corresponding to the local state monitoring service one by one to obtain target resource information.
Step S402: and incrementally synchronizing the target resource information to a resource state monitoring center.
Step S403: storing the target resource information; each physical node is provided with a local state monitoring service; and the resource state monitoring center is a selected local state monitoring service in the cloud platform.
Step S404: traversing all stored resources.
Step S405: the update time of the stored resource is obtained.
Step S406: judging whether the update time is beyond the cleaning time threshold, if so, executing step S407: and recording target information of the corresponding stored resources.
Step S408: and after the traversal 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 further manage the stored resources according to specific application requirements, for example, the stored resources may be cleaned according to update time of the resources, that is, all the stored resources may be traversed, update time of the stored resources may be obtained, whether the update time is beyond a cleaning time threshold is determined, if yes, target information of the corresponding stored resources is recorded, and after traversing is finished, the corresponding stored resources are cleaned based on the target information. For ease of understanding, assuming the cleanup time threshold is the first three days before the current time, the stored resources that were three days before the current time would be cleaned up by the local condition monitoring service.
It should be noted that, the condition of the local state monitoring service for cleaning the stored resources may also be determined according to a specific application scenario, for example, cleaning the specified resources in the stored resources according to a cleaning instruction of the user, 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 application.
The resource monitoring method provided by the embodiment of the application is applied to the local state monitoring service in the cloud platform, and can comprise the following steps:
step S501: and carrying out resource acquisition on the physical nodes corresponding to the local state monitoring service one by one to obtain target resource information.
Step S502: and incrementally synchronizing the target resource information to a resource state monitoring center.
Step S503: storing the target resource information; each physical node is provided with a local state monitoring service; and the resource state monitoring center is a selected local state monitoring service in the cloud platform.
Step S504: and acquiring resource query conditions.
Step S505: constructing a monitoring object based on the resource inquiry condition, and registering the monitoring object into a monitoring queue of the corresponding resource.
Step S506: and performing resource monitoring based on the monitoring queue to obtain a resource monitoring result.
In practical application, the local state monitoring service can acquire corresponding resource query conditions in face of query demands of users, clients or other services, and the like, construct a monitoring object based on the resource query conditions, register the monitoring object into a monitoring queue of a corresponding resource, monitor the resource based on the monitoring queue, obtain a resource monitoring result, and respond to the resource query demands. And after that, the local state monitoring service may also transmit the monitored resource monitoring result to the setting party of the resource query condition, for example, transmit the resource monitoring result to the client, etc., and in this process, may transmit the resource monitoring result to the client, etc. based on the monitoring event transmission queue, that is, may transmit the target resource information, etc. to the client, etc. 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 application.
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 comprise:
the resource acquisition module 101 is configured to acquire resources of physical nodes corresponding to the local state monitoring service one by one, so as to obtain target resource information;
the resource synchronization module 102 is configured to incrementally synchronize the target resource information to the resource status monitoring center;
a resource processing module 103, configured to store target resource information;
each physical node is provided with a local state monitoring service; and the resource state monitoring center is a selected local state monitoring service in the cloud platform.
The embodiment of the application provides a resource monitoring system, which is applied to a local state monitoring service in a cloud platform, and a resource acquisition module may include:
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 physical nodes corresponding 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 embodiment of the application provides a resource monitoring system, which is applied to a local state monitoring service in a cloud platform, and a 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 a time sequence database according to the resource dimension, and the time sequence database is stored on 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 further can 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 update time of the stored resources;
the first judging module is used for judging whether the updating time is beyond a cleaning time threshold value, if so, recording the corresponding target information of the stored resources;
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 further can include:
the second acquisition module is used for acquiring resource query conditions 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 inquiry condition and registering the monitoring object into a monitoring queue of the corresponding resource;
and the first monitoring module is used for monitoring the resources 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 further can 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 embodiment of the application provides a resource monitoring system, which is applied to a local state monitoring service in a cloud platform, and a 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 of the embodiment of the present invention, the embodiment of the present invention further provides an electronic device, and fig. 8 is a schematic diagram of a hardware composition structure of the electronic device of the embodiment of the present invention, as shown in fig. 8, where 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 devices and is used for executing the resource monitoring method provided by one or more technical schemes when running the computer program. And the computer program is stored on the memory 3.
Of course, in practice, the various components in the electronic device are coupled together by a bus system 4. It will be appreciated that the bus system 4 is used to enable connected communications 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. But for clarity of illustration 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. Wherein the nonvolatile Memory may be Read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only Memory (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random Access Memory), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (ddr SDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic RandomAccess Memory), direct memory bus random access memory (DRRAM, direct Rambus 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 in the above embodiment of the present invention may be applied to the processor 2 or implemented by the processor 2. The processor 2 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 2 or by instructions in the form of software. 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 components, 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 in the embodiment of the invention can be directly embodied in the hardware of the 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 in the memory 3 and the processor 2 reads the program in the memory 3 to perform the steps of the method described above in connection with its hardware.
The corresponding flow in each method of the embodiments of the present invention is implemented when the processor 2 executes the program, and for brevity, will not be described in detail herein.
In an exemplary embodiment, the present invention also 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 executable by the processor 2 for performing the steps of the method described above. The computer readable storage medium may be 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, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
Alternatively, the above-described integrated units of the present invention may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
The description of the relevant parts in the user operation processing system, the electronic device and the computer readable storage medium provided in the embodiments of the present application refers to the detailed description of the corresponding parts in the user operation processing method provided in the embodiments of the present application, and will not be repeated here. In addition, the parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of the corresponding technical solutions in the prior art, are not described in detail, so that redundant descriptions are avoided.
It is further noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like 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 (9)

1. The resource monitoring method is characterized by being applied to a local state monitoring service in a cloud platform and comprising the following steps of:
performing resource acquisition on 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;
acquiring resource query conditions;
constructing a monitoring object based on the resource inquiry condition, and registering the monitoring object into a monitoring queue of the corresponding resource;
performing resource monitoring based on the monitoring queue to obtain a resource monitoring result;
wherein, each physical node is provided with one local state monitoring service; and the resource state monitoring center serves the selected local state monitoring service in the cloud platform.
2. The method according to claim 1, wherein the resource collection of the physical nodes corresponding to the local state monitoring service one to one is performed to obtain target resource information, including:
acquiring predetermined resource information to be acquired;
performing resource acquisition on 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 the 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, and storing the time sequence database on a shared storage.
4. The method of claim 1, wherein after storing the target resource information, further comprising:
traversing all stored resources;
acquiring the update time of the stored resource;
judging whether the update time is beyond a cleaning time threshold, if so, recording the corresponding target information of the stored resources;
and after the traversing is finished, cleaning the corresponding stored resources based on the target information.
5. The method of claim 1, wherein after storing the target resource information, further comprising:
and transmitting the resource monitoring result to the client.
6. The method of claim 5, wherein the transmitting the resource listening result to the client comprises:
and transmitting the resource monitoring result to the client based on a monitoring event transmission queue.
7. A resource monitoring system, characterized by being applied to a local state monitoring service in a cloud platform, comprising:
the resource acquisition module is used for acquiring resources of physical nodes corresponding 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;
the second acquisition module is used for acquiring resource query conditions;
the first construction module is used for constructing a monitoring object based on the resource inquiry condition and registering the monitoring object into a monitoring queue of the corresponding resource;
the first monitoring module is used for monitoring resources based on the monitoring queue to obtain a resource monitoring result;
wherein, each physical node is provided with one local state monitoring service; and the resource state monitoring center serves the selected local state monitoring service in the cloud platform.
8. 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 of claims 1 to 6 when executing said computer program.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the steps of the resource monitoring method according to any of claims 1 to 6.
CN202210563996.1A 2022-05-23 2022-05-23 Resource monitoring method, system, equipment and computer readable storage medium Active CN114979158B (en)

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 CN114979158A (en) 2022-08-30
CN114979158B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN116055496B (en) * 2022-12-30 2024-04-05 广州趣研网络科技有限公司 Monitoring data acquisition method and device, electronic equipment and storage medium

Citations (22)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6807354B2 (en) * 2018-07-13 2021-01-06 株式会社日立製作所 Storage system and information management method

Patent Citations (22)

* Cited by examiner, † Cited by third party
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
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)

* Cited by examiner, † Cited by third party
Title
SHMA:一种云平台的监控框架;陈林;应时;贾向阳;;计算机科学(01);第7-12页 *
分布式Robot系统结构设计;姜杰;福建电脑(12);第77-79页 *

Also Published As

Publication number Publication date
CN114979158A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN114979158B (en) Resource monitoring method, system, equipment and computer readable storage medium
CN107819829B (en) Method and system for accessing block chain, block chain node point equipment and user terminal
CN106953905B (en) Inter-domain directory sharing method and device
EP3418877A1 (en) Data writing and reading method and apparatus, and cloud storage system
CN111966289B (en) Partition optimization method and system based on Kafka cluster
CN107544837B (en) Cloud service equipment performance data acquisition system, method and device
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
RU2595622C1 (en) Method and device for dynamic message reception
CN109246182B (en) Distributed lock manager and implementation method thereof
CN111131079B (en) Policy query method and device
CN110781149A (en) Method, device, equipment and storage medium for managing live broadcast room information
CN109391487A (en) A kind of configuration update method and system
CN107566480B (en) User activity information acquisition method and device for mobile terminal application and storage medium
EP3089421A1 (en) Network element data access method and apparatus, and network management system
CN112860679A (en) Equipment information management method and device, electronic equipment and storage medium
CN111367761A (en) Information management method, system and related components of universal server
CN113535477B (en) Method and equipment for data disaster recovery
CN115757998A (en) Dynamic rendering method and device for power grid data
CN114374705A (en) Service cluster and message pushing method
CN112148551B (en) Method, apparatus and computer program product for determining a rate of change of usage of a storage system
US11259169B2 (en) Highly scalable home subscriber server
CN109257403A (en) Date storage method and equipment, distributed memory system
CN109743188A (en) Daily record data treating method and apparatus
CN101894119A (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