System load information collection and display system and method

By designing a system load information acquisition and display system, including a display module, a load information handler and a load information provider, the problem of load information collection and display under insufficient hardware resources is solved, and a lightweight, integrated load information collection and display solution is realized.

CN119759685APending Publication Date: 2025-04-04上海沄熹科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411834060.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

How to effectively collect and display system load information such as CPU, memory, disk and network usage in the event of insufficient hardware resources.

Method used

A system load information acquisition and display system is designed, including a display module, a load information handler and a load information provider. Through the load information provider, the subscription method and the interface for obtaining load information, the display module establishes a connection with the system background, subscribes and obtains load information through the load information handler, and returns it to the display module.

Benefits of technology

It realizes a lightweight, integrated load information collection and display solution in the case of insufficient hardware resources, and can effectively collect and display the load information of the system CPU, memory, disk and network usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759685A_ABST
    Figure CN119759685A_ABST
Patent Text Reader

Abstract

The present invention discloses a system load information collection and display system and method, which belongs to the field of operation and maintenance monitoring technology. The technical problem to be solved is how to collect and display the load information in the situation of insufficient hardware resources. The load information Provider is used to define the subscription method, the Provider interface of the load information method of the system load, and the implementation; the display module is used to establish a connection with the system background and initiate a load information request to the system background; the load information handler is used to monitor the connection request initiated by the display module, subscribe to the load information from the system background according to the connection request, obtain the load information from the system background through the load information Provider interface, and return the load information to the display module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of operation and maintenance monitoring, and in particular to a system load information collection and display system and method. Background Art

[0002] KaiwuDB IoT analysis platform mainly includes product management, device management, alarm center, device access, rule forwarding, visualization, shared API, etc. It supports one-stop management of edge gateways, devices, and data, and hierarchical management through platform permissions to help users quickly implement device networking and industry application integration systems. Usually, IoT platforms have many functions, but the hardware resources that can be used for deployment are very limited, and there are no additional resources to provide for additional monitoring systems, such as deploying additional PAG and ELK monitoring systems.

[0003] Therefore, a more lightweight method is needed that can be integrated into the IoT analysis platform to collect and display the system CPU, memory, disk, network and other usage load information.

[0004] In the case of insufficient hardware resources, how to collect and display load information is a technical problem that needs to be solved. Summary of the invention

[0005] The technical task of the present invention is to address the above deficiencies and provide a system load information collection and display system and method to solve the technical problem of how to collect and display load information when hardware resources are insufficient.

[0006] In a first aspect, the present invention provides a system load information collection and display system, including a display module, a load information handler, and a load information Provider;

[0007] The load information Provider is used to define the subscription method, the Provider interface and implementation of the load information method for obtaining the system load;

[0008] The display module is used to establish a connection with the system background and initiate a load information request to the system background;

[0009] The load information handler is used to monitor the connection request initiated by the display module, subscribe to the load information from the system background according to the connection request, obtain the load information from the system background through the load information Provider interface, and return the load information to the display module.

[0010] Preferably, the display module is used to display the load information of the system load through a web browser or a client, and the system load includes CPU, memory, disk and network.

[0011] Preferably, the display module initiates a websocket connection request to the system backend, and based on the connection request, the display module establishes a websocket connection with the system backend.

[0012] Preferably, the connection request includes an ID and a topic, wherein the ID is used to identify the system load to be displayed, and the topic is used to identify the system load to be subscribed;

[0013] Correspondingly, when receiving the load information request initiated by the display module, the load information handler is used to analyze the ID and subject specified in the load information request, determine the load information Provider that needs to be subscribed according to the subject specified in the load information request, and subscribe to it. For the load information obtained from the system background, the load information handler is used to assemble the load information with the ID and return it to the display module.

[0014] Preferably, the load information Provider is used to define the following interface and implementation:

[0015] subscribe(): Used to implement the subscribe method defined in the load information Provider interface, and specifically implement how to subscribe logic;

[0016] getValue(): Used to implement the getValue method defined in the load information Provider interface, which specifically implements how to obtain the load information of the system load.

[0017] In a second aspect, the present invention provides a method for collecting and displaying system load information, which displays the load information of the system load by using a system load information collection and display system as described in any one of the first aspects, and the method comprises the following steps:

[0018] Define the subscription method and the provider interface and implementation of the method for obtaining system load information through the load information provider;

[0019] Establish a connection with the system backend through the display module and initiate a load information request to the system backend;

[0020] The load information handler listens to the connection request initiated by the display module, subscribes to the load information from the system background according to the connection request, obtains the load information from the system background through the load information Provider interface, and returns the load information to the display module.

[0021] Preferably, the load information of the system load is displayed through a web browser or a client, and the system load includes CPU, memory, disk and network.

[0022] Preferably, a websocket connection request is initiated to the system backend through the display module, and based on the connection request, the display module establishes a websocket connection with the system backend.

[0023] Preferably, the connection request includes an ID and a topic, wherein the ID is used to identify the system load to be displayed, and the topic is used to identify the system load to be subscribed;

[0024] Correspondingly, when a load information request is received from the display module, the ID and subject specified in the load information request are analyzed by the load information handler, and the load information Provider to be subscribed is determined and subscribed according to the subject specified in the load information request. For the load information obtained from the system background, the load information handler is used to assemble the load information with the ID and return it to the display module.

[0025] As a preference, define the following interface and implementation through the load information Provider:

[0026] subscribe(): Used to implement the subscribe method defined in the load information Provider interface, and specifically implement how to subscribe logic;

[0027] getValue(): Used to implement the getValue method defined in the load information Provider interface, which specifically implements how to obtain the load information of the system load.

[0028] The system load information collection and display system and method of the present invention have the following advantages: a lightweight solution for collecting and displaying load information that can be integrated into a service is realized, so that load information of the system CPU, memory, disk, network, etc. can be collected and displayed when hardware resources are insufficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] The present invention is further described below in conjunction with the accompanying drawings.

[0031] Figure 1 This is a block diagram of the overall architecture of a system load information collection and display system in Example 1;

[0032] Figure 2 This is a structural block diagram of a display module in a system load information acquisition and display system in Example 1;

[0033] Figure 3 This is a structural block diagram of a load information handler in a system load information collection and display system according to Example 1;

[0034] Figure 4 This is a structural block diagram of a load information Provider in a system load information collection and display system in Example 1. DETAILED DESCRIPTION

[0035] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it. However, the embodiments are not intended to limit the present invention. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments may be combined with each other.

[0036] The embodiment of the present invention provides a system load information collection and display system and method, which are used to solve the technical problem of how to collect and display usage load information in a situation where hardware resources are insufficient.

[0037] Embodiment 1:

[0038] The present invention discloses a system load information collection and display system, comprising a display module, a load information handler and a load information Provider.

[0039] The load information provider is used to define the provider interface and implementation of the subscription method and the method for obtaining the load information of the system load.

[0040] In this embodiment, the load information Provider is used to define the following interfaces and implementations:

[0041] subscribe(): Used to implement the subscribe method defined in the load information Provider interface, and specifically implement how to subscribe logic;

[0042] getValue(): Used to implement the getValue method defined in the load information Provider interface, which specifically implements how to obtain the load information of the system load.

[0043] The display module is used to establish a connection with the system background and initiate a load information request to the system background.

[0044] In this embodiment, the display module is used to display the load information of the system load through a web browser or a client, and the system load includes CPU, memory, disk and network.

[0045] The display module initiates a websocket connection request to the system backend, and based on the connection request, the display module establishes a websocket connection with the system backend. The connection request includes an ID and a topic, where the ID is used to identify the system load to be displayed, and the topic is used to identify the system load to be subscribed.

[0046] The load information handler is used to listen to the connection request initiated by the display module, subscribe to the load information from the system background according to the connection request, obtain the load information from the system background through the load information Provider interface, and return the load information to the display module.

[0047] In this embodiment, the load information handler is bound to the websocket API and receives a load information request initiated by the display module. The load information handler is used to analyze the ID and subject specified in the load information request, determine the load information Provider that needs to be subscribed according to the subject specified in the load information request, and subscribe to it. For the load information obtained from the system background, the load information handler is used to assemble the load information with the ID and return it to the display module.

[0048] The system of this embodiment uses the websocket protocol and pubsub mode to implement a lightweight solution for collecting and displaying load information that can be integrated into the service, so that the load information of the system CPU, memory, disk, network, etc. can be collected and displayed when hardware resources are insufficient.

[0049] Embodiment 2:

[0050] The present invention provides a method for collecting and displaying system load information, which realizes the display of system load information through the system disclosed in Example 1. The method comprises the following steps:

[0051] Step S100, define a subscription method through a load information Provider, a Provider interface and implementation of a method for obtaining load information of a system load;

[0052] Step S200: Establish a connection with the system background through the display module, and initiate a load information request to the system background;

[0053] Step S300: monitor the connection request initiated by the display module through the load information handler, subscribe to the load information from the system background according to the connection request, obtain the load information from the system background through the load information Provider interface, and return the load information to the display module.

[0054] In this embodiment, step S100 of the load information provider is used to define the following interfaces and implementations:

[0055] subscribe(): Used to implement the subscribe method defined in the load information Provider interface, and specifically implement how to subscribe logic;

[0056] getValue(): Used to implement the getValue method defined in the load information Provider interface, which specifically implements how to obtain the load information of the system load.

[0057] In step S200, the display module displays the load information of the system load through a web browser or a client, and the system load includes CPU, memory, disk and network.

[0058] The display module initiates a websocket connection request to the system backend, and based on the connection request, the display module establishes a websocket connection with the system backend. The connection request includes an ID and a topic, where the ID is used to identify the system load to be displayed, and the topic is used to identify the system load to be subscribed.

[0059] The load information handler is bound to the websocket API. In step S300, a load information request initiated by the display module is received. The load information handler analyzes the ID and subject specified in the load information request, determines the load information Provider to be subscribed to according to the subject specified in the load information request, and subscribes to it. For the load information obtained from the system background, the load information handler is used to assemble the load information with the ID and return it to the display module.

[0060] The present invention has been shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the means in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.

Claims

1. A system load information collection and display system, characterized in that: Includes display module, load information handler and load information Provider; The load information Provider is used to define the subscription method, the Provider interface and implementation of the load information method for obtaining the system load; The display module is used to establish a connection with the system background and initiate a load information request to the system background; The load information handler is used to monitor the connection request initiated by the display module, subscribe to the load information from the system background according to the connection request, obtain the load information from the system background through the load information Provider interface, and return the load information to the display module.

2. The system load information collection and display system according to claim 1, characterized in that: The display module is used to display the load information of the system load through a web browser or client. The system load includes CPU, memory, disk and network.

3. The system load information collection and display system according to claim 1, characterized in that: The display module initiates a websocket connection request to the system background. Based on the connection request, the display module establishes a websocket connection with the system background.

4. The system load information collection and display system according to claim 1, characterized in that: The connection request includes an ID and a topic. The ID is used to identify the system load to be displayed, and the topic is used to identify the system load to be subscribed. Correspondingly, when receiving the load information request initiated by the display module, the load information handler is used to analyze the ID and subject specified in the load information request, determine the load information Provider that needs to be subscribed according to the subject specified in the load information request, and subscribe to it. For the load information obtained from the system background, the load information handler is used to assemble the load information with the ID and return it to the display module.

5. The system load information collection and display system according to claim 1, characterized in that: The load information Provider is used to define the following interfaces and implementations: subscribe(): Used to implement the subscribe method defined in the load information Provider interface, and specifically implement how to subscribe logic; getValue(): Used to implement the getValue method defined in the load information Provider interface, which specifically implements how to obtain the load information of the system load.

6. A method for collecting and displaying system load information, characterized in that: The system load information display is realized by a system load information collection and display system as described in any one of claims 1 to 5, and the method comprises the following steps: Define the subscription method and the provider interface and implementation of the method for obtaining system load information through the load information provider; Establish a connection with the system backend through the display module and initiate a load information request to the system backend; The load information handler listens to the connection request initiated by the display module, subscribes to the load information from the system background according to the connection request, obtains the load information from the system background through the load information Provider interface, and returns the load information to the display module.

7. The method for collecting and displaying system load information according to claim 6, characterized in that: The system load information is displayed through a web browser or client. The system load includes CPU, memory, disk and network.

8. The method for collecting and displaying system load information according to claim 6, characterized in that: A websocket connection request is initiated to the system backend through the display module. Based on the connection request, the display module establishes a websocket connection with the system backend.

9. The method for collecting and displaying system load information according to claim 6, characterized in that: The connection request includes an ID and a topic. The ID is used to identify the system load to be displayed, and the topic is used to identify the system load to be subscribed. Correspondingly, when a load information request is received from the display module, the ID and subject specified in the load information request are analyzed by the load information handler, and the load information Provider to be subscribed is determined and subscribed according to the subject specified in the load information request. For the load information obtained from the system background, the load information handler is used to assemble the load information with the ID and return it to the display module.

10. The method for collecting and displaying system load information according to claim 6, characterized in that: The following interfaces and implementations are defined through the load information Provider: subscribe(): Used to implement the subscribe method defined in the load information Provider interface, and specifically implement how to subscribe logic; getValue(): Used to implement the getValue method defined in the load information Provider interface, which specifically implements how to obtain the load information of the system load.