An application container resource monitoring platform

By designing and applying a container resource monitoring platform, simultaneous monitoring and resource scheduling of multiple containers is solved, and the problem that traditional monitoring methods cannot meet the needs of multiple nodes is improved, the timeliness and processing efficiency of container resource monitoring is improved, and the container operation is ensured.

CN114138596BActive Publication Date: 2025-01-14ZHEJIANG YINDUNYUN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111335931.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-12
Publication Date
2025-01-14
Estimated Expiration
2041-11-12

AI Technical Summary

Technical Problem

Traditional monitoring methods cannot monitor multiple container nodes at the same time, resulting in the inability to schedule or process resources in the container in time when the service crashes, and cannot meet the monitoring needs of multiple nodes, affecting the normal operation of the container.

Method used

A application container resource monitoring platform is designed. By determining the number of containers, formulating monitoring plans, monitoring resource conditions, and adjusting resources based on monitoring results, simultaneous monitoring of multiple containers is achieved, and monitoring timeliness and processing efficiency is improved.

Benefits of technology

It improves the timeliness and processing efficiency of container resource monitoring, provides reliable guarantees to ensure the normal operation of the container, can timely dispatch resources, and prevent insufficient resources and other abnormal situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114138596B_ABST
    Figure CN114138596B_ABST
Patent Text Reader

Abstract

The present invention provides an application container resource monitoring platform, which includes: a container quantity determination module, which is used to determine the number of application containers in a server, and number different application containers based on the number of application containers; a monitoring plan formulation module, which is used to obtain the configuration information of each application container based on the numbering result, and formulate a target resource monitoring plan based on the configuration information; a resource monitoring module, which is used to monitor the resource situation in each application container based on the target resource monitoring plan, and adjust the resources in each application container accordingly according to the monitoring result, so as to complete the monitoring of application container resources. By simultaneously monitoring multiple application containers in a server, the timeliness of monitoring container resources is improved, thereby improving the processing efficiency of resources in the container, and providing a reliable guarantee for ensuring the normal operation of the container.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of resource monitoring, and in particular to an application container resource monitoring platform. Background Art

[0002] Currently, the use of container cloud platforms requires the allocation and management of resources for various services and applications running on the platform through the container orchestration framework, and these orchestration tools are used to reasonably allocate resources for various services and applications.

[0003] However, as the business continues to develop, the system resources occupied by existing applications often become tight, causing the applications to run slowly or even crash. This requires real-time monitoring of container resources, but traditional monitoring methods can only monitor one application container at a time, which is equivalent to single-node monitoring and cannot meet the needs of multi-node monitoring. As a result, when the service crashes, the resources in the container cannot be scheduled or processed in time;

[0004] Therefore, the present invention provides an application container resource monitoring platform, which improves the timeliness of container resource monitoring by simultaneously monitoring multiple application containers in a server, thereby improving the processing efficiency of resources in the container and providing reliable protection for ensuring the normal operation of the container. Summary of the invention

[0005] The present invention provides an application container resource monitoring platform, which is used to simultaneously monitor multiple application containers in a server, thereby improving the timeliness of container resource monitoring, thereby improving the processing efficiency of resources in the container, and providing a reliable guarantee for ensuring the normal operation of the container.

[0006] Preferably, an application container resource monitoring platform includes:

[0007] A container quantity determination module, used to determine the number of application containers in the server, and number and mark different application containers based on the number of application containers;

[0008] A monitoring plan formulation module, used to obtain configuration information of each application container based on the numbering result, and formulate a target resource monitoring plan based on the configuration information;

[0009] The resource monitoring module is used to monitor the resource status in each application container based on the target resource monitoring solution, and adjust the resources in each application container accordingly according to the monitoring results to complete the monitoring of the application container resources.

[0010] Preferably, an application container resource monitoring platform, a container quantity determination module, comprises:

[0011] An address determination unit, configured to obtain an application environment and an application area of ​​the application container, and determine identification information of each application container based on the application environment and the application area;

[0012] The address unit is used to determine the IP address information of each application container based on the identification information, wherein one IP address information corresponds to one application container;

[0013] A quantity determining unit is used to determine the quantity of application containers in the server based on the IP address information.

[0014] Preferably, an application container resource monitoring platform, a container quantity determination module, further includes:

[0015] An instruction receiving unit, configured to receive a numbering instruction sent by a management terminal, and generate M numbering data with different contents based on the numbering instruction, wherein M is consistent with the number of application containers;

[0016] A numbered data sending unit, configured to send the M numbered data with different contents to different application containers respectively based on a preset data transmission rule;

[0017] The numbering unit is used to write the M numbering data with different contents into the own data queue in the corresponding application container respectively, so as to complete the numbering of different application containers.

[0018] Preferably, an application container resource monitoring platform, numbering unit, includes:

[0019] An identification determination unit, used to obtain a preset identification and numbering data, and to establish a correspondence between the preset identification and the numbering data, wherein one numbering data corresponds to one preset identification;

[0020] The marking unit is used to determine the corresponding target preset identifier based on the target number data in the data queue of each application container itself, and mark the current application container based on the target preset identifier.

[0021] Preferably, an application container resource monitoring platform, numbering unit, further includes:

[0022] A numbering result obtaining unit, used for obtaining the own data queues of all application containers in the server, and verifying the numbering results in the own data queues of the application containers based on a preset verification method to determine whether there is a numbering error in the application containers;

[0023] a numbering error information determining unit, configured to determine basic information of the current application container and an error type of the numbering error of the current application container when it is determined that there is a numbering error in the application container, wherein the error type includes duplicate numbering and missing numbering;

[0024] A number adjustment unit, configured to adjust the number of the current application container based on the basic information of the current application container and an error type of the current application container number error;

[0025] The numbering adjustment unit is further configured to determine that numbering processing of the application container is completed when it is determined that there is no numbering error in the application container.

[0026] Preferably, an application container resource monitoring platform and a monitoring plan formulation module include:

[0027] A historical data acquisition unit, configured to acquire basic configuration information of a preset standard application container, wherein the basic configuration information includes attribute information, function information, and loading information, and determine basic configuration parameters based on the basic configuration information, and divide the basic parameters into a training set and a test set;

[0028] A model building unit, used to build a container configuration parameter analysis model, and train the container configuration parameter analysis model based on the training set;

[0029] The model building unit is further used to test the trained container configuration parameter analysis model based on the test set until it is determined that the analysis accuracy of the container configuration parameter analysis model meets the expected requirements;

[0030] A configuration information analysis unit, configured to collect application running data in each application container according to the number marking result based on the information collection instruction, and input the running data into the container configuration parameter analysis model for analysis and processing to obtain configuration information corresponding to each application container;

[0031] An information screening unit, configured to perform structured processing on the configuration information to obtain structured target configuration information, perform inspection on the target configuration information based on a preset data inspection method, and determine a data field to be cleaned in the target configuration information;

[0032] The information screening unit is further used to determine the attributes of the data field to be cleaned, determine the target cleaning rule from the preset data cleaning rule library according to the attribute, and clean the data field to be cleaned in the target configuration information based on the target cleaning rule to obtain the standard configuration information corresponding to each application container;

[0033] A monitoring scheme determination unit, used to determine weight values ​​of attribute information, function information and loading information in the standard configuration information, and determine the emphasis ratio of monitoring application container resources based on the weight values;

[0034] The monitoring scheme determination unit is further used to determine the distribution of resources in the application container, and determine a target monitoring point for monitoring the resources in the application container based on the distribution, wherein the target monitoring point can monitor resources in all ranges in the application container;

[0035] The monitoring scheme determining unit is further used to complete the formulation of the target resource monitoring scheme based on the emphasis ratio of the application container resource monitoring and the target monitoring point.

[0036] Preferably, an application container resource monitoring platform, a resource monitoring module, includes:

[0037] An instruction acquisition unit, used to acquire a monitoring instruction sent by the management terminal, and determine the current running state of each application container based on the monitoring instruction;

[0038] A monitoring unit, configured to set a monitoring node inside each application container based on the current running state of each application container and a corresponding target resource monitoring scheme;

[0039] The monitoring unit is used to monitor the resource usage data inside each application container based on the monitoring node, and transmit the obtained monitoring data to the data analysis unit;

[0040] A data analysis unit is used to analyze and process the obtained monitoring data to obtain the resource consumption and remaining resources of each application container in the current running state, and compare the resource consumption and remaining resources of each application container in the current running state with the standard resource usage corresponding to the preset running state of each application container to determine whether there is a shortage of resources in the application container;

[0041] A judgment unit, configured to send a no-abnormality notification to the management terminal when it is determined that there is no shortage of resources in the application container, otherwise, trigger a resource abnormality resolution unit;

[0042] A resource anomaly resolution unit, configured to determine a target application container that has insufficient resources, and determine the number of user service requests accepted by the target application container at the current moment;

[0043] A resource anomaly resolution unit, configured to determine a target resource amount required for a current user service request based on the number of user service requests, and perform a subtraction operation between the target resource amount and the current resource amount in the target application container to obtain a target scheduling resource amount;

[0044] A resource scheduling unit, used to search for idle application containers based on a preset resource scheduling strategy, and determine the maximum scheduling amount supported by each idle application container;

[0045] If the maximum scheduling amount supported by each idle application container is greater than or equal to the target scheduling resource amount, scheduling the resources in the idle application container to the target application container based on the target scheduling resource amount;

[0046] Otherwise, the maximum scheduling amounts in the multiple idle application containers are merged until they are greater than or equal to the target scheduling resource amount, thereby completing the corresponding adjustment of the resources in the application container.

[0047] Preferably, an application container resource monitoring platform, a judgment unit, includes:

[0048] A resource threshold value determination unit, used to obtain the resource consumption of each application container within a preset time period, and sum and average the resource consumption of each application container within the preset time period to determine the average consumption value of the resources in the application container within the preset time period;

[0049] A resource threshold value setting unit, used to set the consumption average value as the application container resource alarm threshold value, and compare the resource consumption of each application container in the current running state obtained in real time with the average value;

[0050] If the resource consumption is greater than the average value, it is determined that the access to the resource is abnormal, and an alarm signal is triggered, and the alarm signal is transmitted to the management terminal at the same time;

[0051] Otherwise, it is determined that there is no abnormality in accessing the resource.

[0052] Preferably, an application container resource monitoring platform, a resource scheduling unit, comprises:

[0053] A resource scheduling amount verification unit, used to obtain configuration information of a target application container when there is no idle application container, and determine an expansion method for the target application container based on the configuration information;

[0054] A container extension unit, configured to extend the target application container based on the extension mode to obtain a target extended application container, and determine an application instance in the target application container;

[0055] The container extension unit is used to determine the application environment of the target extended application container, and perform environment configuration on the application instance in the target application container based on the application environment, and deploy the configured application instance in the target extended application container to complete the extension of the target application container.

[0056] Preferably, an application container resource monitoring platform, a resource monitoring module, further includes:

[0057] A monitoring data acquisition unit, used to acquire a monitoring result of monitoring the resource status in each application container based on the target resource monitoring solution, and determine a corresponding relationship between the monitoring result and the monitoring time;

[0058] A report generating unit, configured to match a target report template from a preset report template library based on the corresponding relationship between the monitoring result and the monitoring time, and fill the monitoring result and the monitoring time into a target area in the target report template to obtain a monitoring result report;

[0059] The report storage unit is used to store the monitoring result report in a preset storage area to complete the recording of the monitoring result.

[0060] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.

[0061] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0063] Figure 1 This is a structural diagram of an application container resource monitoring platform in an embodiment of the present invention;

[0064] Figure 2 This is a structural diagram of a container quantity determination module in an application container resource monitoring platform in an embodiment of the present invention;

[0065] Figure 3 The present invention is a structural diagram of a monitoring solution formulation module in an application container resource monitoring platform according to an embodiment of the present invention. DETAILED DESCRIPTION

[0066] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0067] Embodiment 1:

[0068] This embodiment provides an application container resource monitoring platform, such as Figure 1 As shown, including:

[0069] A container quantity determination module, used to determine the number of application containers in the server, and number and mark different application containers based on the number of application containers;

[0070] A monitoring plan formulation module, used to obtain configuration information of each application container based on the numbering result, and formulate a target resource monitoring plan based on the configuration information;

[0071] The resource monitoring module is used to monitor the resource status in each application container based on the target resource monitoring solution, and to adjust the resources in each application container accordingly based on the monitoring results, so as to complete the monitoring of the application container resources.

[0072] In this embodiment, the configuration information of the application container refers to the type of the application container, the number of resources contained therein, and the like.

[0073] In this embodiment, the target resource monitoring scheme refers to a monitoring method or a monitoring mode formulated according to the configuration information of the container for monitoring changes in resources inside the container.

[0074] In this embodiment, a target resource monitoring solution can be used to monitor resource changes in one or more application containers.

[0075] In this embodiment, adjusting the resources in each application container accordingly based on the monitoring result means that when the resources in the application container are scarce, the resources in other application containers are scheduled or the resources are reallocated to the current application container.

[0076] The beneficial effect of the above technical solution is: by simultaneously monitoring multiple application containers in the server, the timeliness of container resource monitoring is improved, thereby improving the processing efficiency of resources in the container, providing a reliable guarantee for ensuring the normal operation of the container.

[0077] Embodiment 2:

[0078] Based on the above embodiment 1, this embodiment provides an application container resource monitoring platform, a container quantity determination module, including:

[0079] An address determination unit, configured to obtain an application environment and an application area of ​​the application container, and determine identification information of each application container based on the application environment and the application area;

[0080] The address unit is used to determine the IP address information of each application container based on the identification information, wherein one IP address information corresponds to one application container;

[0081] A quantity determining unit is used to determine the quantity of application containers in the server based on the IP address information.

[0082] In this embodiment, the application environment refers to the compatibility or collaboration relationship between the application container and other containers in the server when the application container is working.

[0083] In this embodiment, the application area refers to the working range corresponding to the application container when executing the corresponding operation.

[0084] In this embodiment, the identification information is a label used to mark different application containers and has an identifiable function.

[0085] The beneficial effect of the above technical solution is: by determining the IP address information of each application container, accurate statistics on the number of application containers are ensured, which facilitates the simultaneous monitoring of all application containers and ensures effective monitoring of resources in all application containers.

[0086] Embodiment 3:

[0087] Based on the above embodiment 1, this embodiment provides an application container resource monitoring platform, such as Figure 2 As shown, the container quantity determination module also includes:

[0088] An instruction receiving unit, configured to receive a numbering instruction sent by a management terminal, and generate M numbering data with different contents based on the numbering instruction, wherein M is consistent with the number of application containers;

[0089] A numbered data sending unit, configured to send the M numbered data with different contents to different application containers respectively based on a preset data transmission rule;

[0090] The numbering unit is used to write the M numbering data with different contents into the own data queue in the corresponding application container respectively, so as to complete the numbering of different application containers.

[0091] In this embodiment, the numbering instruction is used to control the corresponding numbering component to perform corresponding numbering processing according to the number of application containers.

[0092] In this embodiment, the M numbering data with different contents may be, for example, Arabic numerals 1, 2, 3, etc.

[0093] In this embodiment, the preset data transmission rule is set in advance and is used to transmit the numbering data to the data queue inside the application container to implement numbering of the application container.

[0094] In this embodiment, the own data queue refers to the attribute data of the application container itself. By writing the numbering data into the container's own data queue, it is convenient to ensure that the container is effectively numbered.

[0095] The beneficial effect of the above technical solution is that by numbering different application containers, it is convenient to accurately determine the correspondence between resources and containers when monitoring resources in different application containers, thereby improving the orderliness and accuracy of monitoring resources inside the container.

[0096] Embodiment 4:

[0097] Based on the above embodiment 3, this embodiment provides an application container resource monitoring platform, the numbering unit includes:

[0098] An identification determination unit, used to obtain a preset identification and numbering data, and to establish a correspondence between the preset identification and the numbering data, wherein one numbering data corresponds to one preset identification;

[0099] The marking unit is used to determine the corresponding target preset identifier based on the target number data in the data queue of each application container itself, and mark the current application container based on the target preset identifier.

[0100] In this embodiment, the preset identifier is set in advance and is used to mark the application container. Different application containers can be distinguished quickly and accurately through the identifier.

[0101] In this embodiment, the target number data refers to the number data corresponding to a specific application container.

[0102] In this embodiment, the target preset identifier refers to a preset identifier used to mark a specific application container.

[0103] The beneficial effect of the above technical solution is: by determining the correspondence between the preset identifier and the numbering data, accurate marking of the application container is achieved. Through this marking, it is convenient to perform different resource monitoring on different application containers according to the marking, thereby improving the timeliness of the monitoring, and also facilitating the subsequent corresponding resource adjustment according to the marking results.

[0104] Embodiment 5:

[0105] Based on the above embodiment 3, this embodiment provides an application container resource monitoring platform, the numbering unit also includes:

[0106] A numbering result obtaining unit, used for obtaining the own data queues of all application containers in the server, and verifying the numbering results in the own data queues of the application containers based on a preset verification method to determine whether there is a numbering error in the application containers;

[0107] a numbering error information determining unit, configured to determine basic information of the current application container and an error type of the numbering error of the current application container when it is determined that there is a numbering error in the application container, wherein the error type includes duplicate numbering and missing numbering;

[0108] A number adjustment unit, configured to adjust the number of the current application container based on the basic information of the current application container and an error type of the current application container number error;

[0109] The numbering adjustment unit is further configured to determine that numbering processing of the application container is completed when it is determined that there is no numbering error in the application container.

[0110] In this embodiment, the preset verification method is set in advance and is used to verify the numbered data in the own data queue of the application container to check whether there is erroneous data in the numbered data in the own data queue of the application container.

[0111] In this embodiment, the basic information of the application container refers to the type of the application container and identification information of the application container.

[0112] The beneficial effect of the above technical solution is: by verifying the numbering data in the application container's own data queue, it is helpful to ensure accurate numbering processing of each application container, improve the corresponding monitoring of each application container according to the numbering result, and improve the accuracy and orderliness of resource monitoring in the application container.

[0113] Embodiment 6:

[0114] Based on the above embodiment 1, this embodiment provides an application container resource monitoring platform, such as Figure 3 As shown, the monitoring plan formulation module includes:

[0115] A historical data acquisition unit, configured to acquire basic configuration information of a preset standard application container, wherein the basic configuration information includes attribute information, function information, and loading information, and determine basic configuration parameters based on the basic configuration information, and divide the basic parameters into a training set and a test set;

[0116] A model building unit, used to build a container configuration parameter analysis model, and train the container configuration parameter analysis model based on the training set;

[0117] The model building unit is further used to test the trained container configuration parameter analysis model based on the test set until it is determined that the analysis accuracy of the container configuration parameter analysis model meets the expected requirements;

[0118] A configuration information analysis unit, configured to collect application running data in each application container according to the number marking result based on the information collection instruction, and input the running data into the container configuration parameter analysis model for analysis and processing to obtain configuration information corresponding to each application container;

[0119] An information screening unit, configured to perform structured processing on the configuration information to obtain structured target configuration information, perform inspection on the target configuration information based on a preset data inspection method, and determine a data field to be cleaned in the target configuration information;

[0120] The information screening unit is further used to determine the attributes of the data field to be cleaned, determine the target cleaning rule from the preset data cleaning rule library according to the attribute, and clean the data field to be cleaned in the target configuration information based on the target cleaning rule to obtain the standard configuration information corresponding to each application container;

[0121] A monitoring scheme determination unit, used to determine weight values ​​of attribute information, function information and loading information in the standard configuration information, and determine the emphasis ratio of monitoring application container resources based on the weight values;

[0122] The monitoring scheme determination unit is further used to determine the distribution of resources in the application container, and determine a target monitoring point for monitoring the resources in the application container based on the distribution, wherein the target monitoring point can monitor resources in all ranges in the application container;

[0123] The monitoring scheme determining unit is further used to complete the formulation of the target resource monitoring scheme based on the emphasis ratio of the application container resource monitoring and the target monitoring point.

[0124] In this embodiment, the preset standard application container refers to an application container whose function information, attribute information, and loading information are known in advance.

[0125] In this embodiment, the basic configuration information is used to describe the configuration of the application container, such as the functions to be implemented by the application container, the types of resources stored internally, and the number of resources.

[0126] In this embodiment, the basic configuration parameters are specific values ​​used to describe basic configuration information.

[0127] In this embodiment, the expected requirements are set in advance, for example, the test accuracy of the configuration parameter analysis model needs to reach more than 90%.

[0128] In this embodiment, the running data refers to the load parameters of the application container when accepting user access.

[0129] In this embodiment, the structured processing refers to categorizing and organizing the configuration information to facilitate intuitive viewing of the types and attributes of the data.

[0130] In this embodiment, the preset data verification method is set in advance and is used to verify whether there is erroneous data in the configuration information. For example, the configuration information of the current application container may be compared with the standard configuration information.

[0131] In this embodiment, the data field to be cleaned refers to erroneous data or invalid data in the configuration information.

[0132] In this embodiment, the target cleaning rule refers to a rule selected from a preset data cleaning rule library and applicable to cleaning the data to be cleaned, and can be one or more combinations.

[0133] In this embodiment, the quasi-configuration information refers to configuration information without error data obtained by cleaning the error data in the configuration information.

[0134] In this embodiment, the emphasis ratio refers to the importance of monitoring when monitoring application container resources.

[0135] In this embodiment, the target monitoring point refers to a data point used to monitor resource changes inside the application container. The resource changes inside the application container can be accurately monitored through this point, for example, it can be an access interface.

[0136] The beneficial effects of the above technical solution are: by constructing a configuration parameter analysis model, accurate analysis of the configuration parameters of each application container can be achieved, and the obtained configuration information is cleaned to ensure that the obtained configuration information is accurate enough. Secondly, by determining the weight values ​​of different modules in the configuration information, the focus ratio of the monitoring plan can be set. Finally, by determining the target monitoring points, the target resource monitoring plan can be accurately and effectively formulated. By formulating the target resource monitoring plan, it is convenient to carry out targeted monitoring of each application container and accurately monitor the changes in the resources of each application container, thereby improving the processing efficiency of the resources in the container and providing reliable guarantee for ensuring the normal operation of the container.

[0137] Embodiment 7:

[0138] Based on the above embodiment 1, this embodiment provides an application container resource monitoring platform, a resource monitoring module, including:

[0139] An instruction acquisition unit, used to acquire a monitoring instruction sent by the management terminal, and determine the current running state of each application container based on the monitoring instruction;

[0140] A monitoring unit, configured to set a monitoring node inside each application container based on the current running state of each application container and a corresponding target resource monitoring scheme;

[0141] The monitoring unit is used to monitor the resource usage data inside each application container based on the monitoring node, and transmit the obtained monitoring data to the data analysis unit;

[0142] A data analysis unit is used to analyze and process the obtained monitoring data to obtain the resource consumption and remaining resources of each application container in the current running state, and compare the resource consumption and remaining resources of each application container in the current running state with the standard resource usage corresponding to the preset running state of each application container to determine whether there is a shortage of resources in the application container;

[0143] A judgment unit, configured to send a no-abnormality notification to the management terminal when it is determined that there is no shortage of resources in the application container, otherwise, trigger a resource abnormality resolution unit;

[0144] A resource anomaly resolution unit, configured to determine a target application container that has insufficient resources, and determine the number of user service requests accepted by the target application container at the current moment;

[0145] A resource anomaly resolution unit, configured to determine a target resource amount required for a current user service request based on the number of user service requests, and perform a subtraction operation between the target resource amount and the current resource amount in the target application container to obtain a target scheduling resource amount;

[0146] A resource scheduling unit, used to search for idle application containers based on a preset resource scheduling strategy, and determine the maximum scheduling amount supported by each idle application container;

[0147] If the maximum scheduling amount supported by each idle application container is greater than or equal to the target scheduling resource amount, scheduling the resources in the idle application container to the target application container based on the target scheduling resource amount;

[0148] Otherwise, the maximum scheduling amounts in the multiple idle application containers are merged until they are greater than or equal to the target scheduling resource amount, thereby completing the corresponding adjustment of the resources in the application container.

[0149] In this embodiment, the current running state of the application container refers to whether the application container currently accepts the user's access request.

[0150] In this embodiment, the monitoring node refers to a data node used to monitor changes in resources inside the application container, for example, it may be a data node in a data interface.

[0151] In this embodiment, the corresponding standard resource usage in the preset running state is set in advance, for example, when accepting an access request, the resource usage is 100.

[0152] In this embodiment, the target application container refers to an application container with insufficient resources among the application containers, and there is at least one target application container.

[0153] In this embodiment, the target resource amount refers to the amount of resources that the target application container can use to satisfy the current service request.

[0154] In this embodiment, the target scheduling resource amount refers to the amount of resources that the target application container needs to supplement.

[0155] In this embodiment, the preset resource scheduling strategy is set in advance and is used to search for idle application containers in the application containers.

[0156] In this embodiment, the target resource amount required for the current user service request is determined based on the number of user service requests, and the target resource amount is subtracted from the current resource amount in the target application container to obtain the target scheduling resource amount, including:

[0157] Determine the number of user service requests accepted by the application container based on a preset user access interface, and determine the amount of resources required for each user service request;

[0158] Calculating a target scheduling resource amount of a target application container based on the number of user service requests and the amount of resources required by each user service request, and calculating an actual scheduling rate based on the target scheduling resource amount, the specific steps include:

[0159] The target scheduling resource amount of the target application container is calculated according to the following formula:

[0160]

[0161] Wherein, α represents the target scheduling resource amount of the target application container; μ represents the error coefficient, and its value range is (0.05, 0.15); i represents the current number of user service requests accepted by the target application container, and its value range is [1, n]; n represents the maximum number of user service requests accepted by the target application container; s i represents the amount of resources required for the i-th service request; Q represents the amount of resources available in the target application container;

[0162] When the target scheduling resource amount is not zero, the actual scheduling rate is calculated according to the following formula:

[0163]

[0164] Wherein, V represents the actual scheduling rate when the target scheduling resource amount is scheduled; α represents the target scheduling resource amount of the target application container; γ represents the target scheduling resource loss rate value when the target scheduling resource amount is scheduled; t represents the time length used to complete the scheduling of the target scheduling resource amount; L represents the actual available bandwidth value of the data transmission link when the target scheduling resource amount is scheduled, and L is less than G; G represents the theoretical available bandwidth value of the data transmission link when the target scheduling resource amount is scheduled; f2 represents the frequency of the target application container scheduling the target scheduling resource amount; f1 represents the cutoff frequency of the data transmission link when the target scheduling resource amount is scheduled;

[0165] Compare the calculated actual dispatch rate with the preset dispatch rate;

[0166] If the actual scheduling rate is greater than or equal to the preset scheduling rate, it is determined that the resource scheduling required by the target application container is qualified;

[0167] Otherwise, it is determined that the target scheduling resource amount for the target application container is unqualified, and the current actual scheduling rate is adjusted until the calculated actual scheduling rate is greater than or equal to the preset scheduling rate.

[0168] The above preset scheduling rate is set in advance and is used to measure whether the scheduling rate used to complete the scheduling of target application container resources meets the expected requirements, and the preset scheduling rate can be adjusted manually.

[0169] The current amount of resources in the above application container and the amount of resources corresponding to the user service request are obtained through statistics specifically collected by the background application.

[0170] The actual scheduling rate refers to the scheduling rate after the theoretical scheduling rate is affected by external factors, causing the theoretical scheduling rate to become lower.

[0171] The above γ*t is much smaller than α.

[0172] The above formula In the equation, if μ is 0.1, n is 3, s1 is 100, s2 is 200, s3 is 300, and Q is 400, the calculated α is 180.

[0173] The above formula In the example, if α is 180, γ is 0.2, t is 60, L is 5, G is 6, f1 is 100, and f2 is 5, the calculated V is 46.7 bit / s.

[0174] The beneficial effect of the above technical solution is: by monitoring the resource usage in each application container according to the target resource monitoring solution, it is convenient to timely discover whether resource shortage occurs in the application container, thereby improving the timeliness of application container resource monitoring. At the same time, when it is found that the application container is short of resources, the idle resources in the idle application container are promptly dispatched to the application container with resource shortage, thereby improving the processing efficiency of the resources inside the application container and providing reliable guarantee for the normal operation of the application container.

[0175] Embodiment 8:

[0176] Based on the above-mentioned embodiment 7, this embodiment provides an application container resource monitoring platform, wherein the judgment unit includes:

[0177] A resource threshold value determination unit, used to obtain the resource consumption of each application container within a preset time period, and sum and average the resource consumption of each application container within the preset time period to determine the average consumption value of the resources in the application container within the preset time period;

[0178] A resource threshold value setting unit, used to set the consumption average value as the application container resource alarm threshold value, and compare the resource consumption of each application container in the current running state obtained in real time with the average value;

[0179] If the resource consumption is greater than the average value, it is determined that the access to the resource is abnormal, and an alarm signal is triggered, and the alarm signal is transmitted to the management terminal at the same time;

[0180] Otherwise, it is determined that there is no abnormality in accessing the resource.

[0181] In this embodiment, the preset time period is set in advance and is used to monitor resource changes within the application container within the set time period, for example, it may be one hour, two hours, etc.

[0182] In this embodiment, the application container resource alarm threshold refers to the maximum resource consumption allowed inside the application container. When the resource consumption inside the container is greater than the threshold, an alarm operation is performed.

[0183] The beneficial effect of the above technical solution is: by setting a threshold value for the resource consumption in the application container, it is convenient to perform an alarm operation in a timely manner when the resource consumption inside the application container exceeds the standard, so that the management terminal can take corresponding measures in time according to the current situation, thereby improving the timeliness of resource monitoring and ensuring the normal operation of the application container.

[0184] Embodiment 9:

[0185] Based on the above-mentioned embodiment 7, this embodiment provides an application container resource monitoring platform, a resource scheduling unit, including:

[0186] A resource scheduling amount verification unit, used to obtain configuration information of a target application container when there is no idle application container, and determine an expansion method for the target application container based on the configuration information;

[0187] A container extension unit, configured to extend the target application container based on the extension mode to obtain a target extended application container, and determine an application instance in the target application container;

[0188] The container extension unit is used to determine the application environment of the target extended application container, and perform environment configuration on the application instance in the target application container based on the application environment, and deploy the configured application instance in the target extended application container to complete the extension of the target application container.

[0189] In this embodiment, the expansion method refers to a method for expanding the target application container, for example, the expansion quantity may be determined first, and then the expansion is performed by copying.

[0190] In this embodiment, the target extended application container refers to an application container obtained by extending the target application container.

[0191] In this embodiment, the application instance refers to a specific application inside the application container. For example, a mobile phone is an application container, and the APP installed in the mobile phone is an application instance.

[0192] The beneficial effect of the above technical solution is: by expanding the target application container according to the monitoring results when there are no idle application containers, the timeliness of application container resource processing is improved, which provides a reliable guarantee for ensuring the normal operation of the application container and also improves the effectiveness of application container resource monitoring.

[0193] Embodiment 10:

[0194] Based on the above embodiment 1, this embodiment provides an application container resource monitoring platform, a resource monitoring module, and further includes:

[0195] A monitoring data acquisition unit, used to acquire a monitoring result of monitoring the resource status in each application container based on the target resource monitoring solution, and determine a corresponding relationship between the monitoring result and the monitoring time;

[0196] A report generating unit, configured to match a target report template from a preset report template library based on the corresponding relationship between the monitoring result and the monitoring time, and fill the monitoring result and the monitoring time into a target area in the target report template to obtain a monitoring result report;

[0197] The report storage unit is used to store the monitoring result report in a preset storage area to complete the recording of the monitoring result.

[0198] In this embodiment, the preset report template library is pre-set and stores a variety of report templates for generating monitoring reports.

[0199] In this embodiment, the target report template refers to a report template selected from a preset report template library and suitable for generating a current monitoring report.

[0200] In this embodiment, the target area refers to the blank area in the target report template corresponding to the monitoring results and monitoring time.

[0201] In this embodiment, the preset storage area is set in advance and is used to store the generated monitoring report, for example, it may be a hard disk.

[0202] The beneficial effect of the above technical solution is: by generating corresponding monitoring reports from the monitoring results and recording and saving them, it is convenient to accurately and effectively record the resource usage of each application container at the monitoring time, ensuring the accuracy and effectiveness of the monitoring, and also facilitating maintenance personnel to make corresponding adjustments based on the monitoring results.

[0203] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. An application container resource monitoring platform, characterized in that: include: A container quantity determination module, used to determine the number of application containers in the server, and number and mark different application containers based on the number of application containers; A monitoring plan formulation module, used to obtain configuration information of each application container based on the numbering result, and formulate a target resource monitoring plan based on the configuration information; A resource monitoring module, used to monitor the resource status of each application container based on the target resource monitoring scheme, and adjust the resources in each application container accordingly according to the monitoring results to complete the monitoring of the application container resources; The container quantity determination module also includes: An instruction receiving unit, configured to receive a numbering instruction sent by a management terminal, and generate M numbering data with different contents based on the numbering instruction, wherein M is consistent with the number of application containers; A numbered data sending unit, configured to send the M numbered data with different contents to different application containers respectively based on a preset data transmission rule; A numbering unit, used to write the M numbering data with different contents into the own data queue in the corresponding application container respectively, so as to complete the numbering of different application containers; Numbered units, including: An identification determination unit, used to obtain a preset identification and numbering data, and to establish a corresponding relationship between the preset identification and the numbering data, wherein one numbering data corresponds to one preset identification; The marking unit is used to determine the corresponding target preset identifier based on the target number data in the data queue of each application container itself, and mark the current application container based on the target preset identifier.

2. The application container resource monitoring platform according to claim 1, characterized in that: Container quantity determination module, including: An address determination unit, configured to obtain an application environment and an application area of ​​the application container, and determine identification information of each application container based on the application environment and the application area; The address determination unit is used to determine the IP address information of each application container based on the identification information, wherein one IP address information corresponds to one application container; A quantity determining unit is used to determine the quantity of application containers in the server based on the IP address information.

3. The application container resource monitoring platform according to claim 1, characterized in that: Numbered units also include: A numbering result obtaining unit, used to obtain the own data queues of all application containers in the server, and verify the numbering results in the own data queues of the application containers based on a preset verification method to determine whether there is a numbering error in the application containers; a numbering error information determining unit, configured to determine basic information of the current application container and an error type of the numbering error of the current application container when it is determined that there is a numbering error in the application container, wherein the error type includes duplicate numbering and missing numbering; A number adjustment unit, configured to adjust the number of the current application container based on the basic information of the current application container and an error type of the current application container number error; The numbering adjustment unit is further configured to determine that numbering processing of the application container is completed when it is determined that there is no numbering error in the application container.

4. The application container resource monitoring platform according to claim 1, characterized in that: Monitoring plan formulation module, including: A historical data acquisition unit, configured to acquire basic configuration information of a preset standard application container, wherein the basic configuration information includes attribute information, function information, and loading information, and determine basic configuration parameters based on the basic configuration information, and divide the basic configuration parameters into a training set and a test set; A model building unit, used to build a container configuration parameter analysis model, and train the container configuration parameter analysis model based on the training set; The model building unit is further used to test the trained container configuration parameter analysis model based on the test set until it is determined that the analysis accuracy of the container configuration parameter analysis model meets the expected requirements; A configuration information analysis unit, configured to collect application running data in each application container according to the number marking result based on the information collection instruction, and input the running data into the container configuration parameter analysis model for analysis and processing to obtain configuration information corresponding to each application container; An information screening unit, configured to perform structured processing on the configuration information to obtain structured target configuration information, perform inspection on the target configuration information based on a preset data inspection method, and determine a data field to be cleaned in the target configuration information; The information screening unit is further used to determine the attributes of the data field to be cleaned, determine the target cleaning rule from the preset data cleaning rule library according to the attribute, and clean the data field to be cleaned in the target configuration information based on the target cleaning rule to obtain the standard configuration information corresponding to each application container; A monitoring scheme determination unit, used to determine weight values ​​of attribute information, function information and loading information in the standard configuration information, and determine the emphasis ratio of monitoring application container resources based on the weight values; The monitoring scheme determination unit is further used to determine the distribution of resources in the application container, and determine a target monitoring point for monitoring the resources in the application container based on the distribution, wherein the target monitoring point can monitor resources in all ranges in the application container; The monitoring scheme determining unit is further used to complete the formulation of the target resource monitoring scheme based on the emphasis ratio of the application container resource monitoring and the target monitoring point.

5. The application container resource monitoring platform according to claim 1, characterized in that: Resource monitoring module, including: An instruction acquisition unit, used to acquire a monitoring instruction sent by the management terminal, and determine the current running state of each application container based on the monitoring instruction; A monitoring unit, configured to set a monitoring node inside each application container based on the current running state of each application container and a corresponding target resource monitoring scheme; The monitoring unit is used to monitor the resource usage data inside each application container based on the monitoring node, and transmit the obtained monitoring data to the data analysis unit; A data analysis unit is used to analyze and process the obtained monitoring data to obtain the resource consumption and remaining resources of each application container in the current running state, and compare the resource consumption and remaining resources of each application container in the current running state with the standard resource usage corresponding to the preset running state of each application container to determine whether there is a shortage of resources in the application container; A judgment unit, configured to send a no-abnormality notification to the management terminal when it is determined that there is no shortage of resources in the application container, otherwise, trigger a resource abnormality resolution unit; A resource anomaly resolution unit, configured to determine a target application container that has insufficient resources, and determine the number of user service requests accepted by the target application container at the current moment; A resource anomaly resolution unit, configured to determine a target resource amount required for a current user service request based on the number of user service requests, and perform a subtraction operation between the target resource amount and the current resource amount in the target application container to obtain a target scheduling resource amount; A resource scheduling unit, used to search for idle application containers based on a preset resource scheduling strategy, and determine the maximum scheduling amount supported by each idle application container; If the maximum scheduling amount supported by each idle application container is greater than or equal to the target scheduling resource amount, scheduling the resources in the idle application container to the target application container based on the target scheduling resource amount; Otherwise, the maximum scheduling amounts in the multiple idle application containers are merged until they are greater than or equal to the target scheduling resource amount, thereby completing the corresponding adjustment of the resources in the application container.

6. The application container resource monitoring platform according to claim 5, characterized in that: The judgment unit comprises: A resource threshold value determination unit, used to obtain the resource consumption of each application container within a preset time period, and sum and average the resource consumption of each application container within the preset time period to determine the average consumption value of the resources in the application container within the preset time period; A resource threshold value setting unit, used to set the consumption average value as the application container resource alarm threshold value, and compare the resource consumption of each application container in the current running state obtained in real time with the average value; If the resource consumption is greater than the average value, it is determined that the access to the resource is abnormal, and an alarm signal is triggered, and the alarm signal is transmitted to the management terminal at the same time; Otherwise, it is determined that there is no abnormality in accessing the resource.

7. The application container resource monitoring platform according to claim 5, characterized in that: Resource scheduling unit, including: A resource scheduling amount verification unit, used to obtain configuration information of a target application container when there is no idle application container, and determine an expansion method for the target application container based on the configuration information; A container extension unit, configured to extend the target application container based on the extension mode to obtain a target extended application container, and determine an application instance in the target application container; The container extension unit is used to determine the application environment of the target extended application container, and perform environment configuration on the application instance in the target application container based on the application environment, and deploy the configured application instance in the target extended application container to complete the extension of the target application container.

8. The application container resource monitoring platform according to claim 1, characterized in that: The resource monitoring module also includes: A monitoring data acquisition unit, used to acquire a monitoring result of monitoring the resource status in each application container based on the target resource monitoring solution, and determine a corresponding relationship between the monitoring result and the monitoring time; A report generating unit, configured to match a target report template from a preset report template library based on the corresponding relationship between the monitoring result and the monitoring time, and fill the monitoring result and the monitoring time into a target area in the target report template to obtain a monitoring result report; The report storage unit is used to store the monitoring result report in a preset storage area to complete the recording of the monitoring result.

Citation Information

Patent Citations

  • Container storage utilization rate monitoring method and device, computer equipment and storage medium

    CN113608963A