Runtime resource management methods, cloud gateways, electronic devices and storage media
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-10
- Publication Date
- 2026-08-14
AI Technical Summary
[0004]综上,当前云网关在工作时存在运行稳定性难以保证的技术问题,需要改进
[0019]有益效果:本申请提供一种运行资源管理方法、云网关、电子设备及存储介质,该方法应用于云网关,云网关包括独立部署的业务容器、转发容器和资源管理容器,资源管理容器接收并响应业务容器发送的第一数据上报请求,从业务容器中获取业务运行数据,且接收并响应转发容器发送的第二数据上报请求,从转发容器中获取转发运行数据,同时还会采集服务器运行数据,然后对业务运行数据、转发运行数据和服务器运行数据进行汇总处理,得到目标运行数据,最后将目标运行数据发送至可视化展示平台,且同时基于预设告警配置信息对目标运行数据进行故障检测,并在检测结果表征存在故障时生成并向告警平台发送告警信息。本申请通过在云网关部署相互独立的业务容器、转发容器和资源管理容器,资源管理容器可在不影响云网关当前工作的前提下实现对云网关的运行维护,在进行维护时,资源管理容器可以从业务容器和转发容器中获取业务运行数据和转发运行数据,同时自身也可以采集服务器运行数据,对这些运行数据进行汇总处理,得到目标运行数据后,可将目标运行数据进行合理搭配利用,既能够供可视化界面进行数据展示,使相关人员能及时了解各种资源的运行情况,同时也能够根据这些数据来检测运行是否异常,及时感知故障和告警并采取相应措施,综合以上情况共同提高了云网关的运行稳定性。
Smart Images

Figure CN116302790B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method for managing runtime resources, a cloud gateway, an electronic device, and a storage medium. Background Technology
[0002] In recent years, cloud gateways have gradually become the mainstream edge cloud network solution due to their low deployment cost, ease of maintenance, and easy scalability. They can replace most of the functions of home gateways, optical modems, and routers, and users do not need to purchase them. They can be deployed in the network equipment provider's data center to cover a wide range of users. Because they are deployed at the edge cloud, they provide great convenience for function expansion and operation and maintenance upgrades.
[0003] With the increasing popularity of cloud gateways and the continuous increase in user capacity, the performance of cloud gateways has faced unprecedented challenges. Ensuring the stable operation of cloud gateway devices has become particularly important. However, due to the relatively short time since the introduction of cloud gateway solutions and the immaturity of related technologies, the solutions for handling and recovering from sudden failures are not yet perfect, which makes the operation of cloud gateways subject to certain risks.
[0004] In summary, the current cloud gateway has technical issues that make it difficult to guarantee operational stability, and improvements are needed. Summary of the Invention
[0005] This application provides a runtime resource management method, a cloud gateway, an electronic device, and a storage medium to alleviate the technical problem of inaccurate timing of current runtime resource reclamation.
[0006] To address the aforementioned technical problems, the embodiments of this application provide the following technical solutions:
[0007] This application provides a runtime resource management method applied to a cloud gateway, wherein the cloud gateway includes independently deployed service containers, forwarding containers, and resource management containers, and the method includes:
[0008] The resource management container receives and responds to the first data reporting request sent by the business container, and obtains business operation data from the business container.
[0009] The resource management container receives and responds to the second data reporting request sent by the forwarding container, and obtains forwarding operation data from the forwarding container.
[0010] The server operation data is collected through a resource management container, and the business operation data, the forwarding operation data and the server operation data are aggregated and processed to obtain the target operation data;
[0011] The target running data is sent to the visualization display platform through the resource management container, and the target running data is subjected to fault detection based on the preset alarm configuration information. When the detection result indicates that a fault exists, an alarm message is generated and sent to the alarm platform.
[0012] Meanwhile, this application also provides a cloud gateway, including independently deployed service containers, forwarding containers, and resource management containers, wherein the resource management container is used for:
[0013] Receive and respond to the first data reporting request sent by the service container, and obtain service operation data from the service container;
[0014] Receive and respond to the second data reporting request sent by the forwarding container, and obtain forwarding operation data from the forwarding container;
[0015] Collect server operation data, and summarize the service operation data, the forwarding operation data, and the server operation data to obtain target operation data;
[0016] The target running data is sent to the visualization display platform, and fault detection is performed on the target running data based on the preset alarm configuration information. When the detection result indicates that a fault exists, an alarm message is generated and sent to the alarm platform.
[0017] This application also provides an electronic device, including a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to perform the steps in the runtime resource management method described above.
[0018] This application provides a computer-readable storage medium storing multiple instructions adapted for loading by a processor to execute the steps in the above-described runtime resource management method.
[0019] Beneficial Effects: This application provides a method for managing runtime resources, a cloud gateway, an electronic device, and a storage medium. The method is applied to a cloud gateway, which includes independently deployed business containers, forwarding containers, and resource management containers. The resource management container receives and responds to a first data reporting request sent by the business containers, obtains business runtime data from the business containers, and receives and responds to a second data reporting request sent by the forwarding containers, obtains forwarding runtime data from the forwarding containers, and also collects server runtime data. Then, it aggregates and processes the business runtime data, forwarding runtime data, and server runtime data to obtain target runtime data. Finally, it sends the target runtime data to a visualization platform. Simultaneously, it performs fault detection on the target runtime data based on preset alarm configuration information, and generates and sends alarm information to the alarm platform when the detection results indicate the presence of a fault. This application deploys independent business containers, forwarding containers, and resource management containers on the cloud gateway. The resource management container can perform operation and maintenance on the cloud gateway without affecting its current operation. During maintenance, the resource management container can obtain business operation data and forwarding operation data from the business containers and forwarding containers, and can also collect server operation data itself. After summarizing and processing this operation data to obtain the target operation data, the target operation data can be reasonably combined and utilized. This data can be displayed on a visual interface, allowing relevant personnel to understand the operation status of various resources in a timely manner. At the same time, it can also detect whether there are any abnormalities in operation based on this data, promptly detect faults and alarms, and take corresponding measures. All of the above factors together improve the operational stability of the cloud gateway. Attached Figure Description
[0020] The technical solution and other beneficial effects of this application will become apparent from the following detailed description of specific embodiments in conjunction with the accompanying drawings.
[0021] Figure 1 This is a schematic diagram of a scenario for the runtime resource management method provided in the embodiments of this application.
[0022] Figure 2 This is a flowchart illustrating the runtime resource management method provided in an embodiment of this application.
[0023] Figure 3 This is a schematic diagram illustrating the working process of the cloud gateway in this application embodiment.
[0024] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0026] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating a scenario in which the runtime resource management method provided in this application embodiment is applied. This scenario may include a cloud gateway, a visualization platform, and an alarm platform. The cloud gateway is a connection device between the terminal and the cloud server. The visualization platform can run on various electronic devices with display functions. The alarm platform can run in settings with alarm permissions and alarm functions, wherein:
[0027] The cloud gateway deploys independent service containers, forwarding containers, and resource management containers. Service containers acquire, store, and provide service operation data to the resource management container. Forwarding containers acquire, store, and provide forwarding operation data to the resource management container. The resource management container itself can collect server operation data and read service operation data from the service containers and forwarding operation data from the forwarding containers. These three types of data are aggregated and processed to obtain the target operation data. This data is then processed in two ways: one way is to report it to a visualization platform, clearly displaying various information within the target operation data to operations personnel, allowing them to understand the overall and local operation status of the cloud gateway; the other way is to perform fault detection based on preset alarm configuration information. If a fault is detected, corresponding alarm information is generated and sent to the alarm platform, which then notifies relevant management personnel to implement corrective measures. This approach improves the operational stability of the cloud gateway.
[0028] It should be noted that, Figure 1 The system scenario diagram shown is merely an example. The servers and scenarios described in this application embodiment are for the purpose of more clearly illustrating the technical solutions of this application embodiment and do not constitute a limitation on the technical solutions provided by this application embodiment. As those skilled in the art will know, with the evolution of systems and the emergence of new business scenarios, the technical solutions provided by this application embodiment are also applicable to similar technical problems. Detailed descriptions are provided below. It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of embodiments.
[0029] Please see Figure 2 , Figure 2 This is a flowchart illustrating the runtime resource management method provided in an embodiment of this application. The method specifically includes:
[0030] S1: Receives and responds to the first data reporting request sent by the business container through the resource management container, and obtains business operation data from the business container.
[0031] The runtime resource management method of this application is applied to a cloud gateway, which is a device used as a bridge between local and cloud services. Figure 3 As shown in this embodiment, the cloud gateway includes a service container, a forwarding container, and a resource management container. Each container is deployed independently, and the CPU usage of each container is allocated to avoid mutual interference. Each container, in addition to its own tasks, can also interact with other containers. The service container mainly includes a user management module and a first Redis database; the forwarding container mainly includes a driver management module and a second Redis database; and the resource management container mainly includes a data acquisition module, a data parsing and analysis module, and an alarm calculation module.
[0032] The business container is used to acquire, store, and provide business operation data to the resource management container. This business operation data refers to account-related and terminal-related data during the process of a terminal accessing a cloud server through a cloud gateway. Specifically, it may include basic terminal information, network traffic data generated by the terminal, access rate, account address pool allocation, session usage, flow table usage, etc. Anomalies in this data can affect the normal operation of the business. The business container acquires this business operation data through the user management module and stores it in the first Redis database. Then, the business container can send a first data reporting request to the resource management container, notifying it to collect business operation data. Upon receiving the first data reporting request, the resource management container responds and reads the business operation data from the first Redis database through its data acquisition module.
[0033] In this embodiment of the application, a first Redis database is used to store business operation data. Since the first Redis database uses an asynchronous Redis message caching mechanism when reporting business operation data, the processing pressure of related processing programs can be reduced.
[0034] S2: Receive and respond to the second data reporting request sent by the forwarding container through the resource management container, and obtain forwarding operation data from the forwarding container.
[0035] The forwarding container is used to acquire, store, and provide forwarding operation data to the resource management container. This forwarding operation data refers to driver and network interface card (NIC) data related to network forwarding during the process of a terminal accessing a cloud server through a cloud gateway. Specifically, it includes the NIC's operating status, the optical module's output power, and the network port's bandwidth. This data is crucial; if the NIC / optical module malfunctions, it will severely impact network forwarding and may even cause a network outage. The forwarding container acquires this forwarding operation data through the driver management module and stores it in a second Redis database. Then, the forwarding container can send a second data reporting request to the resource management container, notifying it to collect the forwarding operation data. Upon receiving the second data reporting request, the resource management container responds by retrieving the forwarding operation data from the second Redis database through its data acquisition module.
[0036] In this embodiment, a second Redis database is used to store the forwarding operation data. Since the second Redis database uses an asynchronous Redis message caching mechanism when reporting forwarding operation data, the processing pressure of related processing programs can be reduced.
[0037] S3: Collect server operation data through the resource management container, and summarize and process the business operation data, forwarding operation data and server operation data to obtain the target operation data.
[0038] The resource management container itself can also collect server operation data. Server operation data refers to the operational data of the cloud gateway server itself, specifically including CPU utilization, CPU temperature, memory usage, and disk usage. Abnormalities in this data can also cause the cloud gateway to malfunction. The data acquisition module in the resource management container collects server operation data, then aggregates the business operation data, forwarding operation data, and server operation data, and sends them to the data parsing and analysis module for parsing and processing to obtain the target operation data.
[0039] S4: Send the target running data to the visualization display platform through the resource management container, and perform fault detection on the target running data based on the preset alarm configuration information. When the detection result indicates that a fault exists, generate and send alarm information to the alarm platform.
[0040] After obtaining the target operational data, the data parsing and analysis module of the resource management container processes it in two ways. One way is to report it to the visualization platform, clearly displaying various information within the target operational data to operations and maintenance personnel, enabling them to understand the overall and local operational status of the cloud gateway. Simultaneously, the other way is to send it to the alarm calculation module. This module compares the data with imported preset alarm configuration information to calculate whether any conditions trigger alarm thresholds. If so, a fault is detected, and the alarm calculation module generates corresponding alarm information and sends it to the alarm platform. The alarm platform then notifies relevant management personnel to implement corrective measures. The alarm platform can be any platform with notification capabilities and permissions, such as SMS push platforms, voice call platforms, or email push platforms.
[0041] In one embodiment, S4 specifically includes: obtaining preset display configuration data of the visualization display platform through a resource management container; processing target running data according to the preset display configuration data through the resource management container; and sending the processed target running data to the visualization display platform.
[0042] The visualization platform can display target operational data in various formats such as text, tables, charts, and videos. Pre-defined display configuration data includes information such as the format of the operational data display, which specific operational data points are displayed, and how often new data is updated. The data parsing and analysis module of the resource management container first obtains the pre-defined display configuration data. After aggregating business operational data, forwarding operational data, and server operational data to obtain the target operational data, it processes the target operational data to match the requirements of the current visualization platform before sending the processed target operational data to the visualization platform. For example, if the visualization platform needs to display the temperature data of all CPUs and update it every 30 seconds, the data parsing and analysis module can extract this portion of operational data from the target operational data and automatically send it at a 30-second interval. As another example, if the visualization platform needs to display the network access rate of terminals accessing the network and needs to update it in real-time as a curve, the data parsing and analysis module can extract this portion of operational data from the target operational data and send it in real-time, allowing the visualization platform to plot and update access rate change curves based on this data.
[0043] In one embodiment, S4 specifically includes: determining preset alarm indicators and preset alarm templates based on preset alarm configuration information; filtering key operating data from target operating data based on preset alarm indicators; and performing fault detection on the key operating data based on the preset alarm templates.
[0044] The preset alarm configuration information can include preset alarm indicators and preset alarm templates. Preset alarm indicators are used to limit the various indicators that require alarms, such as CPU utilization, CPU temperature, network port throughput, and network access speed. The specific indicators included in the preset alarm indicators can be set as needed. Preset alarm templates are used to limit alarm conditions, alarm calculation methods, and alarm methods. For example, alarm conditions can be CPU utilization exceeding a certain preset percentage, or network access speed falling below a certain preset value. The alarm calculation method compares the specific value of the running data with the preset percentage or preset value to see if it exceeds or falls below. The alarm method is to send an alarm message with the content "xxx" to the SMS push platform. For target running data, firstly, key running data related to these indicators is filtered out based on the preset alarm indicators. Then, based on the preset alarm template, the key running data corresponding to each alarm indicator is calculated and detected. If the key running data of a certain indicator exceeds the alarm conditions in the preset alarm template, an alarm message is sent in the corresponding alarm method.
[0045] In one embodiment, the step of filtering key operational data from target operational data according to preset alarm indicators includes: determining a first server alarm indicator associated with a business container according to preset alarm indicators; obtaining first target server operational data of the first server alarm indicator from server operational data, and obtaining target business operational data associated with the first server alarm indicator from business operational data; obtaining first key operational data of the first server alarm indicator based on the first target server operational data and the target business operational data; and performing fault detection on the first key operational data based on preset alarm configuration information.
[0046] As mentioned in the above embodiments, server operation data includes the operational data of the cloud gateway server itself during operation, such as CPU utilization, CPU temperature, memory usage, and hard disk usage. Among these, indicators related to CPU usage, memory usage, and hard disk usage can all serve as server alarm indicators. The server operation data reflects the overall usage of the objects involved in these service area alarm indicators, such as overall CPU usage, overall memory usage, and overall hard disk usage. Simultaneously, some of these server alarm indicators may be primary server alarm indicators associated with business containers. For example, if a business container also has its own CPU, then the CPU usage indicators are associated with the business container, and these CPU usage indicators can serve as primary server alarm indicators. Therefore, the business operation data can be used to further reflect the current CPU usage of the business container.
[0047] Therefore, for the first server alarm metric, target server operation data related to CPU usage can be obtained from server operation data, and target business operation data related to CPU usage can be obtained from business operation data. Both are used together as the first key operation data for CPU-related metrics. Then, based on preset alarm configuration information, fault detection is performed. When a fault is detected in this metric, it can be quickly determined whether the fault originates from the business container. This method performs fault detection at both the overall server level and the individual business container level, thereby achieving fine-grained alarm control and providing convenience for operations and maintenance personnel to troubleshoot faults.
[0048] In one embodiment, the step of filtering key operational data from target operational data according to preset alarm indicators includes: determining a second server alarm indicator associated with a forwarding container according to preset alarm indicators; obtaining second target server operational data of the second server alarm indicator from server operational data, and obtaining target forwarding operational data associated with the second server alarm indicator from forwarding operational data; obtaining second key operational data of the second server alarm indicator based on the second target server operational data and the target forwarding operational data; and performing fault detection on the second key operational data based on preset alarm configuration information.
[0049] Similar to the principles in the above embodiments, the server alarm metrics also include some second server alarm metrics associated with the forwarding container. Therefore, the data associated with these second server alarm metrics in the forwarding operation data can also be used to further reflect the usage of related objects within the forwarding container. Thus, for the second server alarm metrics, the first target server operation data related to the second server alarm metrics can be obtained from the server operation data, and the target forwarding operation data related to the second server alarm metrics can be obtained from the forwarding operation data. Both are used together as the second key operation data for the second server alarm metrics, and fault detection is then performed based on preset alarm configuration information. When a fault is detected in this metric, it can be quickly determined whether the fault originates from the forwarding container. This method performs fault detection simultaneously at both the entire server level and the individual forwarding container level, thereby achieving refined alarm control and providing convenience for maintenance personnel to troubleshoot faults.
[0050] In one embodiment, S4 specifically includes: determining the alarm level and alarm method of various faults according to preset alarm configuration information; when the detection result indicates the existence of a target fault, determining the target alarm method of the target fault according to the target alarm level of the target fault; and sending alarm information to the alarm platform based on the target alarm method.
[0051] The preset alarm configuration information allows you to set the alarm level and alarm method for various faults. Faults that may occur during operation can be of various types. Some faults require immediate handling upon detection to avoid serious consequences. These faults require a higher alarm level and a faster alarm method, such as an alarm level of 1 with an alarm method of sending an alarm message to the voice call platform so that the platform can immediately notify relevant management personnel for handling. Some faults, if handled within a certain timeframe, will not have serious consequences. These faults can be set to a lower alarm level and a more conventional alarm method, such as an alarm level of 3 with an alarm method of sending an alarm message to an SMS push platform or email push platform so that relevant management personnel can handle the fault after checking their email or SMS inbox during their downtime. For other types of faults, appropriate alarm levels and alarm methods can be set according to the specific circumstances.
[0052] When a target fault is detected, the target alarm level is first determined according to the preset alarm configuration information, and the target alarm method under that level is determined. Finally, the subsequent alarm operation is carried out based on the target alarm method. This can notify the management personnel in a timely manner without affecting their daily work due to frequent alarms, so that the target fault can be handled in the most reasonable way.
[0053] As can be seen from the above embodiments, the runtime resource management method provided in this application, by deploying independent business containers, forwarding containers, and resource management containers on the cloud gateway, allows the resource management container to perform operation and maintenance on the cloud gateway without affecting its current operation. During maintenance, the resource management container can obtain business operation data and forwarding operation data from the business containers and forwarding containers, and can also collect server operation data itself. After summarizing and processing these operation data to obtain the target operation data, the target operation data can be reasonably combined and utilized. This data can be displayed on a visual interface, enabling relevant personnel to understand the operation status of various resources in a timely manner. At the same time, it can also detect whether the operation is abnormal based on these data, promptly detect faults and alarms, and take corresponding measures. All of the above factors together improve the operational stability of the cloud gateway.
[0054] Based on the methods described in the above embodiments, this embodiment will further describe the methods from the perspective of a cloud gateway, such as... Figure 3 As shown, the cloud gateway includes independently deployed service containers, forwarding containers, and resource management containers. The resource management container is used for:
[0055] Receive and respond to the first data reporting request sent by the service container, and obtain service operation data from the service container;
[0056] Receive and respond to the second data reporting request sent by the forwarding container, and obtain forwarding operation data from the forwarding container;
[0057] Collect server operation data, and summarize the service operation data, the forwarding operation data, and the server operation data to obtain target operation data;
[0058] The target running data is sent to the visualization display platform, and fault detection is performed on the target running data based on the preset alarm configuration information. When the detection result indicates that a fault exists, an alarm message is generated and sent to the alarm platform.
[0059] In one embodiment, the service container includes a user management module and a first Redis database. The user management module is used to: acquire service operation data and store the service operation data in the first Redis database. The forwarding container includes a driver management module and a second Redis database. The driver management module is used to: acquire forwarding operation data and store the forwarding operation data in the second Redis database.
[0060] In one embodiment, the resource management container is used to: obtain preset display configuration data of the visualization display platform; process target running data according to the preset display configuration data through the resource management container, and send the processed target running data to the visualization display platform.
[0061] In one embodiment, the resource management container is used to: determine preset alarm indicators and preset alarm templates based on preset alarm configuration information; filter key operating data from the target operating data based on the preset alarm indicators; and perform fault detection on the key operating data based on the preset alarm templates.
[0062] In one embodiment, the resource management container is used for:
[0063] Based on preset alarm indicators, determine the first server alarm indicator associated with the business container;
[0064] The first target server operation data of the first server alarm indicator is obtained from the server operation data, and the target business operation data associated with the first server alarm indicator is obtained from the business operation data.
[0065] Based on the first target server's operating data and the target business's operating data, the first key operating data of the first server's alarm indicators is obtained;
[0066] Fault detection is performed on the first critical operating data based on preset alarm configuration information.
[0067] In one embodiment, the resource management container is used for:
[0068] Based on the preset alarm indicators, determine the second server alarm indicator associated with the forwarding container;
[0069] The second target server operation data of the second server alarm indicator is obtained from the server operation data, and the target forwarding operation data associated with the second server alarm indicator is obtained from the forwarding operation data;
[0070] Based on the second target server's operating data and the target forwarding operating data, the second key operating data of the second server's alarm indicators is obtained;
[0071] Fault detection is performed on the second key operating data based on preset alarm configuration information.
[0072] Based on the preset alarm configuration information, determine the alarm level and alarm method for various faults;
[0073] In one embodiment, the resource management container is used for:
[0074] When the detection results indicate the presence of a target fault, the target alarm method of the target fault is determined according to the target alarm level of the target fault.
[0075] Alarm information is sent to the alarm platform based on the target alarm method.
[0076] Unlike existing technologies, the cloud gateway provided in this application deploys independent business containers, forwarding containers, and resource management containers. The resource management container can perform operation and maintenance of the cloud gateway without affecting its current operation. During maintenance, the resource management container can obtain business operation data and forwarding operation data from the business containers and forwarding containers, and can also collect server operation data itself. After aggregating and processing this operation data to obtain the target operation data, the target operation data can be reasonably combined and utilized. This data can be displayed in a visual interface, allowing relevant personnel to understand the operation status of various resources in a timely manner. At the same time, it can also detect whether there are any abnormalities in operation based on this data, promptly detect faults and alarms, and take corresponding measures. All of the above factors together improve the operational stability of the cloud gateway.
[0077] Accordingly, embodiments of this application also provide an electronic device, such as... Figure 4As shown, the electronic device may include a radio frequency (RF) circuit 101, a memory 102 including one or more computer-readable storage media, an input unit 103, a display unit 104, a sensor 105, an audio circuit 106, a WiFi module 107, a processor 108 including one or more processing cores, and a power supply 109, among other components. Those skilled in the art will understand that... Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0078] The radio frequency circuit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and hands it over to one or more processors 108 for processing; additionally, it transmits uplink data to the base station. The memory 102 can be used to store software programs and modules. The processor 108 executes various functional applications and manages runtime resources by running the software programs and modules stored in the memory 102. The input unit 103 can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to customer settings and function control.
[0079] Display unit 104 can be used to display information input by the customer or information provided to the customer, as well as various graphical client interfaces of the server. These graphical client interfaces can be composed of graphics, text, icons, videos, and any combination thereof.
[0080] The electronic device may also include at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Audio circuitry 106 includes a speaker that provides an audio interface between the client and the electronic device.
[0081] WiFi is a short-range wireless transmission technology. Electronic devices using the WiFi module 107 can help customers send and receive emails, browse web pages, and access streaming media, providing customers with wireless broadband internet access. Although Figure 4 WiFi module 107 is shown, but it is understood that it is not a necessary component of the electronic device and can be omitted as needed without changing the nature of the application.
[0082] The processor 108 is the control center of the electronic device. It connects various parts of the phone through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 102, and calling data stored in the memory 102, it performs various functions of the electronic device and processes data, thereby monitoring the phone as a whole.
[0083] The electronic device also includes a power supply 109 (such as a battery) that supplies power to the various components. Preferably, the power supply can be logically connected to the processor 108 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.
[0084] Although not shown, electronic devices may also include cameras, Bluetooth modules, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 108 in the server loads the executable files corresponding to the processes of one or more applications into the memory 102 according to the following instructions, and the processor 108 runs the applications stored in the memory 102 to achieve the following functions:
[0085] The resource management container receives and responds to the first data reporting request sent by the business container, and obtains business operation data from the business container.
[0086] The resource management container receives and responds to the second data reporting request sent by the forwarding container, and obtains forwarding operation data from the forwarding container.
[0087] The server operation data is collected through a resource management container, and the business operation data, the forwarding operation data and the server operation data are aggregated and processed to obtain the target operation data;
[0088] The target running data is sent to the visualization display platform through the resource management container, and the target running data is subjected to fault detection based on the preset alarm configuration information. When the detection result indicates that a fault exists, an alarm message is generated and sent to the alarm platform.
[0089] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed description above, which will not be repeated here.
[0090] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0091] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to perform the following functions:
[0092] The resource management container receives and responds to the first data reporting request sent by the business container, and obtains business operation data from the business container.
[0093] The resource management container receives and responds to the second data reporting request sent by the forwarding container, and obtains forwarding operation data from the forwarding container.
[0094] The server operation data is collected through a resource management container, and the business operation data, the forwarding operation data and the server operation data are aggregated and processed to obtain the target operation data;
[0095] The target running data is sent to the visualization display platform through the resource management container, and the target running data is subjected to fault detection based on the preset alarm configuration information. When the detection result indicates that a fault exists, an alarm message is generated and sent to the alarm platform.
[0096] The above provides a detailed description of a runtime resource management method, cloud gateway, electronic device, and computer-readable storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the technical solutions and core ideas of this application. Those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A method for managing runtime resources, characterized in that, Applied to a cloud gateway, wherein the cloud gateway includes independently deployed service containers, forwarding containers, and resource management containers, the method includes: The resource management container receives and responds to the first data reporting request sent by the business container, and obtains business operation data from the business container. The resource management container receives and responds to the second data reporting request sent by the forwarding container, and obtains forwarding operation data from the forwarding container. The server operation data is collected through a resource management container, and the business operation data, the forwarding operation data and the server operation data are aggregated and processed to obtain the target operation data; The target running data is sent to the visualization display platform through the resource management container, and the target running data is subjected to fault detection based on the preset alarm configuration information. When the detection result indicates that a fault exists, an alarm message is generated and sent to the alarm platform. The step of performing fault detection on the target operating data based on preset alarm configuration information includes: Based on the preset alarm configuration information, determine the preset alarm indicators and preset alarm templates; Based on the preset alarm indicators, key operational data are filtered from the target operational data to obtain key operational data; Fault detection is performed on the key operational data based on the preset alarm template; The step of filtering key operational data from the target operational data based on the preset alarm indicators includes: Based on the preset alarm indicators, determine the second server alarm indicator associated with the forwarding container; The second target server operation data of the second server alarm indicator is obtained from the server operation data, and the target forwarding operation data associated with the second server alarm indicator is obtained from the forwarding operation data; Based on the second target server's operating data and the target forwarding operating data, the second key operating data of the second server's alarm indicators is obtained; Fault detection is performed on the second key operating data based on preset alarm configuration information; The service operation data refers to account-related and terminal-related data related to the service content during the process of the terminal accessing the cloud server through the cloud gateway. The service operation data includes the terminal's basic information, traffic data generated when the terminal accesses the network, access rate, address pool allocation of the account, number of sessions used, and flow table usage rate. The forwarding operation data refers to driver and network card-related data related to network forwarding during the process of the terminal accessing the cloud server through the cloud gateway. The forwarding operation data includes the network card's operating status, the output power of the optical module, and the flow rate of the network port. The server operation data refers to the operation data of the cloud gateway server itself when it is working. The server operation data includes CPU usage, CPU temperature, memory usage, and hard disk usage.
2. The runtime resource management method according to claim 1, characterized in that, Before the step of receiving and responding to the first data reporting request sent by the service container through the resource management container, the method further includes: The user management module of the business container obtains business operation data and stores the business operation data in the first Redis database; The forwarding operation data is obtained through the driver management module of the forwarding container, and the forwarding operation data is stored in the second Redis database.
3. The runtime resource management method according to claim 1, characterized in that, The step of sending the target runtime data to the visualization platform through the resource management container includes: The preset display configuration data of the visualization display platform is obtained through the resource management container; The resource management container processes the target running data according to the preset display configuration data, and sends the processed target running data to the visualization display platform.
4. The runtime resource management method according to claim 1, characterized in that, The step of filtering key operational data from the target operational data based on the preset alarm indicators includes: Based on the preset alarm indicators, determine the second server alarm indicator associated with the forwarding container; The second target server operation data of the second server alarm indicator is obtained from the server operation data, and the target forwarding operation data associated with the second server alarm indicator is obtained from the forwarding operation data; Based on the second target server's operating data and the target forwarding operating data, the second key operating data of the second server's alarm indicators is obtained; Fault detection is performed on the second key operating data based on preset alarm configuration information.
5. The runtime resource management method according to claim 1, characterized in that, The steps for generating and sending alarm information to the alarm platform when the detection results indicate the presence of a fault include: Based on the preset alarm configuration information, determine the alarm level and alarm method for various faults; When the detection results indicate the presence of a target fault, the target alarm method of the target fault is determined according to the target alarm level of the target fault. Alarm information is sent to the alarm platform based on the target alarm method.
6. A cloud gateway, characterized in that, This includes independently deployed business containers, forwarding containers, and resource management containers, wherein the resource management container is used for: Receive and respond to the first data reporting request sent by the service container, and obtain service operation data from the service container; Receive and respond to the second data reporting request sent by the forwarding container, and obtain forwarding operation data from the forwarding container; Collect server operation data, and summarize the service operation data, the forwarding operation data, and the server operation data to obtain target operation data; The target running data is sent to the visualization display platform, and the target running data is subjected to fault detection based on the preset alarm configuration information. When the detection result indicates that there is a fault, an alarm message is generated and sent to the alarm platform. The resource management container is further configured to: determine preset alarm indicators and preset alarm templates based on preset alarm configuration information; filter key operating data from the target operating data based on the preset alarm indicators; and perform fault detection on the key operating data based on the preset alarm templates. The resource management container is further configured to: determine a second server alarm indicator associated with the forwarding container based on the preset alarm indicator; obtain second target server operating data of the second server alarm indicator from the server operating data, and obtain target forwarding operating data associated with the second server alarm indicator from the forwarding operating data; obtain second key operating data of the second server alarm indicator based on the second target server operating data and the target forwarding operating data; and perform fault detection on the second key operating data based on preset alarm configuration information. The service operation data refers to account-related and terminal-related data related to the service content during the process of the terminal accessing the cloud server through the cloud gateway. The service operation data includes the terminal's basic information, traffic data generated when the terminal accesses the network, access rate, address pool allocation of the account, number of sessions used, and flow table usage rate. The forwarding operation data refers to driver and network card-related data related to network forwarding during the process of the terminal accessing the cloud server through the cloud gateway. The forwarding operation data includes the network card's operating status, the output power of the optical module, and the flow rate of the network port. The server operation data refers to the operation data of the cloud gateway server itself when it is working. The server operation data includes CPU usage, CPU temperature, memory usage, and hard disk usage.
7. An electronic device, characterized in that, It includes a memory and a processor; the memory stores an application program, and the processor is used to run the application program within the memory to perform the steps of the runtime resource management method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the steps of the runtime resource management method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Edge computing gateway management system and method based on LXC container technology
CN111061491A
Intelligent IT integrated gateway system
CN114244676A