Server scheduling method, device, system and product of business system

By combining the deep reinforcement learning prediction model with business system resource data, the number of servers is scheduled in real time, which solves the problems of unstable business system operation and low server utilization in the existing technology, and achieves efficient utilization of server resources and reduced energy consumption.

CN118869697AActive Publication Date: 2024-10-29CHINA MOBILE GROUP DESIGN INST +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410919172.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-29
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

In the existing technology, the operation of the business system is unstable and the server utilization rate is not improved well. The existing methods fail to effectively consider the changes in business system characteristics and requirements, resulting in unreasonable server scheduling.

Method used

Use the deep reinforcement learning prediction model combined with the basic resource data of the business system to predict server demand in real time, and perform server scheduling based on the prediction results, including configuring devices through policies to connect to resource pool management devices and load balancers to receive processor and memory requirements. Data is used to predict and schedule the number of servers to achieve reasonable allocation of server resources.

Benefits of technology

By adjusting the number of servers in real time, the resource utilization of servers is improved, energy consumption is reduced, and the stable operation and efficient utilization of the business system are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869697A_ABST
    Figure CN118869697A_ABST
Patent Text Reader

Abstract

The invention relates to the field of server scheduling, and provides a server scheduling method, device, system and product of a service system, which are applied to strategy configuration equipment and comprise the following steps: receiving resource basic data of the service system acquired by resource pool management equipment, and receiving list data acquired by a load balancer; inputting the current processor demand quantity and the current memory demand quantity into a deep reinforcement learning prediction model for quantity prediction, and determining a prediction server quantity required by a service system; and performing server scheduling according to the predicted server number, the current server number of the business system and the list data, and determining a service scheduling result. According to the method, the resource basic data of the service system are effectively combined, the real-time number of the servers required by the service system is predicted by adopting a model prediction method, and finally the servers are scheduled according to the predicted number of the servers, so that the resource utilization rate of the servers can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of server scheduling, and in particular to a server scheduling method, device, system and product for a business system. Background Art

[0002] In recent years, the high energy consumption of business systems has gradually become a prominent problem. Faced with more computing resources and storage resources, efficient management of server energy consumption has become a huge challenge.

[0003] At present, in the existing technology, the management of servers usually uses preset thresholds to adjust the servers. There is also a method of virtualizing one server into multiple servers for use by multiple business systems through virtualization technology, thereby improving server utilization, reducing the actual number of physical servers, and achieving the purpose of reducing energy consumption.

[0004] Regarding the method of adjusting the server through preset thresholds, the characteristics of the business system and other information are not taken into consideration, and the threshold is directly used for judgment. When the access volume of the business system changes, it is easy to cause unstable operation. Regarding the method of improving server utilization by adopting virtualization technology, the energy-saving effect is not obvious when the scale of the existing server does not change, and the effect of improving server utilization is not good. Summary of the invention

[0005] The present invention provides a server scheduling method, device, system and product for a business system, which are used to solve the defects of unstable business system operation and poor server utilization in the prior art, and to achieve the real-time server quantity required by the business system by effectively combining the resource basic data of the business system and adopting a model prediction method, and finally scheduling the servers according to the predicted server quantity to improve the resource utilization of the servers.

[0006] The present invention provides a server scheduling method for a business system, which is applied to a policy configuration device, wherein the policy configuration device is respectively connected to a resource pool management device and a load balancer, and comprises the following steps.

[0007] Receive the basic resource data of the business system obtained by the resource pool management device, and receive the list data obtained by the load balancer; wherein the basic resource data includes the current processor demand and the current memory demand, and the list data is the data of the server in the server management device that supports the work of the business system.

[0008] The current processor demand and the current memory demand are input into the deep reinforcement learning prediction model for quantity prediction to determine the predicted number of servers required by the business system; wherein the predicted number of servers refers to the number of servers required to be allocated to the business system determined by the prediction.

[0009] Server scheduling is performed based on the predicted number of servers, the current number of servers of the business system and the list data to determine the service scheduling result; wherein the current number of servers is the number of servers currently allocated to the business system.

[0010] According to a server scheduling method for a business system provided by the present invention, the resource basic data also includes historical processor demand and historical memory demand; the deep reinforcement learning prediction model is a model obtained by model training based on historical processor demand, historical memory demand, reward function and evaluation network; wherein the reward function is used to guide the training of the deep reinforcement learning prediction model, and the evaluation network is used to adjust the stability of the deep reinforcement learning prediction model.

[0011] According to a server scheduling method for a business system provided by the present invention, a service scheduling result includes a first service scheduling result and a second service scheduling result; server scheduling is performed according to the predicted number of servers, the current number of servers of the business system and list data, and the service scheduling result is determined, including: if the predicted number of servers is greater than the current number of servers, a server increase strategy is formulated according to the predicted number of servers, the current number of servers and the list data, and the first service scheduling result is determined based on the server increase strategy; if the predicted number of servers is less than the current number of servers, a server reduction strategy is formulated according to the predicted number of servers, the current number of servers and the list data, and the second service scheduling result is determined based on the server reduction strategy; wherein the first service scheduling result and the second service scheduling result are used to control the servers allocated to the business system.

[0012] The present invention also provides a server scheduling method for a business system, which is applied to a resource pool management device, wherein the resource pool management device is connected to a policy configuration device and a load balancer respectively, and comprises the following steps.

[0013] Obtain resource-based data of the business system.

[0014] Send resource base data to the policy configuration device.

[0015] The receiving policy configuration device determines the service scheduling result based on the resource basic data.

[0016] Control the servers assigned to the business system based on the service scheduling results.

[0017] According to a server scheduling method for a business system provided by the present invention, the service scheduling result includes a first service scheduling result and a second service scheduling result; when it is determined that the first service scheduling result is received, the server allocated to the business system is controlled based on the service scheduling result, including: sending a wake-up instruction to a server management device based on the first service scheduling result, so that the server management device wakes up the server based on the wake-up instruction; wherein the server management device includes servers allocated to the business system; receiving a server increase instruction sent by the server management device; sending the server increase instruction to a load balancer, so that the load balancer allocates servers to the business system according to the server increase instruction, and determines the increase result; wherein the increase result is used to feedback the load balancer on the increase of servers in the server management device according to the server increase instruction; receiving the increase result sent by the load balancer, and synchronously sending the increase result to the policy configuration device.

[0018] According to a server scheduling method for a business system provided by the present invention, when it is determined that a second service scheduling result is received, the server allocated to the business system is controlled based on the service scheduling result, including: sending a server reduction instruction to the load balancer based on the second service scheduling result, so that the load balancer allocates servers to the business system according to the server reduction instruction, and determines the reduction result; wherein the reduction result is used to feedback the load balancer on the reduction of servers in the server management device according to the server reduction instruction; receiving the reduction result sent by the load balancer, and synchronously sending the reduction result to the policy configuration device; receiving the sleep instruction determined by the policy configuration device based on the reduction result; sending the sleep instruction to the server management device, so that the server management device sleeps the server based on the sleep instruction.

[0019] The present invention also provides a server scheduling device for a business system, which is applied to a policy configuration device and includes the following modules.

[0020] The data receiving module is used to receive the basic resource data of the business system obtained by the resource pool management device and receive the list data obtained by the load balancer; wherein the basic resource data includes the current processor demand and the current memory demand, and the list data is the data of the server in the server management device that supports the operation of the business system.

[0021] The quantity determination module is used to input the current processor demand and the current memory demand into the deep reinforcement learning prediction model for quantity prediction, and determine the predicted number of servers required by the business system; wherein the predicted number of servers refers to the number of servers required to be allocated to the business system determined by the prediction.

[0022] The result determination module is used to perform server scheduling based on the predicted number of servers, the current number of servers of the business system and the list data, and determine the service scheduling result; wherein the current number of servers is the number of servers currently allocated to the business system.

[0023] The present invention also provides a server scheduling device for a business system, which is applied to a resource pool management device and includes the following modules.

[0024] The data acquisition module is used to obtain the resource-based data of the business system.

[0025] The data sending module is used to send resource basic data to the policy configuration device.

[0026] A result receiving module is used to receive a service scheduling result determined by the policy configuration device based on the resource basic data.

[0027] The result control module is used to allocate servers to the business system based on the service scheduling results.

[0028] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a server scheduling method for any of the above-mentioned business systems is implemented.

[0029] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the server scheduling method of any of the above-mentioned business systems is implemented.

[0030] The present invention also provides a computer program product, including a computer program, which implements the server scheduling method of any of the above-mentioned business systems when the computer program is executed by a processor.

[0031] The present invention provides a server scheduling method, device, system and product for a business system, which are applied to a policy configuration device, wherein the policy configuration device is connected to a resource pool management device and a load balancer respectively; receiving resource basic data of the business system obtained by the resource pool management device, and receiving list data obtained by the load balancer; wherein the resource basic data includes the current processor demand and the current memory demand, and the list data is the data of the server in the server management device supporting the work of the business system; the current processor demand and the current memory demand are input into a deep reinforcement learning prediction model for quantity prediction, and the predicted number of servers required by the business system is determined; wherein the predicted number of servers refers to the number of servers required to be allocated to the business system determined by prediction; server scheduling is performed according to the predicted number of servers, the current number of servers of the business system and the list data, and the service scheduling result is determined; wherein the current number of servers is the number of servers currently allocated by the business system. The technical solution of the present invention is used to solve the defects of unstable operation of the business system and poor improvement of server utilization in the prior art, by effectively combining the resource basic data of the business system and adopting the model prediction method to predict the real-time number of servers required by the business system, and finally scheduling the server according to the predicted number of servers to improve the resource utilization of the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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.

[0033] Figure 1 This is one of the flow charts of the server scheduling method of the business system provided by the present invention.

[0034] Figure 2 This is the second flow chart of the server scheduling method of the business system provided by the present invention.

[0035] Figure 3 The present invention provides a flow chart of server increase in the business system.

[0036] Figure 4 It is a flow chart of server reduction of the business system provided by the present invention.

[0037] Figure 5 It is a schematic diagram of a server scheduling system of a business system provided by the present invention.

[0038] Figure 6 This is one of the structural diagrams of the server scheduling device of the business system provided by the present invention.

[0039] Figure 7 This is the second structural diagram of the server scheduling device of the business system provided by the present invention.

[0040] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention.

[0041] Reference numerals: 51: Policy configuration device; 52: Resource pool management device; 53: Load balancer; 54: Server management device. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.

[0043] Combine the following Figure 1-Figure 2 The server scheduling method of the business system provided by the present invention is described. The server scheduling method of the business system provided by the present invention can be applicable to the scheduling of servers. The executor of the method can be an electronic device. The electronic device can be, for example, a policy configuration device, or a server scheduling device of the business system arranged in the electronic device. The server scheduling device of the business system can be implemented by software, hardware, or a combination of both. Figure 1 It is one of the flow diagrams of the server scheduling method of the business system provided by the present invention, which is applied to the policy configuration device, and the policy configuration device is connected to the resource pool management device and the load balancer respectively; Figure 1 As shown, the method includes the following steps.

[0044] Step 101: Receive resource basic data of a business system acquired by a resource pool management device, and receive list data acquired by a load balancer.

[0045] In this step, the resource basic data includes the current processor demand and the current memory demand, and the list data is the data of the server in the server management device that supports the work of the business system; the resource basic data also includes the historical processor demand and the historical memory demand. The current processor demand is the processor demand required during the current operation of the business system; the current memory demand is the memory demand required during the current operation of the business system. The historical processor demand is the processor demand required when processing the same type of tasks as the business system when the same type of tasks as the business system have been processed; the historical memory demand is the memory demand required when processing the same type of tasks as the business system when the same type of tasks as the business system have been processed.

[0046] The policy configuration device is mainly responsible for scheduling servers, regularly obtaining the current configuration data of each business system server and the usage data of processors, memory, etc. from the resource pool management device, and storing them; it is also responsible for automatically statistically analyzing the configuration data and usage data of the business system servers, so as to predict the business system's demand for servers in future time periods.

[0047] The resource pool management device is responsible for managing all the device hardware under its jurisdiction, including servers, monitoring the operating status of all the governed devices such as servers, and collecting data such as server configuration data, server processors, and server memory usage. At the same time, the resource pool management device is also responsible for allocating servers to business systems based on the resource requirements of each business system, and is also responsible for hibernation and wake-up processing of servers.

[0048] The load balancer is responsible for obtaining the list data of the servers in the server management device of each running business system. The list data may specifically include the name of the business system, the number of servers supporting the operation of the business system, and the address information of the servers, etc. This embodiment does not limit this. The load balancer is also responsible for evenly distributing the request to the server management device to ensure the load balancing of all servers under the business system. Furthermore, the load balancer is also responsible for exchanging information with the resource pool management device and the policy configuration device.

[0049] Specifically, the policy configuration device receives resource basic data sent by the resource pool management device, and the resource basic data includes the current processor demand required for the current operation of the business system and the current memory demand required for the current operation of the business system. The current processor demand and the current memory demand are obtained through the resource pool management device. At the same time, the policy configuration device also receives the list data obtained by the load balancer, and the list data is the data of the server in the server management device that supports the work of the business system.

[0050] Step 102: Input the current processor demand and the current memory demand into the deep reinforcement learning prediction model for quantity prediction to determine the predicted number of servers required by the business system.

[0051] In this step, the predicted number of servers refers to the number of servers required to be allocated to the business system determined by prediction; the deep reinforcement learning prediction model is a model obtained by model training based on historical processor demand, historical memory demand, reward function and evaluation network; wherein the reward function is used to guide the training of the deep reinforcement learning prediction model, and the evaluation network is used to adjust the stability of the deep reinforcement learning prediction model.

[0052] Among them, the deep reinforcement learning prediction model is based on the deep reinforcement learning algorithm to predict the optimal strategy of mapping the state s of the server in the server management device to the action a The basic principle is that the policy configuration device and the resource pool management device continuously interact and learn to maximize the return and predict the number of servers. When determining the deep reinforcement learning prediction model, the state space, which is the input of the deep reinforcement learning prediction model, is first determined. The state is the data reflecting the server management device, which can be collected by the resource pool management device. Therefore, the state space can be defined as Among them, Type is the business system feature, Access is the historical access volume of the business system, and the historical access volume of the business system refers to the number of concurrent users accessing the business system or the number of clicks on the business system, etc. These parameters will affect the business system's consumption (demand) of the server's processor and memory, Con(t) is the business system's historical server processor and memory configuration, Load(t) is the business system's historical server processor and memory load, t represents time t, t-1 represents time t-1, and th is the server's reasonable operation threshold interval. The operation threshold interval refers to the artificially set reasonable usage rate (utilization rate) interval of the business system's server processor and memory (for example, x%-y%, this threshold The interval needs to be reasonably set according to the operating characteristics of the business system. Different business systems may have different threshold intervals. The business system server processor and memory usage run within the threshold interval, which not only ensures that the business system server resources are fully utilized (no waste) but also ensures the smooth operation of the business system (there will be no problems with slow operation or interruption of the business system due to insufficient resources). The operating characteristics of the business system refer to the individual factors that cause the business system software to have special or certain requirements for server resources due to the business system software architecture, specific functions, performance requirements, and data processing methods. Operation and maintenance personnel need to take these factors into consideration when allocating server resources to the business system, otherwise it may affect the business. It has a certain impact on the smooth operation of the system. Business systems can be classified into transaction type and database type according to the scenario. Different types of business systems have different requirements for server resources. Therefore, for business systems with different characteristics, when considering server resource allocation, it is necessary to consider a certain amount of redundancy in different aspects to ensure that the business system can run smoothly. The analysis of how the characteristic data of the business system affects the allocation of servers is as follows: (1) Functional requirements Data storage: If the business system involves a large amount of data storage, the server will require a higher hard disk storage capacity. Data analysis: For business systems that require complex data analysis, the server requires powerful processor and memory resources to support fast data processing and calculation. Data Display: Although the demand for server resources for data display itself is relatively low, if real-time updates or processing of a large number of concurrent user requests are required, the server still needs to have sufficient processing power and network bandwidth. (2) Performance requirements Response time: When the business system needs to respond quickly to user requests, the server should have low latency and high concurrency processing capabilities. Concurrent processing capabilities: In high-concurrency scenarios, the server needs to be able to handle a large number of simultaneous user requests, which requires the server to have sufficient processor, memory and network bandwidth resources. Data processing speed: For business systems that need to process large amounts of data in real time, the server should have high-speed data processing capabilities, including fast read and write of the processor and memory and high-speed computer interface channels.(3) Data management requirements Data backup and recovery: If the business system needs to back up data regularly or has the ability to quickly restore data, the server will need additional storage space to store the backup data and have sufficient performance to support backup and recovery operations. Data security: For business systems involving sensitive data, the server needs to have a higher level of security and data encryption capabilities to protect the integrity and confidentiality of the data. This may require additional processor and memory resources to support encryption and decryption operations. (4) System stability requirements For business systems that need to operate continuously and stably (such as bank transaction systems, e-commerce platforms, etc.), the server needs to have a high degree of reliability and fault tolerance. This may require the use of redundant configuration, load balancing and other technologies to improve the stability and availability of the system. (5) Mobile support requirements If the business system needs to support mobile device access and operation (such as mobile office, online shopping, etc.), the server needs to have good network performance and response speed to support fast access and data transmission of mobile devices. Assuming that the server management device contains m servers, the processor configuration is p q-core r processors, and the memory is uGB, the server processor consumption of the historical business system is. , the historical business system server memory consumption is . Among them, b and c are the server processor and memory load rates of the historical business system respectively. Then determine the action space, that is, the output of the deep reinforcement learning prediction model, and the action is the predicted number of servers inferred by the policy configuration device based on the state s. The action is defined as follows: .in, The demand for processors for future business system servers. The memory demand of the server of the business system is predicted in the future. Finally, the demand for server resources of the business system in the future time period is calculated, that is, the predicted number of servers is The reward function and evaluation network are further determined. The reward function is used to evaluate the performance of the strategy configuration device to guide the training of the deep reinforcement learning prediction model. The designed reward function is defined as ,in, is the total power consumption of the server management equipment at time t, is the user’s evaluation of service quality at time t. , It is a regulating factor to make each reward value at the same order of magnitude and have the same driving force. It is used to adjust the stability of the deep reinforcement learning prediction model. It is based on the state space of the server in the server management device to express the estimate of the action value. In order to make the model learning of the reinforcement learning prediction model more stable, an independent target evaluation network is set. The evaluation network is defined as a deep neural network as the action value function of the server in the server management device. It takes the state space as input, outputs the value estimate corresponding to each action, determines the number of predicted servers, and the target evaluation network uses the same network model structure.

[0053] The training and determination of the reinforcement learning prediction model includes the following steps: Step 1, collecting historical processor demand and historical memory demand from the resource management pool device; Step 2, initializing the evaluation network; Step 3, determining the target evaluation network based on the initialized evaluation network, and initializing the target evaluation network, wherein the target evaluation network serves as a label of the evaluation network; Step 4, starting to initialize the state space and initializing the historical processor demand and historical memory demand collected by the resource management pool device; Step 5, initializing the state; Step 6, randomly selecting a random action; Step 7, determining the number of predicted servers through historical processor demand and historical memory demand prediction ; Step 8, the policy configuration device obtains the predicted number of servers; Step 9, starts to obtain the reward function and the next state from the server management device; Step 10, stores the sample in the experience pool (including the state space), and the sample contains whether the current round is over; Step 11, randomly sample a certain batch of samples from the experience pool; Step 12, calculate the target evaluation network based on the collected batch samples; Step 13, determine the minimized loss function based on the target evaluation network, and update the parameters of the evaluation network; Step 14, update the target evaluation network every certain period of time; Step 15, if the prediction of the number of servers is completed within a certain period of time, the predicted number of servers is determined, then enter the next moment and return to execute step 6; Step 16, if the reinforcement learning prediction model reaches the set number of steps per round, return to execute step 5; Step 17, if the chemical learning prediction model reaches the maximum number of rounds, the process ends and the chemical learning prediction model that has been finally trained is determined.

[0054] Specifically, after determining the current processor demand and the current memory demand, input the previous current processor demand and the current memory demand into the deep reinforcement learning prediction model for quantity prediction, and then collect the current processor demand and the current memory demand from the resource management device as the input of the deep reinforcement learning prediction model by calling the evaluation network and the target evaluation network. Then, an action is selected, and the current processor demand and the current memory demand are predicted by the deep reinforcement learning prediction model, so as to calculate and determine the initial predicted server quantity, further obtain the next state of the server from the server management device, and return to execute and select an action, and predict the current processor demand and the current memory demand by the deep reinforcement learning prediction model, and finally determine the optimal server demand quantity as the predicted server quantity.

[0055] Step 103: Perform server scheduling based on the predicted number of servers, the current number of servers in the business system, and the list data to determine the service scheduling result.

[0056] In this step, the current number of servers is the number of servers currently allocated to the business system. The service scheduling result includes a first service scheduling result and a second service scheduling result; the first service scheduling result is a scheduling result determined by reducing the number of servers, and the second service scheduling result is a scheduling result determined by increasing the number of servers. The first service scheduling result and the second service scheduling result are used to control the servers allocated to the business system.

[0057] In a specific implementation, server scheduling is performed based on the predicted number of servers, the current number of servers of the business system, and list data to determine a service scheduling result. The specific implementation method includes: if the predicted number of servers is greater than the current number of servers, a server increase strategy is formulated based on the predicted number of servers, the current number of servers, and list data, and a first service scheduling result is determined based on the server increase strategy; if the predicted number of servers is less than the current number of servers, a server reduction strategy is formulated based on the predicted number of servers, the current number of servers, and list data, and a second service scheduling result is determined based on the server reduction strategy; wherein the first service scheduling result and the second service scheduling result are used to control the servers allocated to the business system.

[0058] In this step, the server increase strategy is to increase the server devices used for business system operation in the server management device based on the predicted number of servers and the current number of servers, and the server decrease strategy is to reduce the server devices used for business system operation in the server management device based on the predicted number of servers and the current number of servers.

[0059] Specifically, when the predicted number of servers is determined, it is determined whether the predicted number of servers is equal to the current number of servers. When it is determined that the predicted number of servers is equal to the current number of servers, it is determined that it is not necessary to adjust the servers in the server device supporting the operation of the business system at this time; if the predicted number of servers is greater than the current number of servers, a server increase strategy is formulated according to the predicted number of servers, the current number of servers and the number of lists. The server increase strategy is to add new servers serving the business system from the server management device, determine the address and other information of the added new servers, and determine the first service scheduling result based on the server increase strategy; if the predicted number of servers is less than the current number of servers, a server reduction strategy is formulated according to the predicted number of servers, the current number of servers and the number of lists. The server reduction strategy is to reduce the number of servers serving the business system from the server management device, determine the address and other information of the reduced servers, and determine the second service scheduling result based on the server reduction strategy; wherein the first service scheduling result and the second service scheduling result are used to control the servers allocated to the business system. If the predicted number of servers is equal to the current number of servers, there is no need to schedule and control the servers allocated to the business system.

[0060] The advantage of this setting is that by predicting the number of servers allocated to the business system, the servers allocated to the business system can be scheduled and controlled in real time, thereby improving the utilization efficiency of the servers and reducing overall energy consumption.

[0061] The server scheduling method of a business system provided by the present invention is applied to a policy configuration device, and the policy configuration device is connected to a resource pool management device and a load balancer respectively; by receiving the resource basic data of the business system obtained by the resource pool management device, and receiving the list data obtained by the load balancer; wherein the resource basic data includes the current processor demand and the current memory demand, and the list data is the data of the server in the server management device supporting the work of the business system; the current processor demand and the current memory demand are input into the deep reinforcement learning prediction model for quantity prediction, and the predicted server quantity required by the business system is determined; wherein the predicted server quantity refers to the number of servers required to be allocated to the business system determined by prediction; according to the predicted server quantity, the current server quantity of the business system and the list data, the server scheduling is performed to determine the service scheduling result; wherein the current server quantity is the number of servers currently allocated by the business system. The technical scheme of the present invention is used to solve the defects of unstable operation of the business system and poor improvement of server utilization in the prior art, by effectively combining the resource basic data of the business system, and adopting the model prediction method to predict the real-time server quantity required by the business system, and finally scheduling the server according to the predicted server quantity, so as to improve the resource utilization of the server.

[0062] Figure 2 This is the second flow chart of the server scheduling method of the business system provided by the present invention. The server scheduling method of the business system provided by the present invention can be applicable to the scheduling of the server. The execution subject of this method can be an electronic device, for example, a resource pool management device, or a server scheduling device of the business system set in the electronic device. The server scheduling device of the business system can be implemented by software, hardware or a combination of both. Applied to the resource pool management device, the resource pool management device is connected to the policy configuration device and the load balancer respectively; Figure 2 As shown, the method includes the following steps.

[0063] Step 201: Obtain resource basic data of the business system.

[0064] In this step, the resource basic data includes the current processor demand and the current memory demand, and the list data is the data of the server in the server management device that supports the work of the business system; the resource basic data also includes the historical processor demand and the historical memory demand. The current processor demand is the processor demand required during the current operation of the business system; the current memory demand is the memory demand required during the current operation of the business system. The historical processor demand is the processor demand required when processing the same type of tasks as the business system when the same type of tasks as the business system have been processed; the historical memory demand is the memory demand required when processing the same type of tasks as the business system when the same type of tasks as the business system have been processed.

[0065] Specifically, the resource pool management device is connected to the server management device to directly obtain the current processor demand and the current memory demand required by the business system during the current operation in the server management device.

[0066] Step 202: Send resource basic data to the policy configuration device.

[0067] In this step, the policy configuration device is mainly responsible for scheduling the servers, regularly obtaining the current configuration data of each business system server and the usage data of the processor, memory, etc. from the resource pool management device, and storing them; it is also responsible for automatically statistically analyzing the configuration data and usage data of the business system servers, so as to predict the business system's demand for servers in future time periods.

[0068] Specifically, after acquiring the resource basic data, the resource pool management device sends the resource basic data to the policy configuration device.

[0069] Step 203: Receive a service scheduling result determined by the policy configuration device based on the resource basic data.

[0070] In this step, the service scheduling result includes a first service scheduling result and a second service scheduling result.

[0071] Specifically, when the resource pool management device sends the resource basic data to the policy configuration device, the policy configuration device performs quantity prediction based on the resource basic data and the deep reinforcement learning prediction model, determines the predicted number of servers required by the business system, and further performs server scheduling based on the predicted number of servers, the current number of servers of the business system and the list data, determines the service scheduling result, and receives the service scheduling result determined by the policy configuration device based on the resource basic data.

[0072] Step 204: Control the server assigned to the business system based on the service scheduling result.

[0073] Specifically, after receiving the service scheduling result, the server allocated to the business system is controlled based on the service scheduling result.

[0074] In a specific embodiment, Figure 3 The server adjustment flow chart of the business system provided by the present invention is as follows: Figure 3 As shown, when it is determined that the first service scheduling result is received, the server allocated to the business system is controlled based on the service scheduling result. The specific implementation method includes the following steps.

[0075] Step 301: Send a wake-up instruction.

[0076] In this step, the wake-up instruction is an instruction to wake up the server determined based on the first service scheduling result, and determines which servers need to be woken up.

[0077] Specifically, when the resource pool management module receives the first scheduling result sent by the policy configuration device, it determines a wake-up instruction based on the first service scheduling result, and sends the wake-up instruction to the server management device, so that the server management device wakes up the server based on the wake-up instruction; wherein, the server management device includes a server allocated to the business system.

[0078] Step 302: Receive an instruction to increase the server number.

[0079] In this step, the server instruction is to adjust the address information and identification information of the awakened server determined by the server management device after waking up the server based on the wake-up instruction. For example, it may be the name, memory amount, processor amount, etc. of the awakened server. This embodiment does not limit this.

[0080] Specifically, after the resource pool management device sends the wake-up instruction to the server management device, the server management device wakes up the server based on the wake-up instruction, determines the server increase instruction, and then feeds back the server increase instruction to the resource pool management device.

[0081] Step 303: Send an instruction to increase the server number.

[0082] Specifically, after receiving the server increase instruction sent by the server management device, the server increase instruction is sent to the load balancer, so that the load balancer adjusts the list data according to the server increase instruction, allocates servers to the business system according to the adjusted list data, and determines the increase result; wherein the increase result is used to feedback the load balancer on the increase of servers in the server management device according to the server increase instruction.

[0083] Step 304: Receive the adjustment result.

[0084] Specifically, the increase result sent by the load balancer is received, and the increase result is synchronously sent to the policy configuration device.

[0085] In a specific embodiment, Figure 4 is a flow chart of server reduction of the business system provided by the present invention, such as Figure 4 As shown, when it is determined that the second service scheduling result is received, the server allocated to the business system is controlled based on the service scheduling result. The specific implementation method includes the following steps.

[0086] Step 401: Send a server reduction instruction.

[0087] In this step, the server reduction instruction is an instruction for reducing the server determined by the server management device based on the second scheduling result.

[0088] Specifically, after receiving the second service scheduling result, the number of servers to be reduced is determined according to the second service scheduling result, a server reduction instruction is determined based on the number of servers to be reduced, and the server reduction instruction is sent to the load balancer.

[0089] Step 402: Receive the reduction result.

[0090] In this step, the reduction result is used to feed back the load balancer the reduction status of the servers in the server management device according to the server reduction instruction.

[0091] Specifically, after sending the server reduction instruction to the load balancer, the load balancer allocates servers to the business system according to the server reduction instruction, and determines the reduction result of the servers in the server management device according to the server reduction instruction.

[0092] Step 403: Send the reduction result.

[0093] Specifically, the reduction result sent by the load balancer is received, and the reduction result is synchronously sent to the policy configuration device, so that the policy configuration device determines the sleep instruction based on the reduction result.

[0094] Step 404: Receive a sleep instruction.

[0095] In this step, after the sleep instruction synchronizes the reduction result to the policy configuration device, the policy configuration device determines the instruction to schedule the server in the server management device based on the reduction result.

[0096] Step 405: Send a sleep instruction.

[0097] Specifically, the sleep instruction is sent to the server management device, so that the server management device puts the server to sleep based on the sleep instruction.

[0098] The advantage of this setting is that it can timely adjust the configuration of the server for the business system, reasonably allocate it, reduce the energy consumption of the server, reduce manual operations, and improve the efficiency of server scheduling.

[0099] The present invention provides a server scheduling method for a business system, which is applied to a resource pool management device, wherein the resource pool management device is connected to a policy configuration device and a load balancer respectively; by obtaining resource basic data of the business system; sending the resource basic data to the policy configuration device; receiving a service scheduling result determined by the policy configuration device based on the resource basic data; and controlling the server allocated to the business system based on the service scheduling result. The technical solution of the present invention is used to solve the defects of unstable operation of the business system and poor improvement of server utilization in the prior art, by effectively combining the resource basic data of the business system, receiving the service scheduling result determined by the policy configuration device based on the resource basic data, and finally controlling the server allocated to the business system based on the service scheduling result, thereby improving the resource utilization of the server.

[0100] Figure 5 Schematic diagram of the server scheduling system of the business system provided by the present invention, such as Figure 3 As shown, the server scheduling system of the business system includes: a policy configuration device 51, a resource pool management device 52, a load balancer 53 and a server management device 54; the policy configuration device is connected to the resource pool management device and the load balancer respectively, and the resource pool management device is connected to the server management device and the load balancer respectively; the specific implementation steps include the following.

[0101] Step 501: Obtain resource basic data from a server management device.

[0102] In this step, the resource pool management device is responsible for managing all device hardware under its jurisdiction, including servers, monitoring the operating status of all governed devices such as servers, and collecting data such as server configuration data, server processors, and server memory usage.

[0103] Specifically, the resource pool management device periodically obtains the current processor demand and current memory demand of the server that the current server management device manages the service of the business system from the server management device. It also synchronously obtains the historical processor demand and historical memory demand. The historical processor demand is the processor demand required when processing tasks of the same type as the tasks of the business system; the historical memory demand is the memory demand required when processing tasks of the same type as the tasks of the business system.

[0104] Step 502: Send the resource basic data to the policy configuration device.

[0105] Specifically, after the resource pool management device obtains the resource basic data, the policy configuration device is used to periodically obtain the resource basic data from the resource pool management device.

[0106] Step 503: Determine the predicted number of servers according to the resource basic data.

[0107] Specifically, resource basic data is obtained, and the deep reinforcement learning prediction model is trained through the historical processor demand and historical memory demand in the resource basic data. After the training is completed, the previous current processor demand and the current memory demand are input into the trained deep reinforcement learning prediction model for quantity prediction, and the evaluation network and the target evaluation network are called, and then the current processor demand and the current memory demand are collected from the resource management device as inputs of the deep reinforcement learning prediction model, an action is selected, and the current processor demand and the current memory demand are predicted by the deep reinforcement learning prediction model, so as to calculate and determine the initial predicted server quantity, and further obtain the next state of the server from the server management device, and return to execute and select an action, and predict the current processor demand and the current memory demand by the deep reinforcement learning prediction model, and finally determine the optimal server demand quantity as the predicted server quantity.

[0108] Step 504: Receive the list data sent by the load balancer.

[0109] In this step, the list data is the data of the servers in the server management device supporting the work of the business system, specifically including the server name, processor capacity, memory capacity, etc., which is not limited in this embodiment.

[0110] Specifically, the load balancer is responsible for list management of the servers in the server management device, thereby determining the list data, and then sending the determined list data to the policy configuration device.

[0111] Step 505: Determine the service scheduling result according to the list data and the predicted number of servers.

[0112] In this step, the service scheduling results include a first service scheduling result and a second service scheduling result; the first service scheduling result is a scheduling result determined by reducing the server, and the second service scheduling result is a scheduling result determined by increasing the server. The first service scheduling result and the second service scheduling result are used to control the servers allocated to the business system.

[0113] Specifically, the policy configuration device determines the service scheduling result based on the predicted number of servers, the list data, and the current number of servers. When the predicted number of servers is determined, it is determined whether the predicted number of servers is equal to the current number of servers. When it is determined that the predicted number of servers is equal to the current number of servers, it is determined that there is no need to adjust the servers in the server device supporting the operation of the business system at this time; if the predicted number of servers is greater than the current number of servers, a server increase strategy is formulated based on the predicted number of servers, the current number of servers, and the number of lists. The server increase strategy is to add new servers to serve the business system from the server management device, determine the address and other information of the new servers to be added, and determine the first service scheduling result based on the server increase strategy; if the predicted number of servers is less than the current number of servers, a server reduction strategy is formulated based on the predicted number of servers, the current number of servers, and the number of lists. The server reduction strategy is to reduce the number of servers serving the business system from the server management device, determine the address and other information of the reduced servers, and determine the second service scheduling result based on the server reduction strategy.

[0114] Step 506: Send the service scheduling result to the resource pool management device.

[0115] Step 507: Determine a wake-up instruction according to the first service scheduling result.

[0116] In this step, the wake-up instruction is an instruction to wake up the server determined based on the first service scheduling result, and determines which servers need to be woken up.

[0117] Step 508: Send a wake-up instruction to the server management device.

[0118] In this step, the server management device includes servers allocated to the business system.

[0119] Specifically, after receiving the first scheduling result sent by the policy configuration device, the resource pool management module determines a wake-up instruction based on the first service scheduling result, and sends the wake-up instruction to the server management device, so that the server management device wakes up the server based on the wake-up instruction.

[0120] Step 509: Receive the server increase instruction sent by the server management device.

[0121] In this step, the server instruction is to adjust the address information and identification information of the awakened server determined by the server management device after waking up the server based on the wake-up instruction. For example, it may be the name, memory amount, processor amount, etc. of the awakened server. This embodiment does not limit this.

[0122] Specifically, after the resource pool management device sends the wake-up instruction to the server management device, the server management device wakes up the server based on the wake-up instruction, determines the server increase instruction, and then feeds back the server increase instruction to the resource pool management device.

[0123] Step 510: Send an instruction to increase the number of servers to the load balancer.

[0124] Specifically, after receiving the server increase instruction sent by the server management device, the server increase instruction is sent to the load balancer, so that the load balancer adjusts the list data according to the server increase instruction, allocates servers to the business system according to the adjusted list data, and determines the increase result; wherein the increase result is used to feedback the load balancer on the increase of servers in the server management device according to the server increase instruction.

[0125] Step 511: Receive the adjustment result sent by the load balancer.

[0126] Specifically, the increase result sent by the load balancer is received, and the increase result is synchronously sent to the policy configuration device.

[0127] Step 512: Send a server reduction instruction to the load balancer.

[0128] In this step, the server reduction instruction is an instruction for reducing the server determined by the server management device based on the second scheduling result.

[0129] Specifically, after receiving the second service scheduling result, the number of servers to be reduced is determined according to the second service scheduling result, a server reduction instruction is determined based on the number of servers to be reduced, and the server reduction instruction is sent to the load balancer.

[0130] Step 513: Receive the reduction result sent by the load balancer.

[0131] In this step, the reduction result is used to feed back the load balancer the reduction status of the servers in the server management device according to the server reduction instruction.

[0132] Specifically, after sending the server reduction instruction to the load balancer, the load balancer allocates servers to the business system according to the server reduction instruction, and determines the reduction result of the servers in the server management device according to the server reduction instruction.

[0133] Step 514: Send the reduction result to the policy configuration device.

[0134] Specifically, the reduction result sent by the load balancer is received, and the reduction result is synchronously sent to the policy configuration device, so that the policy configuration device determines the sleep instruction based on the reduction result.

[0135] Step 515: Receive the sleep instruction sent by the policy configuration device.

[0136] In this step, after the sleep instruction synchronizes the reduction result to the policy configuration device, the policy configuration device determines the instruction to schedule the server in the server management device based on the reduction result.

[0137] Step 516: Send a sleep instruction to the server management device.

[0138] Specifically, the sleep instruction is sent to the server management device, so that the server management device puts the server to sleep based on the sleep instruction.

[0139] In step 506, after determining the service scheduling result, when it is determined that the service scheduling result is the first service scheduling result, continue to execute steps 507-511; when it is determined that the service scheduling result is the second service scheduling result, continue to execute steps 512-516.

[0140] The present invention provides a server scheduling system for a business system, wherein a resource pool management device obtains basic resource data from a server management device; the resource pool management device sends the basic resource data to a policy configuration device; the policy configuration device determines a predicted number of servers based on the basic resource data; the policy configuration device receives list data sent by a load balancer; the policy configuration device determines a service scheduling result based on the list data and the predicted number of servers; the policy configuration device sends the service scheduling result to the resource pool management device; the resource pool management device determines a wake-up instruction based on a first service scheduling result; the resource pool management device sends a wake-up instruction to the server management device; the resource pool management device receives a server increase instruction sent by the server management device; the resource pool management device sends a server increase instruction to the load balancer; the resource pool management device receives the increase result sent by the load balancer; the resource pool management device sends a server decrease instruction to the load balancer; the resource pool management device receives the decrease result sent by the load balancer; the resource pool management device sends the decrease result to the policy configuration device; the resource pool management device receives a sleep instruction sent by the policy configuration device; and the resource pool management device sends a sleep instruction to the server management device. The technical solution of the present invention is used to solve the defects of unstable business system operation and poor server utilization in the prior art. By effectively combining the resource basic data of the business system, the policy configuration device receives the service scheduling results determined based on the resource basic data, and finally controls the servers allocated to the business system based on the service scheduling results, thereby improving the resource utilization of the server.

[0141] The server scheduling device of the business system provided by the present invention is described below. The server scheduling device of the business system described below and the server scheduling device of the business system described above can be referred to each other.

[0142] Figure 6 It is one of the structural diagrams of the server scheduling device of the business system provided by the present invention, which is applied to the policy configuration device, and the policy configuration device is connected to the resource pool management device and the load balancer respectively; Figure 6 As shown, the server scheduling device of the business system includes: a data receiving module 601, a quantity determination module 602 and a result determination module 603.

[0143] The data receiving module 601 is used to receive the resource basic data of the business system obtained by the resource pool management device, and receive the list data obtained by the load balancer; wherein the resource basic data includes the current processor demand and the current memory demand, and the list data is the data of the server in the server management device that supports the operation of the business system.

[0144] The quantity determination module 602 is used to input the current processor demand and the current memory demand into the deep reinforcement learning prediction model for quantity prediction, and determine the predicted number of servers required by the business system; wherein the predicted number of servers refers to the number of servers required to be allocated to the business system determined by the prediction.

[0145] The result determination module 603 is used to perform server scheduling according to the predicted server quantity, the current server quantity of the business system and the list data, and determine the service scheduling result; wherein the current server quantity is the number of servers currently allocated to the business system.

[0146] In an example embodiment, the resource base data also includes historical processor requirements and historical memory requirements; the deep reinforcement learning prediction model is a model obtained by model training based on historical processor requirements, historical memory requirements, a reward function, and an evaluation network; wherein the reward function is used to guide the training of the deep reinforcement learning prediction model, and the evaluation network is used to adjust the stability of the deep reinforcement learning prediction model.

[0147] In an exemplary embodiment, the service scheduling result includes a first service scheduling result and a second service scheduling result.

[0148] In an example embodiment, the result determination module 603 is specifically used to: if the predicted number of servers is greater than the current number of servers, then formulate a server increase strategy based on the predicted number of servers, the current number of servers and the number of lists, and determine the first service scheduling result based on the server increase strategy; if the predicted number of servers is less than the current number of servers, then formulate a server reduction strategy based on the predicted number of servers, the current number of servers and the number of lists, and determine the second service scheduling result based on the server reduction strategy; wherein the first service scheduling result and the second service scheduling result are used to control the servers allocated to the business system.

[0149] The device of this embodiment can be used to execute the method of any embodiment in the server scheduling method side embodiment of the business system. Its specific implementation process and technical effects are similar to those in the server scheduling method side embodiment of the business system. For details, please refer to the detailed description in the server scheduling method side embodiment of the business system, which will not be repeated here.

[0150] The server scheduling device of the business system provided by the present invention is described below. The server scheduling device of the business system described below and the server scheduling device of the business system described above can be referred to each other.

[0151] Figure 7 This is a second structural diagram of the server scheduling device of the business system provided by the present invention, which is applied to the resource pool management device, and the resource pool management device is connected to the policy configuration device and the load balancer respectively; Figure 7 As shown, the server scheduling device of the business system includes: a data acquisition module 701, a data sending module 702, a result receiving module 703 and a result control module 704.

[0152] The data acquisition module 701 is used to acquire the resource basic data of the business system.

[0153] The data sending module 702 is used to send resource basic data to the policy configuration device.

[0154] The result receiving module 703 is used to receive the service scheduling result determined by the policy configuration device based on the resource basic data.

[0155] The result control module 704 is used to allocate servers to the business system based on the service scheduling result.

[0156] In an exemplary embodiment, the service scheduling result includes a first service scheduling result and a second service scheduling result.

[0157] In an exemplary embodiment, when it is determined that the first service scheduling result is received, the result control module 704 is specifically used to: send a wake-up instruction to the server management device based on the first service scheduling result, so that the server management device wakes up the server based on the wake-up instruction; wherein the server management device includes servers allocated to the business system; receive the server increase instruction sent by the server management device; send the server increase instruction to the load balancer, so that the load balancer allocates servers to the business system according to the server increase instruction, and determines the increase result; wherein the increase result is used to feedback the load balancer on the increase of servers in the server management device according to the server increase instruction; receive the increase result sent by the load balancer, and synchronously send the increase result to the policy configuration device.

[0158] In an exemplary embodiment, when it is determined that the second service scheduling result is received, the result control module 704 is specifically used to: send a server reduction instruction to the load balancer based on the second service scheduling result, so that the load balancer allocates servers to the business system according to the server reduction instruction, and determines the reduction result; wherein the reduction result is used to feedback the load balancer on the reduction of servers in the server management device according to the server reduction instruction; receive the reduction result sent by the load balancer, and synchronously send the reduction result to the policy configuration device; receive the sleep instruction determined by the policy configuration device based on the reduction result; send the sleep instruction to the server management device, so that the server management device sleeps the server based on the sleep instruction.

[0159] The device of this embodiment can be used to execute the method of any embodiment in the server scheduling method side embodiment of the business system. Its specific implementation process and technical effects are similar to those in the server scheduling method side embodiment of the business system. For details, please refer to the detailed description in the server scheduling method side embodiment of the business system, which will not be repeated here.

[0160] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor (processor) 810, a communication interface (Communications Interface) 820, a memory (memory) 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call the logic instructions in the memory 830 to execute the server scheduling method of the business system, which includes: applying to a policy configuration device, the policy configuration device is connected to the resource pool management device and the load balancer respectively; receiving the resource basic data of the business system obtained by the resource pool management device, and receiving the list data obtained by the load balancer; wherein the resource basic data includes the current processor demand and the current memory demand, and the list data is the data of the server in the server management device that supports the work of the business system; inputting the current processor demand and the current memory demand into the deep reinforcement learning prediction model for quantity prediction, and determining the predicted number of servers required by the business system; wherein the predicted number of servers refers to the number of servers required to be allocated to the business system determined by prediction; performing server scheduling according to the predicted number of servers, the current number of servers of the business system and the list data, and determining the service scheduling result; wherein the current number of servers is the number of servers currently allocated to the business system; or, applying to a resource pool management device, the resource pool management device is connected to the policy configuration device and the load balancer respectively; obtaining the resource basic data of the business system; sending the resource basic data to the policy configuration device; receiving the service scheduling result determined by the policy configuration device based on the resource basic data; and controlling the server allocated to the business system based on the service scheduling result.

[0161] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0162] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the server scheduling method of the business system provided by the above methods. The method includes: applying to a policy configuration device, the policy configuration device is connected to a resource pool management device and a load balancer respectively; receiving resource basic data of the business system obtained by the resource pool management device, and receiving list data obtained by the load balancer; wherein the resource basic data includes the current processor demand and the current memory demand, and the list data is the data of the server in the server management device that supports the work of the business system; inputting the current processor demand and the current memory demand into The deep reinforcement learning prediction model performs quantity prediction to determine the predicted number of servers required by the business system; wherein the predicted number of servers refers to the number of servers required to be allocated to the business system determined by the prediction; server scheduling is performed according to the predicted number of servers, the current number of servers of the business system and the list data to determine the service scheduling result; wherein the current number of servers is the number of servers currently allocated to the business system; or, applied to a resource pool management device, the resource pool management device is connected to a policy configuration device and a load balancer respectively; resource basic data of the business system is obtained; the resource basic data is sent to the policy configuration device; the service scheduling result determined by the policy configuration device based on the resource basic data is received; and the servers allocated to the business system are controlled based on the service scheduling result.

[0163] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a server scheduling method for a business system provided by the above-mentioned methods, the method comprising: applying to a policy configuration device, the policy configuration device being connected to a resource pool management device and a load balancer respectively; receiving resource basic data of the business system acquired by the resource pool management device, and receiving list data acquired by the load balancer; wherein the resource basic data includes current processor demand and current memory demand, and the list data is data of servers in a server management device supporting the operation of the business system; inputting the current processor demand and the current memory demand into a deep reinforcement learning prediction model for Quantity prediction, determining the predicted number of servers required by the business system; wherein the predicted number of servers refers to the number of servers required to be allocated to the business system determined by prediction; performing server scheduling according to the predicted number of servers, the current number of servers of the business system and list data, and determining the service scheduling result; wherein the current number of servers is the number of servers currently allocated to the business system; or, applying to a resource pool management device, the resource pool management device is connected to a policy configuration device and a load balancer respectively; obtaining resource basic data of the business system; sending the resource basic data to the policy configuration device; receiving the service scheduling result determined by the policy configuration device based on the resource basic data; and controlling the servers allocated to the business system based on the service scheduling result.

[0164] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0165] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A server scheduling method for a business system, It is characterized in that Applied to a policy configuration device, the policy configuration device is connected to a resource pool management device and a load balancer respectively; comprising: Receive resource basic data of the business system acquired by the resource pool management device, and receive list data acquired by the load balancer; wherein the resource basic data includes current processor demand and current memory demand, and the list data is data of the server in the server management device supporting the work of the business system; Input the current processor demand and the current memory demand into the deep reinforcement learning prediction model for quantity prediction, and determine the predicted number of servers required by the business system; wherein the predicted number of servers refers to the number of servers required to be allocated to the business system determined by prediction; Server scheduling is performed according to the predicted number of servers, the current number of servers of the business system and the list data to determine a service scheduling result; wherein the current number of servers is the number of servers currently allocated to the business system.

2. The server scheduling method of the business system according to claim 1, It is characterized in that The resource base data also includes historical processor demand and historical memory demand; the deep reinforcement learning prediction model is a model obtained by model training based on the historical processor demand, the historical memory demand, a reward function and an evaluation network; wherein the reward function is used to guide the training of the deep reinforcement learning prediction model, and the evaluation network is used to adjust the stability of the deep reinforcement learning prediction model.

3. The server scheduling method of the business system according to claim 1, It is characterized in that The service scheduling result includes a first service scheduling result and a second service scheduling result; performing server scheduling according to the predicted number of servers, the current number of servers of the business system and the list data to determine the service scheduling result includes: If the predicted number of servers is greater than the current number of servers, formulating a server increase strategy according to the predicted number of servers, the current number of servers and the list data, and determining the first service scheduling result based on the server increase strategy; If the predicted number of servers is less than the current number of servers, a server reduction strategy is formulated according to the predicted number of servers, the current number of servers and the list data, and the second service scheduling result is determined based on the server reduction strategy; wherein the first service scheduling result and the second service scheduling result are used to control the servers allocated to the business system.

4. A server scheduling method for a business system, It is characterized in that Applied to a resource pool management device, the resource pool management device is connected to a policy configuration device and a load balancer respectively; comprising: Obtain resource-based data from business systems; sending the resource base data to the policy configuration device; Receiving a service scheduling result determined by the policy configuration device based on the resource basic data; The server allocated to the business system is controlled based on the service scheduling result.

5. The server scheduling method of the business system according to claim 4, It is characterized in that The service scheduling result includes a first service scheduling result and a second service scheduling result; When it is determined that the first service scheduling result is received, controlling the server allocated to the business system based on the service scheduling result includes: Sending a wake-up instruction to a server management device based on the first service scheduling result, so that the server management device wakes up the server based on the wake-up instruction; wherein the server management device includes a server allocated to the business system; Receiving a server increase instruction sent by the server management device; The server increase instruction is sent to the load balancer, so that the load balancer allocates the server to the business system according to the server increase instruction and determines the increase result; wherein the increase result is used to feedback the load balancer on the increase of the server in the server management device according to the server increase instruction; The adjustment result sent by the load balancer is received, and the adjustment result is synchronously sent to the policy configuration device.

6. The server scheduling method of the business system according to claim 5, It is characterized in that When it is determined that the second service scheduling result is received, controlling the server allocated to the business system based on the service scheduling result includes: Based on the second service scheduling result, a server reduction instruction is sent to the load balancer, so that the load balancer allocates the servers to the business system according to the server reduction instruction and determines the reduction result; wherein the reduction result is used to feedback the load balancer on the reduction of the servers in the server management device according to the server reduction instruction; receiving the reduction result sent by the load balancer, and synchronously sending the reduction result to the policy configuration device; receiving a sleep instruction determined by the policy configuration device based on the reduction result; The sleep instruction is sent to the server management device, so that the server management device puts the server into sleep mode based on the sleep instruction.

7. A server scheduling device for a business system, It is characterized in that Applicable to policy configuration devices, including: A data receiving module, used to receive resource basic data of the business system obtained by the resource pool management device, and receive list data obtained by the load balancer; wherein the resource basic data includes the current processor demand and the current memory demand, and the list data is the data of the server in the server management device supporting the work of the business system; A quantity determination module, used for inputting the current processor demand and the current memory demand into a deep reinforcement learning prediction model for quantity prediction, and determining the predicted number of servers required by the business system; wherein the predicted number of servers refers to the number of servers required to be allocated to the business system determined by prediction; The result determination module is used to perform server scheduling according to the predicted number of servers, the current number of servers of the business system and the list data, and determine the service scheduling result; wherein the current number of servers is the number of servers currently allocated to the business system.

8. A server scheduling device for a business system, It is characterized in that Applicable to resource pool management equipment, including: Data acquisition module, used to obtain resource-based data of business systems; A data sending module, used for sending the resource basic data to the policy configuration device; A result receiving module, used for receiving a service scheduling result determined by the policy configuration device based on the resource basic data; A result control module is used to allocate the server to the business system based on the service scheduling result.

9. A server scheduling system for a business system, It is characterized in that include: Applied to the policy configuration device as described in any one of claims 1-3, and to the resource pool management device, load balancer and server management device as described in any one of claims 4-6; the policy configuration device is connected to the resource pool management device and the load balancer respectively, and the resource pool management device is connected to the server management device and the load balancer respectively.

10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the server scheduling method for the business system described in any one of claims 1 to 3 are implemented, or the steps of the server scheduling method for the business system described in any one of claims 4 to 6 are implemented.

Citation Information

Patent Citations

  • Deep learning task resource optimal configuration method and system based on service quality demand

    CN113157413A

  • Data center service load scheduling method and system based on deep reinforcement learning

    CN114116183A

  • Demand resource prediction method and device, equipment and storage medium

    CN114416280A

  • Resource scheduling method and device

    CN115208893A

  • Cloud service management method and system based on big data

    CN117768469A