Host overload detection method and device, electronic equipment and readable medium

By preprocessing and time series analysis of historical resource usage timing values ​​of virtual machines, and using LSTM and TimeGAN models for load prediction, the error problem of host overload monitoring in the existing technology is solved, and the monitoring accuracy and automation are improved.

CN118535328APending Publication Date: 2024-08-23SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410599307.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing host overload monitoring does not consider the time series characteristics of the data, lacks pre-processing and grasps the long-term cycle perspective, resulting in large load prediction errors and monitoring accuracy cannot be guaranteed.

Method used

By obtaining the historical resource usage time series value of the virtual machine, we perform missing value processing, stationarity testing, non-white noise testing and data enhancement, use the pre-trained time series model for load prediction, and combine the recursive neural network LSTM and time series data to generate the model. TimeGAN, generates predicted time series values ​​of future resource usage, identifying overload risks and trends.

Benefits of technology

It reduces the error in host load prediction, improves monitoring accuracy, can adaptively determine future overload trends, and achieves more scientific and automated host overload detection and alarms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535328A
    Figure CN118535328A
Patent Text Reader

Abstract

The scheme provided by the embodiment of the invention comprises the following steps: acquiring a historical resource use time sequence value of at least one virtual machine in a to-be-detected host, a first maximum resource quantity of the host and a second maximum resource quantity of the virtual machine; determining whether the host to be detected has an overload risk according to the first maximum resource quantity and the second maximum resource quantity; if the overload risk exists, inputting the historical resource use time sequence value into a pre-trained time sequence model to obtain a predicted time sequence value of future resource use; overload prediction is carried out according to the prediction time sequence value, at least one prediction overload result is obtained, and the prediction overload result represents the future overload trend of the host. According to the scheme provided by the embodiment of the invention, the host load at the future moment is predicted and analyzed, the future overload trend of the host is adaptively determined based on the time sequence analysis result, the error of host load prediction is reduced, and the monitoring accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a host overload detection method, device, electronic equipment and readable medium. Background Art

[0002] Cloud computing is a dynamic and scalable virtualized resource computing model that provides services through the Internet. For cloud service providers, centralizing resources and managing them in a unified manner can effectively improve resource utilization. However, due to the heterogeneity of various underlying resources in cloud computing centers and the differences in user applications, reasonable resource scheduling and load balancing have become challenging issues. Host resource scheduling is the process of allocating the host's physical resources on demand to virtual machines or containers running on the host, and is implemented in the form of providing a deployment plan for virtual machines or containers on the host.

[0003] Since it takes a certain amount of time to migrate a virtual machine or container online, if the migration is performed when the host is overloaded, the performance of the user's virtual machine will inevitably decrease. Therefore, it is necessary to predict the load of the host so that the virtual machine can be migrated in advance to ensure the service level agreement (SLA).

[0004] The current host overload monitoring does not take into account the time series characteristics of the data, lacks data preprocessing, lacks the grasp of host load changes from a long-term cycle perspective, and does not take into account the errors in host load prediction. Therefore, the monitoring accuracy cannot be guaranteed. Summary of the invention

[0005] The embodiments of the present invention provide a host overload detection method, device, electronic device and readable medium, which can reduce the error of host load prediction and improve monitoring accuracy.

[0006] According to one aspect of the present invention, a host overload detection method is provided, comprising:

[0007] Obtaining a historical resource usage time series value of at least one virtual machine in the host to be detected, a first maximum resource amount of the host, and a second maximum resource amount of the virtual machine;

[0008] Determining whether the host to be detected has an overload risk according to the first maximum resource amount and the second maximum resource amount;

[0009] If there is an overload risk, the historical resource usage time series value is input into a pre-trained time series model to obtain a predicted time series value of future resource usage;

[0010] An overload prediction is performed according to the predicted time series value to obtain at least one predicted overload result, wherein the predicted overload result represents a future overload trend of the host.

[0011] Optionally, before inputting the historical resource usage data into a pre-trained time series model for overload prediction, the method further includes:

[0012] The historical resource usage data is subjected to missing value processing, stationarity test, non-white noise test and data enhancement in sequence.

[0013] Optionally, the missing value processing includes: filling the missing historical resources with time series values ​​using an algorithm E2GAN for time series interpolation based on GAN;

[0014] The stationarity test includes: testing the stationarity of the historical resource usage time series value by a unit root test method, and if the test fails, processing the historical resource usage time series value by at least one of logarithmic transformation, smoothing method, difference method and decomposition;

[0015] The non-white noise test includes: performing a non-white noise test on the historical resource usage time series value through EView software;

[0016] The data enhancement includes: generating a time series retaining time dynamics through a time series data generation model TimeGAN to perform data enhancement.

[0017] Optionally, the time series model is trained in the following manner:

[0018] Determine a sample resource usage time series value as a training sample, wherein the sample resource usage time series value is obtained by combining a historical resource usage time series value of at least one virtual machine and the data enhanced time series value;

[0019] The sample resource usage time series values ​​are input into a recursive neural network LSTM, so that the LTSM analyzes the sample resource usage time series values ​​to obtain the time series model.

[0020] Optionally, performing overload prediction according to the predicted time series value to obtain at least one predicted overload result includes:

[0021] Determine the upper limit value of the 95% confidence interval of the predicted time series value;

[0022] If the predicted time series value is not greater than the first maximum resource amount, the predicted overload result is no overload risk;

[0023] If the predicted timing value is greater than the first maximum resource amount, the predicted overload result is host overload;

[0024] If the upper limit value is greater than the first maximum resource amount and the first maximum resource amount is greater than the predicted timing value, the predicted overload result is host saturation;

[0025] If the first maximum resource amount is greater than the upper limit value, the predicted overload result is pending trend analysis.

[0026] Optionally, the method also includes: when the predicted overload result is host saturation, using the DTW time series similarity algorithm to screen out the time series that is most similar to the virtual machine load change of the device to be detected in the global virtual machine load change pool, and when a burst load occurs in the event sequence, performing a burst load detection on the virtual machine of the device to be detected.

[0027] Optionally, the method further includes: when the predicted overload result is to be trend analyzed, outputting the load prediction value of the virtual machine of the device to be detected and marking the virtual machine whose resource usage continues to increase.

[0028] According to another aspect of the present invention, a host overload detection device is provided, comprising:

[0029] An input module, used to obtain a historical resource usage time series value of at least one virtual machine in the host to be detected, a first maximum resource amount of the host, and a second maximum resource amount of the virtual machine;

[0030] A determination module, configured to determine whether the host to be detected has an overload risk according to the first maximum resource amount and the second maximum resource amount;

[0031] An analysis module, for inputting the historical resource usage time series value into a pre-trained time series model to obtain a predicted time series value if there is an overload risk;

[0032] The output module is used to perform overload prediction according to the predicted time series value to obtain at least one predicted overload result, wherein the predicted overload result represents a future overload trend of the host.

[0033] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0034] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the host overload detection method described in any embodiment of the present invention.

[0035] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the host overload detection method described in any embodiment of the present invention when executed.

[0036] The scheme of the embodiment of the present invention obtains the historical resource usage time series value of at least one virtual machine in the host to be detected, the first maximum resource amount of the host, and the second maximum resource amount of the virtual machine; determines whether the host to be detected has an overload risk based on the first maximum resource amount and the second maximum resource amount; if there is an overload risk, inputs the historical resource usage time series value into a pre-trained time series model to obtain a predicted time series value of future resource usage; performs overload prediction based on the predicted time series value to obtain at least one predicted overload result, and the predicted overload result represents the future overload trend of the host. The scheme of the embodiment of the present invention predicts and analyzes the host load at a future moment, and adaptively determines the future overload trend of the host based on the result of the time series analysis, thereby reducing the error of the host load prediction and improving the monitoring accuracy.

[0037] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0039] Figure 1 is a flow chart of a host overload detection method provided by an embodiment of the present invention;

[0040] Figure 2 It is a structural schematic diagram of a host overload detection device provided by an embodiment of the present invention;

[0041] Figure 3 It is a structural schematic diagram of an electronic device for implementing the host overload detection method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0044] Figure 1 is a flow chart of a host overload detection method provided by an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0045] S110. Obtain a historical resource usage time series value of at least one virtual machine in the host to be detected, a first maximum resource amount of the host, and a second maximum resource amount of the virtual machine.

[0046] Among them, get the virtual machines VM1,...,VM on the host n The historical resource usage {VAR1(t),...,VAR n (t)}, i = 1, ..., n, t∈[0, T], the maximum resource amount of the host HMR and the maximum resource amount of the virtual machine {VMR1, ..., VMR n}, i=1,...,n.

[0047] The following describes the data format of the system input module: The system obtains the historical resource usage of n virtual machines on the host, the maximum resource usage of the host, and the maximum resource usage of the virtual machine through the input module, where the historical resource usage is a time series, and the maximum resource usage of the host and the maximum resource usage of the virtual machine are constant values ​​that are independent of time.

[0048] S120. Determine whether the host to be detected has an overload risk according to the first maximum resource amount and the second maximum resource amount.

[0049] Compare the maximum resource amount and the sum of the maximum resource amounts of the virtual machine. If If the host does not have an overload risk and is an absolutely safe host, the process ends. If not, further risk prediction is performed.

[0050] In an embodiment of the present invention, before inputting the historical resource usage data into a pre-trained time series model for overload prediction, the method may further include:

[0051] The historical resource usage data is subjected to missing value processing, stationarity test, non-white noise test and data enhancement in sequence.

[0052] In the embodiment of the present invention, the missing value processing includes: filling the missing historical resources with time series values ​​based on the GAN time series interpolation algorithm E2GAN;

[0053] The stationarity test includes: testing the stationarity of the historical resource usage time series value by a unit root test method, and if the test fails, processing the historical resource usage time series value by at least one of logarithmic transformation, smoothing method, difference method and decomposition;

[0054] The non-white noise test includes: performing a non-white noise test on the historical resource usage time series value through EView software;

[0055] The data enhancement includes: generating a time series retaining time dynamics through a time series data generation model TimeGAN to perform data enhancement.

[0056] In order to solve the problem of lack of data preprocessing, the time series analysis module performs missing value processing, stationarity test, non-white noise test and data enhancement on the historical resource usage of virtual machines before model fitting. Specifically, (1) the GAN-based time series interpolation algorithm E2GAN is used to fill in the missing time series data; (2) the unit root test method is used to test the stationarity of the series. If the series fails the test, it is necessary to consider logarithmic transformation, smoothing method [moving average or exponential average], difference method and decomposition to process it; (3) the data is tested for non-white noise to prove that the data is stationary and has temporal correlation; (4) the time series data generation model TimeGAN is used to generate a time series that retains time dynamics for data enhancement. The subsequent training of the time series model is based on the combination of the real historical resource usage data of virtual machines and the data generated by TimeGAN.

[0057] S130: If there is an overload risk, input the historical resource usage time series value into a pre-trained time series model to obtain a predicted time series value of future resource usage.

[0058] In an embodiment of the present invention, the time series model is trained in the following manner:

[0059] Determine a sample resource usage time series value as a training sample, wherein the sample resource usage time series value is obtained by combining a historical resource usage time series value of at least one virtual machine and the data enhanced time series value;

[0060] The sample resource usage time series values ​​are input into a recursive neural network LSTM, so that the LTSM analyzes the sample resource usage time series values ​​to obtain the time series model.

[0061] In order to solve the problem that the model does not take into account the time series characteristics of the data, the time series analysis module uses the recursive neural network LSTM to predict the host load. LSTM can use time series to analyze the input and can solve the long-term dependency problem that is common in general recursive neural networks.

[0062] The training of the time series model is based on a combination of real virtual machine historical resource usage data and data generated by TimeGAN. The recurrent neural network LSTM is used to predict the host load based on the enhanced data.

[0063] S140. Perform overload prediction according to the predicted time series value to obtain at least one predicted overload result, wherein the predicted overload result indicates a future overload trend of the host.

[0064] In the embodiment of the present invention, overload prediction is performed according to the predicted time series value to obtain at least one predicted overload result, including:

[0065] Determine the upper limit value of the 95% confidence interval of the predicted time series value;

[0066] If the predicted time series value is not greater than the first maximum resource amount, the predicted overload result is no overload risk;

[0067] If the predicted timing value is greater than the first maximum resource amount, the predicted overload result is host overload;

[0068] If the upper limit value is greater than the first maximum resource amount and the first maximum resource amount is greater than the predicted timing value, the predicted overload result is host saturation;

[0069] If the first maximum resource amount is greater than the upper limit value, the predicted overload result is pending trend analysis.

[0070] Output the resource usage of the virtual machine at time t+1 in the future {VAR1(t+1),...,VAR n (t+1)}, i=1,...,n and the upper limit of the 95% confidence interval Corresponding alarm information is adaptively given according to the system's previous input. If the predicted timing value is not greater than the first maximum resource amount, the predicted overload result is no overload risk, and the host is absolutely safe; if the predicted timing value is greater than the first maximum resource amount, the predicted overload result is host overload, triggering a host overload warning; if the upper limit value is greater than the first maximum resource amount and the first maximum resource amount is greater than the predicted timing value, the predicted overload result is host saturation, triggering a host saturation warning; if the first maximum resource amount is greater than the upper limit value, the predicted overload result is pending trend analysis, and no alarm is issued at this time, but a trend analysis is performed.

[0071] In an embodiment of the present invention, the method may further include:

[0072] When the predicted overload result is host saturation, the DTW time series similarity algorithm is used to screen out the time series that is most similar to the virtual machine load change of the device to be detected in the global virtual machine load change pool, and when a burst load occurs in the event sequence, a burst load detection is performed on the virtual machine of the device to be detected.

[0073] In an embodiment of the present invention, the method may further include:

[0074] When the predicted overload result is to be trend analyzed, the load prediction value of the virtual machine of the device to be detected is output and the virtual machine whose resource usage continues to increase is marked.

[0075] The host overload warning directly triggers the output of virtual machine migration; the host saturation warning triggers the correlation analysis module to capture and monitor small probability sudden load events; if there is no alarm information, trend analysis will continue and virtual machines with a continuous upward trend in VAR will be marked.

[0076] If a "host saturation warning" signal is received, a correlation analysis is performed, and the DTW time series similarity algorithm is used to screen out the time series that is most similar to the current virtual machine load change in the global virtual machine load change pool (not limited to the virtual machines on the current host). If there is a burst load in the time series later, the current virtual machine is monitored for a small probability of burst load. If a "no alarm" signal is received, a trend analysis is performed, the load forecast value of the virtual machine in the future is output, and the virtual machines whose resource usage continues to increase are marked, so as to grasp the host load changes from a longer-term cycle perspective.

[0077] The present invention realizes the automatic detection, alarm and analysis of host overload under the virtual machine architecture. Compared with the existing host overload detection method based on the threshold method or the model method, the system is based on more scientific statistical analysis methods (such as unit root test method and non-white noise test, etc.) and more advanced artificial intelligence algorithms (such as E2GAN, TimeGAN and LSTM, etc.), and has more complete functions (in addition to host overload detection, the system can also adaptively give alarms and analysis based on the results of time series analysis). It can effectively avoid the various problems that the threshold method is affected by the long-term fluctuations of the load of the physical host, the model does not take into account the time series characteristics of the data, lacks data preprocessing, lacks the grasp of the host load changes from a long-term periodic perspective, and does not take into account the errors in host load prediction. It helps to help cloud service providers extract useful information to guide resource scheduling and achieve the goal of reducing energy consumption without violating the service agreement. Specifically, compared with the host load detection method based on the threshold method or the model method, the present invention achieves the following beneficial effects:

[0078] (1) Improved: The system predicts and analyzes the host load at future times, and adaptively triggers alarm information based on the system's previous input. This system can monitor small-probability burst loads and mark virtual machines with continuously increasing resource usage, thereby improving and comprehensively realizing the detection, analysis, and alarm functions of host overload.

[0079] (2) More automatic: The system is automated through reasonable logical connections. That is, the system automatically executes all links after receiving the historical resource usage of the virtual machines on the host and the maximum resource usage of the host and virtual machines, and adaptively outputs an absolute safe host or host overload alarm or host saturation alarm or no alarm. It then performs correlation analysis or trend analysis based on the alarm category, and finally outputs the decision to migrate the virtual machine or the monitoring results of the small probability burst load or the marking of the virtual machine whose resource usage continues to increase;

[0080] (3) More scientific: The situation where the host is absolutely safe is discussed separately to avoid accidental injuries caused by model prediction under special circumstances (gradually increasing and approaching); considering the time series characteristics of the host load data, the time series analysis module uses the recursive neural network LSTM to predict the host load. LSTM can use time series to analyze the input and can solve the long-term dependence problem that is common in general recursive neural networks; the long-term fluctuation of the load of the physical host and the insufficient data volume will have a significant negative impact on the accuracy of the model. Before fitting the model, on the one hand, the data is tested for stationarity and non-white noise to prove that the data is stationary and has temporal correlation; on the other hand, The time series data generation model TimeGAN is used to generate time series that retain time dynamics for data enhancement to improve the scale and quality of training data; by comparing the sum of the upper limits of the 95% confidence interval of the predicted actual resource usage of the virtual machines on the host at future times with the maximum resource size of the host to give the corresponding host saturation alarm, the error of time series prediction is taken into consideration, further improving the accuracy of system decision-making; in the case of host saturation, small probability sudden load events are captured and monitored; when the host load does not alarm, the virtual machines with a continuous upward trend in VAR are marked to grasp the changes in host load from a longer-term period perspective.

[0081] Figure 2 FIG. 1 is a schematic diagram of the structure of a host overload detection device provided by an embodiment of the present invention. Figure 2 As shown, the device comprises:

[0082] An input module 210 is used to obtain a historical resource usage time series value of at least one virtual machine in the host to be detected, a first maximum resource amount of the host, and a second maximum resource amount of the virtual machine;

[0083] A determination module 220, configured to determine whether the host to be detected has an overload risk according to the first maximum resource amount and the second maximum resource amount;

[0084] An analysis module 230 is used to input the historical resource usage time series value into a pre-trained time series model to obtain a predicted time series value if there is an overload risk;

[0085] The output module 240 is used to perform overload prediction according to the predicted time series value to obtain at least one predicted overload result, and the predicted overload result represents the future overload trend of the host.

[0086] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the host overload detection device. In other embodiments of the present invention, the host overload detection device may include more or fewer components than those illustrated, or combine certain components, or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0087] The information interaction, execution process and other contents between the units in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention. For specific contents, please refer to the description in the embodiment of the method of the present invention, and no further description is given here.

[0088] Figure 3 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0089] like Figure 3 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0090] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0091] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a host overload detection method.

[0092] In some embodiments, the host overload detection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the host overload detection method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the host overload detection method in any other appropriate manner (e.g., by means of firmware).

[0093] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0094] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0095] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0096] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0097] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0098] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0099] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0100] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A host overload detection method, characterized in that: include: Obtaining a historical resource usage time series value of at least one virtual machine in the host to be detected, a first maximum resource amount of the host, and a second maximum resource amount of the virtual machine; Determining whether the host to be detected has an overload risk according to the first maximum resource amount and the second maximum resource amount; If there is an overload risk, the historical resource usage time series value is input into a pre-trained time series model to obtain a predicted time series value of future resource usage; An overload prediction is performed according to the predicted time series value to obtain at least one predicted overload result, wherein the predicted overload result represents a future overload trend of the host.

2. The method according to claim 1, characterized in that: Before inputting the historical resource usage data into a pre-trained time series model for overload prediction, the method further includes: The historical resource usage data is subjected to missing value processing, stationarity test, non-white noise test and data enhancement in sequence.

3. The method according to claim 2, characterized in that The missing value processing includes: filling the missing historical resources with time series values ​​based on the GAN time series interpolation algorithm E2GAN; The stationarity test includes: testing the stationarity of the historical resource usage time series value by a unit root test method, and if the test fails, processing the historical resource usage time series value by at least one of logarithmic transformation, smoothing method, difference method and decomposition; The non-white noise test includes: performing a non-white noise test on the historical resource usage time series value through EView software; The data enhancement includes: generating a time series retaining time dynamics through a time series data generation model TimeGAN to perform data enhancement.

4. The method according to claim 3, characterized in that The time series model is trained in the following way: Determine a sample resource usage time series value as a training sample, wherein the sample resource usage time series value is obtained by combining a historical resource usage time series value of at least one virtual machine and the data enhanced time series value; The sample resource usage time series values ​​are input into a recursive neural network LSTM, so that the LTSM analyzes the sample resource usage time series values ​​to obtain the time series model.

5. The method according to claim 1, characterized in that The performing overload prediction according to the predicted time series value to obtain at least one predicted overload result includes: Determine the upper limit value of the 95% confidence interval of the predicted time series value; If the predicted time series value is not greater than the first maximum resource amount, the predicted overload result is no overload risk; If the predicted timing value is greater than the first maximum resource amount, the predicted overload result is host overload; If the upper limit value is greater than the first maximum resource amount and the first maximum resource amount is greater than the predicted timing value, the predicted overload result is host saturation; If the first maximum resource amount is greater than the upper limit value, the predicted overload result is pending trend analysis.

6. The method according to claim 5, characterized in that Further including: When the predicted overload result is host saturation, the DTW time series similarity algorithm is used to screen out the time series that is most similar to the virtual machine load change of the device to be detected in the global virtual machine load change pool, and when a burst load occurs in the event sequence, a burst load detection is performed on the virtual machine of the device to be detected.

7. The method according to claim 5, characterized in that Further including: When the predicted overload result is to be trend analyzed, the load prediction value of the virtual machine of the device to be detected is output and the virtual machine whose resource usage continues to increase is marked.

8. The host overload detection device is characterized by: include: An input module, used to obtain a historical resource usage time series value of at least one virtual machine in the host to be detected, a first maximum resource amount of the host, and a second maximum resource amount of the virtual machine; A determination module, configured to determine whether the host to be detected has an overload risk according to the first maximum resource amount and the second maximum resource amount; An analysis module, for inputting the historical resource usage time series value into a pre-trained time series model to obtain a predicted time series value if there is an overload risk; The output module is used to perform overload prediction according to the predicted time series value to obtain at least one predicted overload result, wherein the predicted overload result represents a future overload trend of the host.

9. An electronic device, characterized in that include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the host overload detection method described in any one of claims 1-7.

10. A computer readable medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the host overload detection method according to any one of claims 1 to 7 when executed.