Data center task hybrid deployment method and system based on dynamic resource sharing
Through the hybrid deployment method of data center tasks with dynamic resource sharing, time slot division and task sequencing are used to optimize resource allocation, which solves the problems of low resource utilization and online task QoS violation in the existing technology, and achieves higher resource utilization and Lower energy consumption.
Patent Information
- Application Number
- CN202110778960.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-09
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-07-09
AI Technical Summary
Existing hybrid deployment methods of data center tasks cannot maximize resource utilization, resulting in increased energy consumption and quality of service (QoS) violations for online tasks.
Using a method based on dynamic resource sharing, the timeline is divided into time slots, online tasks and offline tasks are sorted according to the arrival time of task requests, the resource requirements of unfinished tasks are recalculated, and the QoS of online tasks is temporarily Allocate remaining resources to offline tasks to maximize resource utilization.
On the basis of ensuring the QoS of online tasks, the resource utilization rate and task carrying capacity of the data center are improved, the number of servers and energy consumption are reduced, and the interference between online tasks and offline tasks is reduced.
Smart Images

Figure CN113626162B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of cloud computing resource management, and in particular relates to a data center task hybrid deployment method and system based on dynamic resource sharing. Background Art
[0002] Currently: With the development of cloud computing, more and more applications are being deployed in data centers. Cloud computing uses virtualization technology to model the physical resources of a data center into a resource pool, allowing multiple virtual machines to run on a single server. Cloud service providers provide users with required resources in the form of virtual machines, allocating resources to virtual machines based on the actual resource requirements of user tasks. Multiple studies have shown that the average resource utilization of most data centers is low. For example, at Google, Amazon, and Alibaba, resource utilization is typically below 40%.
[0003] There are two typical types of services in cloud computing environments: online and offline. Online tasks are typically user-oriented, characterized by long runtimes, latency sensitivity, and time-varying loads, such as web browsing, online payments, and social media. Offline tasks, such as data analysis, can typically tolerate larger runtime delays and only need to ensure they complete within a deadline. A major reason for low data center resource utilization is the large number of latency-sensitive online tasks. Due to user access patterns and unpredictable peaks, the load of these tasks varies greatly, and data centers often allocate more resources to them than they actually consume. Before the load peak arrives, a large amount of resources are idle.
[0004] One effective approach to improving resource utilization is to launch latency-tolerant offline tasks on servers deployed with online tasks, allowing offline tasks to utilize resources underutilized by online workloads. Among existing approaches to mixed deployment of tasks in data centers, a more conservative approach is to deploy a group of "safe" (non-interfering) tasks together. The cluster scheduler predicts the interference of a given application mix and adjusts allocations at runtime, or prohibits resource sharing when the predicted latency violates Quality of Service (QoS). While this approach protects the QoS of online tasks, it is overly conservative. Another, somewhat risky, strategy is to measure the server performance level (e.g., response time) of online tasks in real time. When the measured value exceeds the target, the system attempts to reduce a resource (e.g., number of cores, memory capacity) and allocate the remaining resources to offline tasks. This strategy can lead to more QoS violations because measurements are always delayed, and it is too late to make adjustments once the measured server performance level falls below the QoS requirement.
[0005] Through the above analysis, the problems and defects of the existing technology are as follows:
[0006] (1) Existing technologies deploy “safe” tasks together to ensure that there is no performance interference between tasks. However, this limits the number of tasks that can be mixed and deployed, making it impossible to maximize the resource utilization of the data center. This leads to the problem of increased energy consumption due to the increase in the number of servers that are turned on.
[0007] (2) Existing technologies measure the server performance level of online tasks in real time, ignoring the strict requirements of online tasks on response time and the delay problem caused by real-time measurement, resulting in more online tasks frequently violating user service quality requirements.
[0008] The difficulty of solving the above problems and defects is:
[0009] How to reduce the interference caused by resource competition between tasks sharing resources while maximizing the resource utilization of the data center.
[0010] The significance of solving the above problems and defects is:
[0011] By solving the above problems, we can ensure the QoS of online tasks while making full use of the temporarily available resources brought by the time-varying characteristics of online tasks, thereby improving the task carrying capacity of the data center. Summary of the Invention
[0012] In response to the problems existing in the prior art, the present invention provides a data center task hybrid deployment method and system based on dynamic resource sharing.
[0013] The present invention is implemented as follows: a data center task hybrid deployment method based on dynamic resource sharing, the data center task hybrid deployment method based on dynamic resource sharing comprising:
[0014] Based on the arrival time of task requests, the timeline is divided into multiple time slots. Task requests arriving in this time slot are obtained, including online tasks and offline tasks. The Quality of Service (QoS) requirements of the tasks are recorded to characterize user resource requirements.
[0015] First, recalculate the resource requirements of offline tasks that were not completed in the previous time slot and deploy the tasks. Then, sort the newly arrived task requests in the order of online first and offline last. Online tasks are sorted by arrival time, and offline tasks are sorted in ascending order of deadlines, providing a scheduling order rule.
[0016] Determine the peak resource demand of the newly arrived online task and the reserved resource threshold of the current time slot, and calculate the amount of resources required for the newly arrived offline task to complete within a single time slot, thereby minimizing interference between tasks sharing resources;
[0017] Based on the remaining resources of the current physical machine set and the different resource requirements of the tasks, appropriate servers are selected and deployed in order. Before the next scheduling time arrives, the remaining resources on each server are temporarily allocated proportionally to the offline tasks on that server. In the next round of scheduling, the temporarily allocated resources will be recycled and regarded as available idle resources, thereby maximizing resource utilization.
[0018] Furthermore, the data center task hybrid deployment method based on dynamic resource sharing specifically includes:
[0019] (1) Obtain task requests arriving within this time window, including online tasks T on ={α1,α2,...} and offline task T off ={β1,β2,...}, records the QoS requirements of the task;
[0020] (2) Check whether there are any unfinished offline tasks in the previous time slot. If so, process the unfinished offline tasks in the previous time slot according to the initial deployment order, recalculate the resource requirements of the unfinished offline tasks, and redeploy these unfinished tasks based on the remaining resources of the current physical machine set; if not, go to (3);
[0021] (3) Sort newly arrived task requests in the order of online first and offline later, where online tasks are sorted in the order of arrival time, and offline tasks are sorted in ascending order of task deadlines;
[0022] (4) Determine the peak resource demand of the newly arrived online task and the reserved resource threshold of the current time slot, place the tasks in sequence and update the remaining available resources of the physical machine, calculate the amount of resources required to complete the newly arrived offline task in a single time slot, place the tasks in sequence and update the remaining available resources of the physical machine;
[0023] (5) Before the next scheduling time arrives, the remaining resources on each server are temporarily allocated to the offline tasks on the server in proportion. In the next round of scheduling, the temporarily allocated resources will be recycled and regarded as available idle resources.
[0024] Furthermore, the QoS of the task is recorded in the method for hybrid deployment of data center tasks based on dynamic resource sharing, specifically including:
[0025] (1) For the i-th online task α i , record the task resource requirements and calculate their mean and variance, and convert the online task α i Resource requirement R in the tth (1≤t≤T) time slot d,i (t) is modeled as having a mean of μ i (t), with standard deviation σi Gaussian distribution of (t), extracting online task α i Qos demand, denoted as ε i , that is, the proportion of task requests with a response delay of no more than 500ms does not exceed ε i , which can be expressed as P(R d,i (t)≥R a,i (t))<ε i , where P(·) represents the probability, R a,i (t) represents the resource occupancy threshold that meets the QoS target of the online task in the tth time slot: R α,i (t)≥Q -1 (ε)*σ i (t)+μ i (t).
[0026] (2) For the jth offline task β j , record its performance model β j ={a j ,d j ,l j}, where a j ,d j ,l j They represent the task arrival time, task deadline, and task length respectively. Offline tasks must be completed before their deadlines. Offline task completion time ft j =st j +et j , among which, et j is the execution time of task j, et j =l j / R β,j ;st j For task β i The execution start time is the start time of the task deployment strategy execution time slot.
[0027] Furthermore, the resource allocation method, for the i-th online task α i , the amount of resources required to be allocated is the online task α i Peak resource demand The difference between the server capacity and the allocated resources is called the empty resource (ER). The empty resource of server k in the tth time slot is denoted as ER k (t); When the idle resources of server k meet When , it means that server k satisfies the online task α i The resource requirements of the online task α i Deployed on server k, the idle resources of server k in time slot t are updated to
[0028] Furthermore, the resource allocation method, for the jth offline task β j , whose resource requirement is offline task β j The amount of resources R required to complete the task in the current time slot β,j =l j / (min(t p ,d j -st j ), the difference between the amount of resources allocated to the online task on the server and the online task resource occupancy threshold is called the remaining available resources RAV, and the remaining available resources of server k in the tth time slot are recorded as RAV k (t). When server k has available resources RAV k (t) Satisfy RAV k (t)>R β,j When , it means that server k satisfies the offline task β j The resource requirements of offline tasks can be j Deployed on server k, for offline task β j From RAV k (t), the remaining available resources of server k in time slot t are updated to RAV k (t) = RAV k (t)-R β,j Otherwise, when server k has available resources RAV k (t) Does not meet RAV k (t)>R β,j , but satisfies (RAV k (t)+ER k (t))>R β,j When server k also satisfies the offline task β j The resource requirements of offline tasks can be j Deployed on server k, it is necessary to set up offline tasks β j From RAV k (t) and ER k (t), the remaining available resources of server k in time slot t are updated to RAV k (t) = 0, the idle resources are updated to ER k (t) = ER k (t)+RAV k (t)-R β,j ;
[0029] Furthermore, the resource allocation method first deploys the online task. The deployment of the online task uses the Fist-Fit strategy, which checks all active servers, finds the first server that meets the task resource requirements, deploys the task on the server, and allocates the required amount of resources to it. If all the enabled servers cannot meet the resource requirements, a new server deployment task is started.
[0030] Furthermore, the resource allocation method deploys offline tasks in sequence according to the sorting result in (2) after all newly arrived online tasks are deployed; checks all active servers, finds the first server that meets the resource requirements of the task, deploys the task on the server, and allocates resources that meet the resource requirements to the task; when all the enabled servers cannot meet the resource requirements of the task, determines whether the task deadline is less than or equal to the end time of the current time slot; if the task deadline is less than or equal to the end time of the current time slot, opens a new server for the task; if the task deadline is greater than the end time of the current time slot, places the task on the server with the most remaining resources and allocates the remaining resources on the server to the task; at the beginning of the next time slot, recalculates its resource requirements and deploys it;
[0031] In the resource allocation method, the remaining resources refer to RAV(t)+ER(t).
[0032] Another object of the present invention is to provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0033] According to the arrival time of the task request, the time axis is divided into multiple time slots. The task requests arriving in this time slot are obtained, including online tasks and offline tasks, and the Quality of Service (QoS) requirements of the tasks are recorded.
[0034] First, recalculate the resource requirements of offline tasks that were not completed in the previous time slot and deploy the tasks; then sort the newly arrived task requests in the order of online first and offline later, where online tasks are sorted by arrival time, and offline tasks are sorted in ascending order of their deadlines;
[0035] Determine the peak resource demand of the newly arrived online task and the reserved resource threshold of the current time slot, and calculate the amount of resources required for the newly arrived offline task to complete within a single time slot;
[0036] Based on the remaining resources of the current physical machine set and the different resource requirements of the tasks, appropriate servers are selected for the tasks in order and the tasks are deployed. Before the next scheduling time arrives, the remaining resources on each server are temporarily allocated to the offline tasks on that server in proportion. In the next round of scheduling, the temporarily allocated resources will be recycled and regarded as available idle resources.
[0037] Another object of the present invention is to provide a cloud computing resource management terminal, which is used to implement the data center task hybrid deployment method based on dynamic resource sharing.
[0038] Another object of the present invention is to provide a data center task hybrid deployment system for implementing the data center task hybrid deployment method based on dynamic resource sharing, the data center task hybrid deployment system comprising:
[0039] The task request acquisition module is used to divide the time axis into multiple time slots according to the arrival time of the task request, obtain the task requests arriving in this time slot, including online tasks and offline tasks, and record the Quality of Service (QoS) requirements of the tasks;
[0040] The task request sorting module is used to sort newly arrived task requests in the order of online first and offline later. Online tasks are sorted in the order of arrival time, and offline tasks are sorted in ascending order of task deadlines.
[0041] The resource demand and threshold determination module is used to determine the peak resource demand of the newly arrived online task and the reserved resource threshold of the current time slot, and calculate the amount of resources required for the newly arrived offline task to complete in a single time slot;
[0042] The decision-making module is used to allocate resources and deploy tasks based on the remaining resources of the current physical machine set. First, for offline tasks that were not completed in the previous time slot, the resource requirements are recalculated and tasks are deployed; then, newly arrived tasks are deployed, and based on the different resource requirements of the tasks, appropriate servers are selected for the tasks and tasks are deployed; before the next scheduling time arrives, the remaining resources on each server are temporarily allocated in proportion to the offline tasks on that server. In the next round of scheduling, the temporarily allocated resources will be recycled and regarded as available idle resources.
[0043] Combined with all the above-mentioned technical solutions, the advantages and positive effects of the present invention are as follows: the mixed task deployment adopted by the present invention can, on the basis of ensuring the QoS requirements of user tasks, further optimize the resource allocation scheme by dividing time slots and formulating different resource demand calculation schemes for different tasks, thereby obtaining higher resource utilization. The present invention is based on a data center task mixed deployment method for dynamic resource sharing, which utilizes the characteristic that the resource requirements of online tasks in different time slots can be modeled as a Gaussian distribution. According to the different QoS requirements of online tasks and offline tasks, the resource allocation amount is calculated for online tasks and offline tasks in time slots to achieve dynamic resource sharing, so that the two different types of tasks can minimize interference with each other when sharing resources, and maximize the resource utilization of the server. In addition, the present invention is based on task deployment based on resource sharing, which further reduces the number of activated servers. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 This is a flow chart of a data center task hybrid deployment method based on dynamic resource sharing provided by an embodiment of the present invention.
[0045] Figure 2 This is a structural diagram of a data center task hybrid deployment system provided by an embodiment of the present invention;
[0046] Figure 2 In: 1. Task request acquisition module; 2. Task request sorting module; 3. Resource requirement and threshold determination module; 4. Decision-making module.
[0047] Figure 3 It is a schematic diagram of a scenario when using the embodiment of the present invention.
[0048] Figure 4 It is a schematic diagram of the implementation process of the data center task hybrid deployment method based on dynamic resource sharing provided by an embodiment of the present invention.
[0049] Figure 5 This is a schematic diagram of average resource utilization of servers when the number of servers is limited, as provided by an embodiment of the present invention.
[0050] Figure 6 This is a schematic diagram of the average number of enabled servers when the number of servers is limited, as provided by an embodiment of the present invention.
[0051] Figure 7 This is a schematic diagram of online task failure rate when the number of servers is limited, provided by an embodiment of the present invention.
[0052] Figure 8 This is a schematic diagram of offline task failure rate when the number of servers is limited, provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0054] In response to the problems existing in the prior art, the present invention provides a method and system for hybrid deployment of data center tasks based on dynamic resource sharing. The present invention is described in detail below with reference to the accompanying drawings.
[0055] like Figure 1 As shown, the data center task hybrid deployment method based on dynamic resource sharing provided by the present invention includes the following steps:
[0056] S101: Divide the timeline into multiple time slots based on the arrival time of task requests, obtain task requests arriving in this time slot, including online tasks and offline tasks, and record the Quality of Service (QoS) requirements of the tasks;
[0057] S102: Recalculate resource requirements for offline tasks that were not completed in the previous time slot and deploy tasks;
[0058] S103: Sort newly arrived task requests in the order of online first and offline later, where online tasks are sorted in the order of arrival time, and offline tasks are sorted in ascending order of task deadlines;
[0059] S104: Determine the peak resource demand of the newly arrived online task and the reserved resource threshold of the current time slot, and calculate the amount of resources required to complete the newly arrived offline task within a single time slot;
[0060] S105: Based on the remaining resources of the current physical machine set and the different resource requirements of the tasks, select appropriate servers for the tasks in order and deploy the tasks; before the next scheduling time arrives, the remaining resources on each server are temporarily allocated to the offline tasks on the server in proportion. In the next round of scheduling, the temporarily allocated resources will be recycled and regarded as available idle resources.
[0061] The method for hybrid deployment of data center tasks based on dynamic resource sharing provided by the present invention can also be implemented by ordinary technicians in the industry using other steps. Figure 1 The data center task hybrid deployment method based on dynamic resource sharing provided by the present invention is only a specific embodiment.
[0062] like Figure 2 As shown, the data center task hybrid deployment system provided by the present invention includes:
[0063] Task request acquisition module 1 is used to divide the time axis into multiple time slots according to the arrival time of the task request, obtain the task requests arriving in this time slot, including online tasks and offline tasks, and record the Quality of Service (QoS) requirements of the tasks;
[0064] Task request sorting module 2, used to sort newly arrived task requests in the order of online first and offline later, where online tasks are sorted in the order of arrival time, and offline tasks are sorted in ascending order of task deadlines;
[0065] Resource demand and threshold determination module 3, used to determine the peak resource demand of the newly arrived online task and the reserved resource threshold of the current time slot, and calculate the amount of resources required for the newly arrived offline task to be completed within a single time slot;
[0066] Decision module 4 is used to allocate resources and deploy tasks based on the remaining resources of the current physical machine set. First, for offline tasks that were not completed in the previous time slot, the resource requirements are recalculated and tasks are deployed; then, newly arrived tasks are deployed, and according to the different resource requirements of the tasks, appropriate servers are selected for the tasks and tasks are deployed; before the next scheduling time arrives, the remaining resources on each server are temporarily provided to the offline tasks on the server in proportion. In the next round of scheduling, the temporarily allocated resources will be recycled and regarded as available idle resources.
[0067] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0068] The present invention provides a hybrid deployment method for data center tasks based on dynamic resource sharing. The method divides the time axis into multiple time slots, obtains task requests arriving in the current time slot, including online tasks and offline tasks, and records their QoS requirements. The method first recalculates the resource requirements of offline tasks that were not completed in the previous time slot and deploys the tasks. The method sorts the newly arrived task requests in the order of online first and offline later, wherein online tasks are sorted in the order of arrival time and offline tasks are sorted in ascending order of task deadlines. The method determines the peak resource requirements of the newly arrived online tasks and the reserved resource threshold of the current time slot, and calculates the amount of resources required for the newly arrived offline tasks to complete within a single time slot. The method selects appropriate servers for the tasks in order based on the resource remaining status of the current physical machine set and the different resource requirements of the tasks, and deploys the tasks. Before the next scheduling time arrives, the remaining resources on each server are temporarily allocated to the offline tasks on the server in proportion. In the next round of scheduling, the temporarily allocated resources will be recycled and regarded as available idle resources. The method utilizes the load variation characteristics of online tasks and the delay tolerance characteristics of offline tasks to achieve hybrid deployment of online and offline tasks, thereby achieving the goal of improving resource utilization in cloud data centers.
[0069] like Figure 3 As shown in the scenario diagram, the present invention will continuously collect multiple online task requests and offline task requests arriving within a time slot. Before entering the task deployment, the tasks will be sorted and the required resources will be calculated. The server resources can be divided into idle resources (ER), remaining available resources (RAV) and used resources (UR). The scheduler performs joint task deployment based on the server's resource status information and task resource requirements.
[0070] like Figure 4 As shown, the present invention Figure 2 In the described scenario, joint resource allocation of online tasks and offline tasks is performed. It should be noted that this example should not be understood as limiting the present invention.
[0071] The present invention provides a data center task hybrid deployment method based on dynamic resource sharing. The method comprises a cloud server in a data center, online tasks, and offline tasks requesting data center resources. Time is divided into multiple time slots. For multiple task requests received in the previous time slot, online task requests are processed first at the beginning of the current time slot, followed by offline task requests. The specific steps are as follows:
[0072] (1) Obtain task requests arriving within this time window, including online tasks T on ={α1,α2,...} and offline task T off ={β1,β2,...}, records the QoS requirements of the task;
[0073] (2) Check whether there are any unfinished offline tasks in the previous time slot. If so, process the unfinished offline tasks in the previous time slot according to the initial deployment order, recalculate the resource requirements of the unfinished offline tasks, and redeploy these unfinished tasks based on the remaining resources of the current physical machine set; if not, go to (3);
[0074] (3) Sort newly arrived task requests in the order of online first and offline later, where online tasks are sorted in the order of arrival time, and offline tasks are sorted in ascending order of task deadlines;
[0075] (4) Determine the peak resource demand of the newly arrived online task and the reserved resource threshold of the current time slot, place the tasks in sequence and update the remaining available resources of the physical machine, calculate the amount of resources required to complete the newly arrived offline task in a single time slot, place the tasks in sequence and update the remaining available resources of the physical machine;
[0076] (5) Before the next scheduling time arrives, the remaining resources on each server are temporarily allocated to the offline tasks on the server in proportion. In the next round of scheduling, the temporarily allocated resources will be recycled and regarded as available idle resources.
[0077] Furthermore, the QoS of the task is recorded in the method for hybrid deployment of data center tasks based on dynamic resource sharing, specifically including:
[0078] (1) For the i-th online task α i , record the task resource requirements and calculate their mean and variance, and convert the online task α i Resource requirement R in the tth (1≤t≤T) time slot d,i (t) is modeled as having a mean of μ i (t), with standard deviation σ i Gaussian distribution of (t), extracting online task α i Qos demand, denoted as ε i , that is, the proportion of task requests with a response delay of no more than 500ms does not exceed ε i , which can be expressed as P(R d,i (t)≥R a,i (t))<ε i , where P(·) represents the probability, R a,i (t) represents the resource occupancy threshold that meets the QoS target of the online task in the tth time slot: R α,i (t)≥Q -1 (ε)*σ i (t)+μ i (t).
[0079] (2) For the jth offline task β j , record its performance model β j ={a j ,d j ,l j}, where a j ,d j ,l j They represent the task arrival time, task deadline, and task length respectively. Offline tasks must be completed before their deadlines. Offline task completion time ft j =st j +et j , among which, et j is the execution time of task j, et j =l j / R β,j ;st j For task β i The execution start time is the start time of the task deployment strategy execution time slot.
[0080] Furthermore, the resource allocation method, for the i-th online task α i , the amount of resources required to be allocated is the online task α iPeak resource demand The difference between the server capacity and the allocated resources is called the empty resource (ER). The empty resource of server k in the tth time slot is denoted as ER k (t); When the idle resources of server k meet When , it means that server k satisfies the online task α i The resource requirements of the online task α i Deployed on server k, the idle resources of server k in time slot t are updated to
[0081] Furthermore, the resource allocation method, for the jth offline task β j , whose resource requirement is offline task β j The amount of resources R required to complete the task in the current time slot β,j =l j / (min(t p ,d j -st j ), the difference between the amount of resources allocated to the online task on the server and the online task resource occupancy threshold is called the remaining available resources RAV, and the remaining available resources of server k in the tth time slot are recorded as RAV k (t). When server k has available resources RAV k (t) Satisfy RAV k (t)>R β,j When , it means that server k satisfies the offline task β j The resource requirements of offline tasks can be j Deployed on server k, for offline task β j From RAV k (t), the remaining available resources of server k in time slot t are updated to RAV k (t) = RAV k (t)-R β,j Otherwise, when server k has available resources RAV k (t) Does not meet RAV k (t)>R β,j , but satisfies (RAV k (t)+ER k (t))>R β,j When server k also satisfies the offline task β j The resource requirements of offline tasks can be j Deployed on server k, it is necessary to set up offline tasks β j From RAV k (t) and ER k(t), the remaining available resources of server k in time slot t are updated to RAV k (t) = 0, the idle resources are updated to ER k (t) = ER k (t)+RAV k (t)-R β,j ;
[0082] Furthermore, the resource allocation method first deploys the online task. The deployment of the online task uses the Fist-Fit strategy, which checks all active servers, finds the first server that meets the task resource requirements, deploys the task on the server, and allocates the required amount of resources to it. If all the enabled servers cannot meet the resource requirements, a new server deployment task is started.
[0083] Furthermore, the resource allocation method deploys offline tasks in sequence according to the sorting result in (2) after all newly arrived online tasks are deployed; checks all active servers, finds the first server that meets the resource requirements of the task, deploys the task on the server, and allocates resources that meet the resource requirements to the task; when all the enabled servers cannot meet the resource requirements of the task, determines whether the task deadline is less than or equal to the end time of the current time slot; if the task deadline is less than or equal to the end time of the current time slot, opens a new server for the task; if the task deadline is greater than the end time of the current time slot, places the task on the server with the most remaining resources and allocates the remaining resources on the server to the task; at the beginning of the next time slot, recalculates its resource requirements and deploys it;
[0084] In the resource allocation method, the remaining resources refer to RAV(t)+ER(t).
[0085] The technical effects of the present invention are described in detail below with reference to simulations.
[0086] The present invention was compared with two resource allocation methods on four performance metrics. One method is non-resource sharing, in which online and offline tasks are placed in different server clusters. The other method is static resource sharing, which allows online and offline tasks to share resources on the same server but allocates a fixed amount of resources to each task.
[0087] The number of servers is 260, and the computing resource capacity of each server is 100. The time slot length is five minutes. The mean of the online task resource demand is randomly selected from 5 to 60, and the standard deviation follows a uniform distribution with parameters [0.1, 3]. Task arrival follows a Poisson distribution, the online task arrival rate is 0.2, and the QoS target value follows a uniform distribution with parameters [95%, 99.99%]. The offline task arrival rate varies from 0 to 8, the computational load follows a uniform distribution with parameters [500, 1000], and the deadline value follows a uniform distribution with parameters [10, 30], expressed in minutes. The simulation duration is set to one hour.
[0088] Figure 5 The figure shows the average CPU resource utilization of the cluster. As the offline task arrival rate increases, the CPU utilization of the three resource allocation methods increases. The proposed dynamic resource sharing method can improve the average resource utilization by about 30% under high load environments.
[0089] Figure 6 The average number of active servers is shown. As the load increases, all three approaches continue to power on more physical servers to meet the resource demands of more tasks. Due to dynamic resource sharing and joint task deployment strategies, this approach can better utilize the resources of each server and maintain a minimum number of active servers, resulting in significant power savings.
[0090] Figure 7 The failure rate of online tasks when the number of servers is limited is shown. As the arrival rate of offline tasks increases, the online task failure rate of the non-resource sharing approach increases the fastest, while the online task failure rates of static and dynamic resource sharing approaches are much lower than those of the non-resource sharing approach.
[0091] Figure 8 The figure shows the failure rate of offline tasks when the number of servers is limited. As the arrival rate of offline tasks increases, the failure rate of offline tasks in the non-resource sharing approach increases only slightly. When the arrival rate of offline tasks approaches 8, the failure rate of the static resource sharing approach suddenly increases. The proposed dynamic resource sharing approach is able to maintain a very low offline task failure rate.
[0092] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware portion can be implemented using dedicated logic; the software portion can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. Those skilled in the art will appreciate that the above-mentioned devices and methods can be implemented using computer-executable instructions and / or contained in processor control code, for example, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. The devices and modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, or can be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0093] The above description is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with this technical field within the technical scope disclosed by the present invention and within the spirit and principles of the present invention should be covered by the scope of protection of the present invention.
Claims
1. A data center task hybrid deployment method based on dynamic resource sharing, characterized in that: The data center task hybrid deployment method based on dynamic resource sharing includes: According to the arrival time of the task request, the time axis is divided into multiple time slots, the task requests arriving in this time slot are obtained, including online tasks and offline tasks, and the Quality-of-Service (QoS) requirements of the tasks are recorded; First, recalculate the resource requirements of offline tasks that were not completed in the previous time slot and deploy the tasks; sort the newly arrived task requests in the order of online first and offline later, where online tasks are sorted in the order of arrival time, and offline tasks are sorted in ascending order of task deadlines; Determine the peak resource demand of the newly arrived online task and the reserved resource threshold of the current time slot, and calculate the amount of resources required for the newly arrived offline task to be completed in a single time slot; According to the remaining resources of the current physical machine set and the different resource requirements of the tasks, select the appropriate server for the task in order and deploy the task; before the next scheduling time arrives, temporarily provide the remaining resources on each server to the offline tasks on the server in proportion. In the next round of scheduling, the temporarily allocated resources will be recycled and regarded as available idle resources; The QoS of the recording task specifically includes: (1) For the i-th online task α i , record the task resource requirements and calculate their mean and variance, and convert the online task α i Resource requirement R in the tth (1≤t≤T) time slot d,i (t) is modeled as having a mean of μ i (t), with standard deviation σ i Gaussian distribution of (t), extracting online task α i The Qos requirement is denoted as ε i , that is, the proportion of task requests with a response delay of no more than 500ms does not exceed ε i , which can be expressed as P(R d,i (t)≥R a,i (t))<ε i , where P(·) represents the probability, R a,i (t) represents the resource occupancy threshold that meets the QoS target of the online task in the tth time slot: R α,i (t)≥Q -1 (ε)*σ i (t)+μ i (t); (2) For the jth offline task β j , record its performance model β j ={a j ,d j ,l j }, where a j ,d j ,l j They represent the task arrival time, task deadline, and task length respectively. Offline tasks need to be completed before their deadlines. Offline task completion time ft j =st j +et j , among which, et j is the execution time of task j, et j = l j / R β,j ;st j For task β i The execution start time is the start time of the time slot for executing the task deployment strategy.
2. The data center task hybrid deployment method based on dynamic resource sharing according to claim 1, characterized in that: The data center task hybrid deployment method based on dynamic resource sharing specifically includes: (1) Obtain task requests arriving within this time window, including online tasks T on ={α1,α2,...} and offline task T off ={β1,β2,...}, records the QoS requirements of the task; (2) Check whether there are any offline tasks that have not been completed in the previous time slot. If so, process the offline tasks that have not been completed in the previous time slot in the order of initial deployment, recalculate the resource requirements of the unfinished offline tasks, and redeploy these unfinished tasks based on the remaining resources of the current physical machine set; if not, go to (3); (3) Sort the newly arrived task requests in the order of online first and offline later, where online tasks are sorted in the order of arrival time, and offline tasks are sorted in ascending order of task deadlines; (4) Determine the peak resource demand of the newly arrived online task and the reserved resource threshold of the current time slot, place the tasks in sequence and update the remaining available resources of the physical machine, calculate the amount of resources required to complete the newly arrived offline task in a single time slot, place the tasks in sequence and update the remaining available resources of the physical machine; (5) Before the next scheduling time arrives, the remaining resources on each server are temporarily allocated to the offline tasks on the server in proportion. In the next round of scheduling, the temporarily allocated resources will be recycled and regarded as available idle resources.
3. The data center task hybrid deployment method based on dynamic resource sharing according to claim 2, characterized in that: The resource allocation method described above, for the i-th online task α i , the amount of resources required to be allocated is the online task α i Peak resource demand The difference between the server capacity and the allocated resources is called the empty resource (ER). The empty resource of server k in the tth time slot is ER k (t); When the idle resources of server k meet When , it means that server k satisfies the online task α i The resource requirements of the online task α i Deployed on server k, the idle resources of server k in the tth time slot are updated to 4. The data center task hybrid deployment method based on dynamic resource sharing according to claim 2, characterized in that: The resource allocation method described above, for the jth offline task β j , whose resource requirement is the offline task β j The amount of resources R required to complete the task in the current time slot β,j = l j / (min(t p ,d j -st j ), the difference between the amount of resources allocated to the online task on the server and the threshold of online task resource occupancy is called the remaining available resources RAV, then the remaining available resources of server k in the tth time slot are recorded as RAV k (t), when server k has remaining available resources RAV k (t) Satisfy RAV k (t)>R β,j When , it means that server k satisfies the offline task β j The resource requirements of offline tasks can be j Deployed on server k, for offline task β j From RAV k (t), the remaining available resources of server k in the tth time slot are updated to RAV k (t) = RAV k (t)-R β,j ; Otherwise, when server k has remaining available resources RAV k (t) Does not meet RAV k (t)>R β,j , but satisfies (RAV k (t)+ER k (t))>R β,j When server k also satisfies the offline task β j The resource requirements of offline tasks can be j Deployed on server k, it is necessary to provide offline tasks β j From RAV k (t) and ER k (t), the remaining available resources of server k in the tth time slot are updated to RAV k (t) = 0, the idle resources are updated to ER k (t) = ER k (t)+RAV k (t)-R β,j .
5. The data center task hybrid deployment method based on dynamic resource sharing according to claim 2, characterized in that: The resource allocation method first deploys the online task. The deployment of the online task uses the Fist-Fit strategy to check all active servers, find the first server that meets the task resource requirements, deploy the task on the server and allocate resources to it that meet the resource requirements; if all the enabled servers cannot meet the resource requirements, a new server deployment task is started.
6. The data center task hybrid deployment method based on dynamic resource sharing according to claim 2, characterized in that: The resource allocation method is as follows: after all newly arrived online tasks are deployed, offline tasks are deployed in sequence according to the sorting result in (2); all active servers are checked to find the first server that meets the resource requirements of the task, the task is deployed on the server and the amount of resources that meet the resource requirements is allocated to the task; when all enabled servers cannot meet the resource requirements of the task, it is determined whether the task deadline is less than or equal to the end time of the current time slot; if the task deadline is less than or equal to the end time of the current time slot, a new server is enabled for the task; if the task deadline is greater than the end time of the current time slot, the task is placed on the server with the most remaining resources and the remaining resources on the server are allocated to the task; at the beginning of the next time slot, its resource requirements are recalculated and deployed; In the resource allocation method, the remaining resources refer to RAV(t)+ER(t).
7. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the data center task hybrid deployment method based on dynamic resource sharing according to any one of claims 1 to 6, comprising the following steps: According to the arrival time of the task request, the time axis is divided into multiple time slots, the task requests arriving in this time slot are obtained, including online tasks and offline tasks, and the Quality-of-Service (QoS) requirements of the tasks are recorded; First, recalculate the resource requirements of offline tasks that were not completed in the previous time slot and deploy the tasks; sort the newly arrived task requests in the order of online first and offline later, where online tasks are sorted in the order of arrival time, and offline tasks are sorted in ascending order of task deadlines; Determine the peak resource demand of the newly arrived online task and the reserved resource threshold of the current time slot, and calculate the amount of resources required for the newly arrived offline task to be completed in a single time slot; According to the remaining resources of the current physical machine set and the different resource requirements of the tasks, the appropriate servers are selected for the tasks in order and the tasks are deployed; before the next scheduling time arrives, the remaining resources on each server are temporarily allocated to the offline tasks on the server in proportion. In the next round of scheduling, the temporarily allocated resources will be recycled and regarded as available idle resources.
8. A cloud computing resource management terminal, characterized in that: The cloud computing resource management terminal is used to implement the data center task hybrid deployment method based on dynamic resource sharing as described in any one of claims 1 to 6.
9. A data center task hybrid deployment system implementing the data center task hybrid deployment method based on dynamic resource sharing as described in any one of claims 1 to 6, characterized in that: The data center task hybrid deployment system includes: The task request acquisition module is used to divide the time axis into multiple time slots according to the arrival time of the task request, obtain the task request arriving in this time slot, including online tasks and offline tasks, and record the Quality-of-Service (QoS) requirements of the task; The task request sorting module is used to sort the newly arrived task requests in the order of online first and offline later, where online tasks are sorted in the order of arrival time, and offline tasks are sorted in ascending order of task deadlines; The resource demand and threshold determination module is used to determine the peak resource demand of the newly arrived online task and the reserved resource threshold of the current time slot, and calculate the amount of resources required for the newly arrived offline task to be completed in a single time slot; The decision module is used to allocate resources and deploy tasks according to the remaining resources of the current physical machine set. First, for offline tasks that were not completed in the previous time slot, the resource requirements are recalculated and tasks are deployed; Then deploy the newly arrived tasks, select the appropriate server for the tasks and deploy the tasks according to the different resource requirements of the tasks; before the next scheduling time arrives, the remaining resources on each server are temporarily allocated to the offline tasks on the server in proportion. In the next round of scheduling, the temporarily allocated resources will be recycled and regarded as available idle resources.
