Load resource configuration method and device, equipment and storage medium
By collecting and analyzing the status data of the load balancing system in real time, using the prediction model to predict future traffic, and dynamically adjusting resource allocation according to the prediction results, the problem of insufficient expansion speed of the traditional system in the face of sudden large traffic is solved, and the system's reliability is improved. Matching degree and stability, reducing costs.
Patent Information
- Application Number
- CN202410929959.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-11
AI Technical Summary
When the traditional elastic load balancing system faces sudden large traffic, the capacity expansion speed cannot keep up with the traffic growth, resulting in service lags. How to improve the matching between the elastic load balancing system and real-time traffic to reduce lags.
By collecting status data of the elastic load balancing system and business system in real time, using a large preset load prediction model based on historical data to predict traffic, and expanding or shrinking resources based on the prediction results to improve the matching between traffic requests and resources. .
It effectively reduces business lags, ensures that the system remains efficient and stable in the face of changing loads, realizes on-demand allocation of resources, reduces costs, and improves the system's responsiveness and user experience.
Smart Images

Figure CN118740840A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of load balancing, and in particular to a load resource configuration method, device, equipment and storage medium. Background Art
[0002] Cloud computing abstracts the virtualization of various resources such as computing, network, and storage, providing users with extremely convenient resource usage and flexible resource expansion capabilities; large-scale business systems usually serve a large number of users and process massive amounts of data, so they are highly dependent on load balancing. Load balancing is essential to ensure the stability, performance, and reliability of these systems. Under normal circumstances, some application systems often experience traffic peaks on certain festivals and specific operational activity nodes, such as shopping websites. However, since it is impossible to predict how much traffic the business peak will reach and when the traffic peak will arrive before the traffic peak, it is often necessary to temporarily increase or decrease machines manually based on data analysis such as region, time period, and terminal, which not only wastes manpower but also resources. The elastic load balancing system solves multiple problems related to network traffic management, system availability, and resource utilization, mainly including uneven traffic distribution, single point failure, system scalability, performance optimization, and cost-effectiveness. In short, the elastic load balancing system helps organizations better manage their online services and applications by providing high availability, flexibility, and scalability, ensuring that they can reliably serve the changing needs of users. However, the traditional elastic load balancing system decides to expand or shrink capacity based on the current traffic volume. If there is a sudden large traffic volume, there may be a period of time when the expansion speed cannot keep up with the sudden increase in traffic, causing business lag.
[0003] It can be seen that how to improve the matching degree between the elastic load balancing system and the real-time traffic to reduce business jams is a problem to be solved in this field. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a load resource configuration method, device, equipment and storage medium, which can predict future traffic requests with the help of a large model, and expand or shrink resources according to the traffic prediction results, thereby improving the matching degree between load resources and real-time traffic requests and reducing service jams. The specific scheme is as follows:
[0005] In a first aspect, the present application provides a load resource configuration method, which is applied to a cloud computing platform, comprising:
[0006] Collect status data of current traffic requests from the elastic load balancing system and business system in real time;
[0007] The state data is processed using a preset load prediction model to predict the traffic requests of the elastic load balancing system and the business system in a future preset time period to obtain corresponding traffic prediction results; wherein the preset load prediction model is a model constructed based on the historical traffic requests and historical state data of the elastic load balancing system and the business system for predicting traffic requests in a future preset time period;
[0008] Based on the traffic prediction result, resource configuration operations of expanding or shrinking resources are performed on the elastic load balancing system and the business system, so that the elastic load balancing system and the business system after resource configuration can be used to process subsequent traffic requests.
[0009] Optionally, the real-time collection of status data of the elastic load balancing system and the business system for the current traffic request includes:
[0010] The status data of the elastic load balancing system and each node in the business system for the current traffic request are collected in real time through the preset monitoring components; the status data includes processor utilization, memory utilization, disk input and output, and network inflow and outflow traffic.
[0011] Optionally, after collecting the status data of the elastic load balancing system and the business system for the current traffic request in real time, the method further includes:
[0012] Display the status data in real time through a preset display interface;
[0013] If there is abnormal data in the status data that is greater than a preset status threshold, an alarm for the abnormal data is triggered to alert relevant personnel.
[0014] Optionally, after collecting the status data of the elastic load balancing system and the business system for the current traffic request in real time, the method further includes:
[0015] Using the state data to adjust the preset load prediction large model to obtain an adjusted large model;
[0016] Accordingly, the state data is processed using a preset load prediction model to predict the traffic requests of the elastic load balancing system and the business system in a future preset time period to obtain corresponding traffic prediction results, including:
[0017] The state data is processed using the adjusted large model to predict the traffic requests of the elastic load balancing system and the business system in a future preset time period to obtain corresponding traffic prediction results.
[0018] Optionally, the resource configuration operation of expanding or shrinking resources on the elastic load balancing system and the business system based on the traffic prediction result includes:
[0019] If the traffic prediction result characterizes that a preset expansion condition is met, a resource configuration operation for resource expansion is performed on the elastic load balancing system and the business system through a first preset control component; the preset expansion condition is that the number of traffic requests characterized by the traffic prediction result is greater than the number of current traffic requests, and satisfies a preset characterization condition that is much greater than;
[0020] If the traffic prediction result characterizes that it meets the preset scaling-down conditions, the resource configuration operation of scaling down resources is performed on the elastic load balancing system and the business system through the second preset control component; the preset scaling-down condition is that the number of traffic requests characterized by the traffic prediction result is less than the number of current traffic requests, and satisfies the preset characterization condition that is much less than.
[0021] Optionally, the resource configuration operation of performing resource expansion on the elastic load balancing system and the business system through the first preset control component includes:
[0022] Adding the first preset node to the elastic load balancing system and the business system through the first preset control component to complete the resource configuration operation for resource expansion of the elastic load balancing system and the business system;
[0023] Or, the first preset control component uses the first preset node configuration information to adjust several nodes in the elastic load balancing system and the business system to complete the resource configuration operation for resource expansion of the elastic load balancing system and the business system; the first preset node configuration information represents improved node performance.
[0024] Optionally, the resource configuration operation of scaling down the elastic load balancing system and the business system through the second preset control component includes:
[0025] Removing the second preset node from the elastic load balancing system and the business system through the second preset control component to complete the resource configuration operation for resource shrinkage of the elastic load balancing system and the business system;
[0026] Or, the second preset control component uses the second preset node configuration information to adjust several nodes in the elastic load balancing system and the business system to complete the resource configuration operation of resource scaling for the elastic load balancing system and the business system; the second preset node configuration information represents the reduction of node performance.
[0027] In a second aspect, the present application provides a load resource configuration device, which is applied to a cloud computing platform, including:
[0028] The status data collection module is used to collect the status data of the current traffic request in the elastic load balancing system and business system in real time;
[0029] A traffic prediction module, used to process the state data using a preset load prediction model to predict the traffic requests of the elastic load balancing system and the business system in a future preset time period, and obtain corresponding traffic prediction results; wherein the preset load prediction model is a model constructed based on the historical traffic requests and historical state data of the elastic load balancing system and the business system for predicting traffic requests in a future preset time period;
[0030] The resource configuration module is used to perform resource configuration operations of expanding or shrinking resources on the elastic load balancing system and the business system based on the traffic prediction results, so as to use the elastic load balancing system and the business system after resource configuration to process subsequent traffic requests.
[0031] In a third aspect, the present application provides an electronic device, including:
[0032] Memory, used to store computer programs;
[0033] A processor is used to execute the computer program to implement the load resource configuration method as described above.
[0034] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program implements the load resource configuration method as described above when executed by a processor.
[0035] It can be seen that the present application can collect the status data of the current traffic request in the elastic load balancing system and the business system in real time; then use the preset load prediction large model to process the status data to predict the traffic request of the elastic load balancing system and the business system in the future preset time period, and obtain the corresponding traffic prediction result; wherein the preset load prediction large model is a model for predicting traffic requests in the future preset time period based on the historical traffic requests and historical status data of the elastic load balancing system and the business system; then based on the traffic prediction result, the elastic load balancing system and the business system are configured to expand or shrink resources, so as to use the elastic load balancing system and the business system after resource configuration to process subsequent traffic requests. In this way, the present application can predict the traffic request in the future preset time period with the help of the large model, and expand or shrink the node resource configuration of the elastic load balancing system and the business system according to the traffic prediction result; this can improve the matching degree between the subsequent elastic load balancing system and the business system and the real-time traffic request, and reduce the occurrence of business jams caused by sudden large traffic. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] 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 only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0037] Figure 1 A flow chart of a load resource configuration method disclosed in this application;
[0038] Figure 2 A flow chart of a specific load resource configuration method disclosed in this application;
[0039] Figure 3 A schematic diagram of the structure of a load resource configuration device disclosed in this application;
[0040] Figure 4 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] See also Figure 1 As shown, an embodiment of the present invention discloses a load resource configuration method, which is applied to a cloud computing platform, including:
[0043] Step S11: collect status data of current traffic requests in the elastic load balancing system and the business system in real time.
[0044] In an embodiment of the present application, the cloud computing platform can collect the status data of the elastic load balancing system and the business system for the current traffic request in real time; in a specific embodiment, the real-time collection of the status data of the elastic load balancing system and the business system for the current traffic request can include: collecting the status data of the elastic load balancing system and each node in the business system for the current traffic request in real time through a preset monitoring component; the status data includes processor usage, memory usage, disk input and output, network inflow and outflow traffic. Specifically, the cloud computing platform can collect detailed load data and performance indicators of each node in the elastic load balancing system and the business system in real time through a preset monitoring component, including but not limited to CPU (Central Processing Unit) usage, memory usage, network inflow and outflow traffic including rate, query rate per second (Queries-per-second, QPS) and other data.
[0045] In a specific embodiment, after the real-time collection of the status data of the elastic load balancing system and the business system for the current traffic request, it can also include: displaying the status data in real time through a preset display interface; if there is abnormal data in the status data that is greater than a preset status threshold, triggering an alarm for the abnormal data to remind relevant personnel. Specifically, after the status data of the elastic load balancing system and the business system for the current traffic request is collected, the status data can be displayed in real time through a preset display interface; accordingly, the cloud computing platform can identify the abnormal data in the status data based on the preset status threshold, and can trigger an alarm for the abnormal data, so as to promptly remind relevant personnel to handle the abnormal data in the status data.
[0046] Step S12: Use a preset load prediction model to process the status data to predict the traffic requests of the elastic load balancing system and the business system in a future preset time period to obtain corresponding traffic prediction results; wherein the preset load prediction model is a model constructed based on historical traffic requests and historical status data of the elastic load balancing system and the business system for predicting traffic requests in a future preset time period.
[0047] In this embodiment, the cloud computing platform is pre-set with a load prediction model, which is specifically a load prediction model built based on the historical traffic requests and historical status data of the elastic load balancing system and the business system, and is specifically used to predict the traffic requests of the elastic load balancing system and the business system within a preset time period in the future.
[0048] In a specific embodiment, after the real-time collection of the status data of the elastic load balancing system and the business system for the current traffic request, it can also include: using the status data to adjust the preset load prediction model to obtain the adjusted large model; correspondingly, using the preset load prediction large model to process the status data to predict the traffic request of the elastic load balancing system and the business system in the future preset time period to obtain the corresponding traffic prediction result, including: using the adjusted large model to process the status data to predict the traffic request of the elastic load balancing system and the business system in the future preset time period to obtain the corresponding traffic prediction result. Specifically, in order to improve the subsequent prediction accuracy of the preset load prediction large model, the real-time collected status data of the elastic load balancing system and the business system for the current traffic request can be used to train and adjust the load preset large model to obtain the adjusted large model. Further, the adjusted large model can be used to predict the traffic request in the future preset time period with the current real-time collected status data to obtain the corresponding traffic prediction result.
[0049] Step S13: Based on the traffic prediction result, resource configuration operations of expanding or shrinking resources are performed on the elastic load balancing system and the business system, so as to use the elastic load balancing system and the business system after resource configuration to process subsequent traffic requests.
[0050] In this embodiment, through the above steps, the traffic requests within the future preset time period can be predicted based on the preset load prediction model to obtain the traffic prediction result, and then the resource configuration operations of resource expansion or resource reduction can be performed on the elastic load balancing system and the business system based on the traffic prediction result, so that the traffic requests within the future preset time period can be processed by the elastic load balancing system and the business system after the resource configuration.
[0051] In a specific embodiment, the resource configuration operation of expanding or shrinking resources on the elastic load balancing system and the business system based on the traffic prediction result may include: if the traffic prediction result characterizes compliance with a preset expansion condition, a resource configuration operation of expanding resources on the elastic load balancing system and the business system is performed through a first preset control component; the preset expansion condition is that the number of traffic requests characterized by the traffic prediction result is greater than the number of current traffic requests, and satisfies a preset characterization condition of being much greater than; if the traffic prediction result characterizes compliance with a preset shrinking condition, a resource configuration operation of shrinking resources on the elastic load balancing system and the business system is performed through a second preset control component; the preset shrinking condition is that the number of traffic requests characterized by the traffic prediction result is less than the number of current traffic requests, and satisfies a preset characterization condition of being much less than. Specifically, after obtaining the traffic prediction result, it can be determined whether the traffic prediction result meets the preset expansion conditions, whether the number of traffic requests represented by the traffic prediction result in the future preset time period is much greater than the number of current traffic requests, for example, if the number difference is greater than a certain value, it can be determined to meet the expansion conditions; when the traffic prediction result meets the preset expansion conditions, the first preset control component can be used to perform resource configuration operations for resource expansion on the elastic load balancing system and the business system. Correspondingly, if the traffic prediction result represents that it meets the preset contraction conditions, the second preset control component can be used to perform resource configuration operations for resource contraction on the elastic load balancing system and the business system.
[0052] In another specific embodiment, the resource configuration operation of expanding the resource capacity of the elastic load balancing system and the business system through the first preset control component may include: adding the first preset node to the elastic load balancing system and the business system through the first preset control component to complete the resource configuration operation for the resource expansion of the elastic load balancing system and the business system; or, adjusting several nodes in the elastic load balancing system and the business system using the first preset node configuration information through the first preset control component to complete the resource configuration operation for the resource expansion of the elastic load balancing system and the business system; the first preset node configuration information represents the improvement of node performance. Specifically, the resource expansion operation may include horizontal expansion and vertical expansion, wherein the first preset node is added to the elastic load balancing system and the business system through the first preset control component, and the two-node cluster is expanded to a four-node cluster, which disperses the business processing pressure of a single node, and can complete the corresponding resource configuration operation for horizontal resource expansion. Correspondingly, the first preset control component uses the first preset node configuration information to adjust several nodes in the elastic load balancing system and the business system, thereby improving the machine specification configuration of the relevant nodes, thereby improving the business processing capability of the nodes, thereby completing the resource configuration operation of vertical resource expansion.
[0053] In a specific embodiment, the resource configuration operation of shrinking the resources of the elastic load balancing system and the business system through the second preset control component may include: removing the second preset node from the elastic load balancing system and the business system through the second preset control component to complete the resource configuration operation of shrinking the resources of the elastic load balancing system and the business system; or, adjusting several nodes in the elastic load balancing system and the business system using the second preset node configuration information through the second preset control component to complete the resource configuration operation of shrinking the resources of the elastic load balancing system and the business system; the second preset node configuration information represents the reduction of node performance. Specifically, when the traffic prediction result represents a decrease in traffic or a trough period, a shrinking operation can be performed to reduce the number of nodes in the elastic load balancing system and the business system or reduce the node specifications, and release unnecessary computing resources. In this way, waste of resources and excessive cost expenditure can be avoided. In this way, the cloud computing platform can adjust resource usage according to actual needs to maximize cost-effectiveness.
[0054] It can be seen that the present application can use a large model to predict traffic requests within a preset time period in the future, and expand or reduce the node resource configuration of the elastic load balancing system and the business system according to the traffic prediction results; this can improve the matching degree between the subsequent elastic load balancing system and the business system and the real-time traffic requests, ensure that the business system remains efficient and stable in the face of ever-changing loads, and realize on-demand allocation of resources, providing users with continuous high-quality services, while also saving costs for enterprises and improving competitiveness.
[0055] like Figure 2 As shown, the embodiment of the present application discloses a load resource configuration method, which is applied to a cloud computing platform, including:
[0056] In this embodiment, the elastic load balancing system coordinates its own node resources and the cluster resources of the cloud server in the application system (business system) to process the traffic requests of the client. The cloud computing platform can collect detailed load data and performance indicators of each node in real time through the monitoring module, including but not limited to CPU usage, memory usage, network inflow and outflow traffic including rate, query rate per second (QPS) and other key parameters. It can be understood that these monitoring data combined with the corresponding historical data can provide a rich information resource for the big model, so that the big model can accurately analyze and predict the load trend in the future. The big model uses machine learning algorithms and data analysis technology to identify future traffic peaks and valleys, so as to make resource allocation decisions in advance. The big model combines the current state of the elastic load balancing system and the business system to predict the traffic requests in the future. Based on the traffic prediction results, the business system can dynamically adjust the resource allocation strategy and automatically perform the expansion or reduction operations of the elastic load balancing system and the business system through the control module. Specifically, when predicting that the traffic peak is about to arrive, the cloud computing platform will calculate the required capacity expansion in advance and notify the control module to perform necessary resource expansion based on this prediction, ensuring that the system can run smoothly when the traffic peak arrives to avoid performance degradation or service interruption. Similarly, after the traffic trough period arrives, the cloud computing platform can predict that there will be a period of traffic reduction in the future through a large model, and notify the control module to perform corresponding capacity reduction operations based on the actual access volume to optimize resource utilization and reduce costs. Through this intelligent load prediction and resource management mechanism, it can not only ensure that the business system remains efficient and stable in the face of changing loads, but also maximize cost-effectiveness and provide users with continuous high-quality services.
[0057] Furthermore, in the process of resource management by the control module, when the upcoming traffic peak is predicted, the cloud computing platform will start the expansion process in advance and automatically add more computing resources to meet the increased demand. The number of nodes of the elastic load balancing system and the business system is expanded horizontally or the node specifications are expanded vertically, so that the business system can handle more requests, while improving the availability and fault tolerance of the system, and effectively improving the response speed and throughput of the business system. On the contrary, when the traffic reduction or trough period is predicted, the cloud computing platform will perform a capacity reduction operation to avoid waste of resources and excessive cost expenditure. Reduce the number of nodes of the elastic load balancing system and the business system or reduce the node specifications to release unnecessary computing resources. In this way, the cloud computing platform can adjust its resource usage according to actual needs and maximize cost-effectiveness. In order to further reduce costs, when the business access is low, the nodes of the elastic load balancing system and the business system can be migrated to some physical nodes, and the unnecessary physical nodes can be shut down to achieve the purpose of saving energy. These nodes will be turned on again when the next expansion is needed. The adjustment process of the entire resource allocation strategy is dynamic and automatic, without manual intervention, which significantly improves the operation and maintenance efficiency and the responsiveness of the system. In addition, cloud computing platforms have built-in security checks and fault recovery mechanisms to ensure data security and system stability during resource allocation. Specifically, when the monitoring module detects an abnormal situation or an unpredictable error, for example, when the accuracy of the load forecasting model decreases, or when the business system encounters an unprecedented traffic pattern, the monitoring module will immediately trigger an alarm and notification. These alarms can be communicated to relevant staff through a variety of channels, including email, SMS, instant messaging, or a dedicated operation and maintenance management platform. Upon receiving the alarm, staff must act quickly to make necessary adjustments to the u business system based on their expertise and experience. This may include manually adjusting resource allocation strategies, starting backup systems, performing emergency repairs, or working with the development team to resolve deeper system problems.
[0058] Correspondingly, during the resource configuration process of resource expansion or resource reduction, the business system can be expanded horizontally or vertically, and the elastic load balancing system can also be expanded horizontally or vertically. Among them, horizontal expansion refers to increasing the number of nodes in the cluster. For example, the original two-node cluster can be expanded to a four-node cluster. This expansion method can effectively disperse the pressure of a single node and improve the concurrent processing capability of the system. By increasing the number of nodes, the business system can handle more requests while improving the availability and fault tolerance of the system. Vertical expansion refers to improving the machine specification configuration of a single node. For example, the original 2-core 4G (computer storage unit) memory virtual machine is upgraded to a 4-core 8G memory. This expansion method can improve the processing power of a single node and is suitable for scenarios with high requirements for single-node performance. Vertical expansion can effectively improve the response speed and throughput of the business system, but may be limited by hardware resources.
[0059] It can be seen that this application uses the predictive ability of large models and combines it with advanced resource management technology to not only ensure that the business system remains efficient and stable in the face of ever-changing loads, but also realizes on-demand allocation of resources, providing users with continuous high-quality services, while also saving costs for enterprises and improving competitiveness; and combining the advantages of automation and manual management, it not only utilizes the predictive ability of large models, but also retains the flexibility of manual management, providing a comprehensive, reliable and efficient resource management framework for business systems.
[0060] like Figure 3 As shown, the embodiment of the present application discloses a load resource configuration device, which is applied to a cloud computing platform, including:
[0061] The status data collection module 11 is used to collect the status data of the elastic load balancing system and the business system for the current traffic request in real time;
[0062] The traffic prediction module 12 is used to process the state data using a preset load prediction model to predict the traffic requests of the elastic load balancing system and the business system in a future preset time period and obtain corresponding traffic prediction results; wherein the preset load prediction model is a model for predicting traffic requests in a future preset time period based on historical traffic requests and historical state data of the elastic load balancing system and the business system;
[0063] The resource configuration module 13 is used to perform resource configuration operations of expanding or contracting resources on the elastic load balancing system and the business system based on the traffic prediction results, so as to use the elastic load balancing system and the business system after resource configuration to process subsequent traffic requests.
[0064] It can be seen from this that the present application can use a large model to predict traffic requests within a preset time period in the future, and expand or reduce the node resource configuration of the elastic load balancing system and the business system based on the traffic prediction results; this can improve the matching degree between the subsequent elastic load balancing system and the business system and the real-time traffic requests, and reduce the occurrence of business jams caused by sudden large traffic.
[0065] In a specific embodiment, the state data collection module 11 may include:
[0066] The status data collection unit is used to collect the status data of the elastic load balancing system and each node in the business system for the current traffic request in real time through the preset monitoring component; the status data includes processor utilization, memory utilization, disk input and output, network inflow and outflow traffic.
[0067] In a specific embodiment, the device may further include:
[0068] A status data display module, used to display the status data in real time through a preset display interface;
[0069] The alarm triggering module is used to trigger an alarm for the abnormal data when there is abnormal data in the status data that is greater than a preset status threshold, so as to remind relevant personnel.
[0070] In another specific embodiment, the device may further include:
[0071] A model adjustment module, used to adjust the preset load prediction large model using the state data to obtain an adjusted large model;
[0072] Accordingly, the traffic prediction module 12 may include:
[0073] The traffic prediction unit is used to process the state data using the adjusted large model to predict the traffic requests of the elastic load balancing system and the business system in a future preset time period to obtain corresponding traffic prediction results.
[0074] In a specific embodiment, the resource configuration module 13 may include:
[0075] A resource expansion submodule, used for performing resource configuration operations for resource expansion on the elastic load balancing system and the business system through a first preset control component when the traffic prediction result characterizes compliance with a preset expansion condition; the preset expansion condition is that the number of traffic requests characterized by the traffic prediction result is greater than the number of current traffic requests, and satisfies a preset characterization condition that is much greater than;
[0076] The resource reduction sub-module is used to perform resource reduction operations on the elastic load balancing system and the business system through a second preset control component when the traffic prediction result characterizes that a preset reduction condition is met; the preset reduction condition is that the number of traffic requests characterized by the traffic prediction result is less than the number of current traffic requests, and satisfies the preset characterization condition that is much less than.
[0077] In another specific embodiment, the resource expansion submodule may include:
[0078] A first resource expansion unit, used to add a first preset node to the elastic load balancing system and the business system through the first preset control component to complete a resource configuration operation for resource expansion of the elastic load balancing system and the business system;
[0079] The second resource expansion unit is used to adjust several nodes in the elastic load balancing system and the business system using the first preset node configuration information through the first preset control component to complete the resource configuration operation for resource expansion of the elastic load balancing system and the business system; the first preset node configuration information represents the improvement of node performance.
[0080] In yet another specific embodiment, the resource reduction submodule may include:
[0081] A first resource shrinking unit, used to remove a second preset node from the elastic load balancing system and the business system through a second preset control component to complete a resource configuration operation for shrinking resources of the elastic load balancing system and the business system;
[0082] The second resource reduction unit is used to adjust several nodes in the elastic load balancing system and the business system using the second preset node configuration information through the second preset control component to complete the resource configuration operation of resource reduction for the elastic load balancing system and the business system; the second preset node configuration information represents the reduction of node performance.
[0083] Furthermore, the present application also discloses an electronic device. Figure 4 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0084] Figure 4A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the load resource configuration method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0085] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0086] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0087] The operating system 221 is used to manage and control the hardware devices on the electronic device 20 and the computer program 222, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the load resource configuration method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0088] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed load resource configuration method. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.
[0089] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0090] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0091] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0092] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0093] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A load resource configuration method, It is characterized in that Applied to cloud computing platforms, including: Collect status data of current traffic requests from the elastic load balancing system and business system in real time; The state data is processed using a preset load prediction model to predict the traffic requests of the elastic load balancing system and the business system in a future preset time period to obtain corresponding traffic prediction results; wherein the preset load prediction model is a model constructed based on the historical traffic requests and historical state data of the elastic load balancing system and the business system for predicting traffic requests in a future preset time period; Based on the traffic prediction result, resource configuration operations of expanding or shrinking resources are performed on the elastic load balancing system and the business system, so that the elastic load balancing system and the business system after resource configuration can be used to process subsequent traffic requests.
2. The load resource configuration method according to claim 1, It is characterized in that The real-time collection of status data of the elastic load balancing system and the business system for the current traffic request includes: The status data of the elastic load balancing system and each node in the business system for the current traffic request are collected in real time through the preset monitoring components; the status data includes processor utilization, memory utilization, disk input and output, and network inflow and outflow traffic.
3. The load resource configuration method according to claim 1, It is characterized in that After the real-time collection of the status data of the elastic load balancing system and the business system for the current traffic request, the method further includes: Display the status data in real time through a preset display interface; If there is abnormal data in the status data that is greater than a preset status threshold, an alarm for the abnormal data is triggered to alert relevant personnel.
4. The load resource configuration method according to claim 1, It is characterized in that After the real-time collection of the status data of the elastic load balancing system and the business system for the current traffic request, the method further includes: Using the state data to adjust the preset load prediction large model to obtain an adjusted large model; Accordingly, the state data is processed using a preset load prediction model to predict the traffic requests of the elastic load balancing system and the business system in a future preset time period to obtain corresponding traffic prediction results, including: The state data is processed using the adjusted large model to predict the traffic requests of the elastic load balancing system and the business system in a future preset time period to obtain corresponding traffic prediction results.
5. The load resource configuration method according to any one of claims 1 to 4, It is characterized in that The resource configuration operation of expanding or shrinking resources on the elastic load balancing system and the business system based on the traffic prediction result includes: If the traffic prediction result characterizes that a preset expansion condition is met, a resource configuration operation for resource expansion is performed on the elastic load balancing system and the business system through a first preset control component; the preset expansion condition is that the number of traffic requests characterized by the traffic prediction result is greater than the number of current traffic requests, and satisfies a preset characterization condition that is much greater than; If the traffic prediction result characterizes that it meets the preset scaling-down conditions, the resource configuration operation of scaling down resources is performed on the elastic load balancing system and the business system through the second preset control component; the preset scaling-down condition is that the number of traffic requests characterized by the traffic prediction result is less than the number of current traffic requests, and satisfies the preset characterization condition that is much less than.
6. The load resource configuration method according to claim 5, It is characterized in that The resource configuration operation of performing resource expansion on the elastic load balancing system and the business system through the first preset control component includes: Adding the first preset node to the elastic load balancing system and the business system through the first preset control component to complete the resource configuration operation for resource expansion of the elastic load balancing system and the business system; Or, the first preset control component uses the first preset node configuration information to adjust several nodes in the elastic load balancing system and the business system to complete the resource configuration operation for resource expansion of the elastic load balancing system and the business system; the first preset node configuration information represents improved node performance.
7. The load resource configuration method according to claim 6, It is characterized in that The resource configuration operation of performing resource scaling on the elastic load balancing system and the business system through the second preset control component includes: Removing the second preset node from the elastic load balancing system and the business system through the second preset control component to complete the resource configuration operation for resource shrinkage of the elastic load balancing system and the business system; Or, the second preset control component uses the second preset node configuration information to adjust several nodes in the elastic load balancing system and the business system to complete the resource configuration operation of resource scaling for the elastic load balancing system and the business system; the second preset node configuration information represents the reduction of node performance.
8. A load resource configuration device, It is characterized in that Applied to cloud computing platforms, including: The status data collection module is used to collect the status data of the current traffic request in the elastic load balancing system and business system in real time; A traffic prediction module, used to process the state data using a preset load prediction model to predict the traffic requests of the elastic load balancing system and the business system in a future preset time period, and obtain corresponding traffic prediction results; wherein the preset load prediction model is a model constructed based on the historical traffic requests and historical state data of the elastic load balancing system and the business system for predicting traffic requests in a future preset time period; The resource configuration module is used to perform resource configuration operations of expanding or shrinking resources on the elastic load balancing system and the business system based on the traffic prediction results, so as to use the elastic load balancing system and the business system after resource configuration to process subsequent traffic requests.
9. An electronic device, It is characterized in that include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the load resource configuration method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that Used to store a computer program, which, when executed by a processor, implements the load resource configuration method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device for determining number of machines required by application and electronic equipment
CN114443432A
CNN-Transform-based cloud server dynamic load optimization method and device
CN116302509A
Task processing method, server, language prediction system and man-machine interaction system
CN116756282A
Hybrid elastic scaling method based on multi-dimensional resource prediction
CN117827434A
Container energy-saving elastic capacity expansion and contraction method and system based on time sequence prediction and medium
CN118260021A
Cited By
Method and system for expanding and shrinking capacity based on large model
CN119292796A
Method and system for self-adaptive elastic expansion strategy of Android distributed edge container
CN119440740A
Resource adjustment method and device, electronic equipment, storage medium and program product
CN119603173A
Performance tuning method and device
CN119690341A
Resource adjustment
WO2026113768A1
