A data center resource management system and method based on cloud computing

By analyzing and adjusting resource allocation priorities and sequences in a cloud computing environment, predicting and solving resource bottlenecks, the problem of resource waste and bottlenecks in data center resource management is solved, and system performance and efficiency are improved.

CN118656216BActive Publication Date: 2024-10-18北京英沣特能源技术有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411123834.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-10-18
Estimated Expiration
2044-08-16

AI Technical Summary

Technical Problem

In a cloud computing environment, due to the lack of a complete resource allocation mechanism in data center resource management, some resources are overused and other resources are idle, resulting in resource waste and resource bottlenecks, which in turn affects system performance.

Method used

By obtaining and analyzing the resource allocation after task generation, divide the task set, calculate the priority and order of resource allocation, predict the probability of resource bottlenecks, and adjust resource allocation, release priorities and cancel tasks when bottleneck risk reminders are issued to solve resource bottlenecks. .

Benefits of technology

Effectively reduce the occurrence of resource bottlenecks, avoid resource waste, improve data center efficiency and system performance, and ensure reasonable allocation of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656216B_ABST
    Figure CN118656216B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data management technology, and specifically to a data center resource management system and method based on cloud computing, the management method comprising the following steps: obtaining a resource set and a remaining demand resource set for each historical task; dividing tasks according to resource usage to obtain several types of task sets, and judging whether to mark each type of resource as a bottleneck resource; analyzing and generating an allocation order of any type of resource; determining the position of tasks in a current system in the allocation order of a certain resource, and predicting the waiting time for tasks in the current system to be allocated to a certain resource; judging whether to issue a bottleneck risk reminder; setting a resource release priority and a resource allocation priority for each task occupying the certain type of resource; adjusting the allocation order of each demand resource in each task demand resource set; and judging whether to send a task cancellation reminder to several tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data management, and in particular to a data center resource management system and method based on cloud computing. Background Art

[0002] Cloud computing refers to a system with extremely high computing power formed through a computer network, which can store and aggregate related resources and can be configured on demand to provide personalized services to users; the management of data center resources in a cloud computing environment involves the effective configuration, monitoring and optimization of internal resources in the data center to ensure that the data center can operate efficiently and meet business needs; including the reasonable allocation of computing, storage, network and other resources to ensure that various resources can meet the needs of different applications and services;

[0003] Effective data center resource management can improve the efficiency, reliability and security of the data center. However, due to the lack of a perfect resource allocation mechanism, data center resources are prone to over-use of some resources while other resources remain idle, resulting in resource waste and resource bottlenecks, causing system performance degradation. Summary of the invention

[0004] The object of the present invention is to provide a data center resource management system and method based on cloud computing to solve the problems raised in the above background technology.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: a data center resource management method based on cloud computing, the management method comprising the following steps:

[0006] Step S100: Obtain the resource set allocated and the remaining demand resource set not allocated after each task is generated in history; analyze the situation that various types of resources in the remaining demand resource set are occupied by other tasks; collect the resource usage of each task in history, divide the tasks into several types of task sets, and determine whether to mark various types of resources as bottleneck resources according to the task completion status of each task in the task set;

[0007] Step S200: obtaining task waiting queues of various types of resources, analyzing resource allocation of each task in the task waiting queue of any type of resources, calculating the allocation priority of each task waiting for allocation of any type of resources, and generating an allocation order of any type of resources;

[0008] Step S300: Obtain a task set of the same type as the task in the current system, analyze the task completion status of each task in the task set; determine the position of the task in the current system in the allocation sequence of a certain resource, analyze the task completion status of the remaining tasks in the allocation sequence in the historical task set of the same type, and predict the waiting time for the task in the current system to be assigned to a certain resource; calculate the probability of a resource bottleneck occurring in the certain resource, and determine whether to issue a bottleneck risk reminder;

[0009] Step S400: When there is a bottleneck risk reminder for a certain type of resources, set the resource release priority for each task occupying the certain type of resources; analyze the resource allocation of each task in the current system to obtain the resource allocation priority of each task; analyze the resource usage of each task in the historical task set of the same type, and adjust the allocation order of each required resource in the required resource set of each task; re-analyze the resource allocation of each task to determine whether to send task cancellation reminders to several tasks.

[0010] Furthermore, step S100 includes the following steps:

[0011] Step S101: Set the required resource set of the i-th task in history to , after the i-th task is generated, the resource set allocated is , the remaining required resource set after the i-th task is generated is ;

[0012] Step S102: Obtain the task waiting queue of the j-th resource in the remaining required resource set , get the task waiting queue The number of tasks in is , assuming that after the i-th task is generated, the total number of tasks in the system is , the resource demand rate of the j-th resource is calculated to be ; Set the task waiting queue The completion time of the kth task occupying the jth type of resource is , the average time occupied by each task for the j-th resource is calculated to be ;

[0013] Step S103: Use a performance monitoring tool to collect the usage of all resources for each task, and monitor the usage of resources including the types of resources, usage duration, and usage order of various resources; judge the similarity of all historical tasks and divide all historical tasks; after obtaining the task division, set the task completion time of the mth task in the task set to the same task set as the i-th task. , where the duration from starting to wait for the j-th resource to using the j-th resource and completing the release is , the actual duration ratio of the mth task to the jth resource is ;

[0014] Step S104: Obtain the actual duration ratio of each task in the task set to the j-th resource, and obtain the average duration ratio of the j-th resource and the minimum actual duration ratio , according to the formula:

[0015]

[0016] Calculate the normal duration ratio threshold of each task in the task set for the j-th type of resource ;like , the waiting process of the mth task in the task set for the jth resource is marked as abnormal waiting, and the jth resource is marked as a bottleneck resource; all resources are divided into two categories according to whether there is a bottleneck resource mark; bottleneck resources are the situation where the supply of a certain resource in the system cannot meet the demand, so it can be judged from the waiting time of the task waiting for the resource, and according to the historical task completion status of the same type of resources, a normal waiting time range is given, providing a scientific reference data for the judgment of bottleneck resources.

[0017] Further, step S200 includes the following steps:

[0018] Step S201: Assume that there are x tasks in the current system, where the required resource set for the ath task is ; Get the resource that the a-th task is currently waiting for as the j-th resource, and get the waiting time that the a-th task is currently waiting for the j-th resource as ; Set the required resource set The number of resources required is , the current required resource ratio of the ath task is calculated to be ,in, is the total resource requirement of the ath task;

[0019] Step S202: Get the resource set occupied by the ath task as , a collection of statistical resources In The occupation time of class resources is ; Get the first Check whether there is a task waiting queue for the class resource. If there is a task waiting queue, count the number of tasks in the task waiting queue. ; According to the formula:

[0020]

[0021] in, For the The task waiting queue of the class resource, To determine the function, if there is a task waiting queue ,but ,otherwise, ; Calculate the allocation priority of the a-th task waiting for the j-th resource to be allocated ; Sort all tasks waiting for allocation of the jth type of resource from large to small according to the allocation priority, and generate the allocation order of tasks waiting for allocation of the jth type of resource; the allocation priority of tasks waiting for resource allocation depends on the waiting time and the length of time the occupied resources are occupied. If there are other tasks waiting for allocation of the occupied resources, the length of time the resources are occupied will affect the progress of other tasks. Therefore, considering the waiting time of the task itself and the waiting time of other tasks waiting for the occupied resources at the same time, the priority of resource allocation can be obtained more reasonably and accurately. When the task with the highest priority is allocated to the required resources, in addition to being able to operate normally itself, it can also help the progress of other tasks.

[0022] Further, step S300 includes the following steps:

[0023] Step S301: Select the ath task in the current system, and filter out a set of tasks of the same type as the ath task from all historical tasks; obtain the task completion time of each task in the task set, and calculate the average value to obtain the theoretical completion time of the ath task. ; Set the normal duration ratio threshold of each task for the j-th type of resource to , the theoretical maximum duration of the a-th task from starting to wait for the j-th resource to using the j-th resource and completing the release is ;

[0024] Step S302: Determine the position of the ath task in the allocation sequence of the jth type of resources. ; Randomly select the bth task in the allocation sequence, obtain the task completion time of each task in the task set of the same type as the bth task, and calculate the average task completion time of the bth task; obtain the average task completion time of each task that is before the ath task in the allocation sequence of the jth resource, and obtain the theoretical waiting time for the ath task to be assigned to the jth resource: , according to the formula:

[0025]

[0026] in, is the judgment function, if ,but ,like ,but IF() is a judgment function, Sign is a bottleneck resource mark. If the j-th resource has a bottleneck resource mark in the historical allocation process, then ,otherwise, ; The probability of resource bottleneck occurring in the j-th resource in the current resource allocation process is calculated as ; Set a probability threshold ,like , then the bottleneck risk reminder will be issued for the j-th resource;

[0027] Based on the waiting time of the current task waiting for the required resources and the position in the allocation sequence, it is possible to reasonably infer how long the current task still needs to wait after being assigned to the required resources. The resource bottleneck is determined by the waiting time. Therefore, by reasonably predicting the waiting time of the task, the probability of resource bottleneck can be judged. At the same time, in the historical resource allocation, if a resource bottleneck has occurred in the resource, it will greatly increase the occurrence of resource bottleneck phenomenon for the current resource.

[0028] Furthermore, step S400 includes the following steps:

[0029] Step S401: Set the bottleneck risk reminder for the j-th resource, obtain all tasks currently occupying the j-th resource, arbitrarily select the c-th task, and obtain the resource set occupied by the c-th task as ; Get the resource occupation time of the cth task from the beginning of occupying the jth resource to the current moment , if the resource collection If there are other types of resources that provide bottleneck risk reminders, then the resource set is obtained. The number of resources of the several types of resources described in ; The resource release priority of the cth task is calculated as ;

[0030] Step S402: Obtain the required resource set of the dth task among all tasks in the current system ,like , then relative to the cth task currently occupying the jth type of resources, the dth task in the current system is used as the resource allocation target; when the dth task obtains all the occupied resources of the cth task, the number of resources with bottleneck risk reminders among all the resources of the dth task is counted , get the number of tasks that can meet the resource requirements of other tasks after the dth task releases all resources ; According to the formula:

[0031]

[0032] in, The waiting time for the required resources for the dth task, The allocation priority of the d-th task waiting for the j-th resource to be allocated, IF() is the judgment function, For the jth type of resource, if the required resource set contains the j-th resource, then ,otherwise, ; Calculate the resource allocation priority of the dth task ;

[0033] The above scheme mentions the allocation priority of the a-th task waiting for the j-th resource to be allocated, which is different from the resource allocation priority here. The above scheme is the allocation priority in the normal waiting process for resource allocation, while the resource allocation priority here is the resource allocation priority of allocating the released resources after some tasks may need to be released when there is a resource bottleneck.

[0034] Step S403: Get a task set of the same type as the d-th task in history, and get a usage time distribution diagram of various resources for any task in the task set; set the resource currently waiting for the g-th task as the j-th resource, and get the resource types whose usage time period is ahead of the j-th resource in the usage time distribution diagram. If the current resource set required by the d-th task is If there are several types of resources whose usage time periods are ahead of the j-th type of resources, the d-th task is removed from the waiting queue of the j-th type of resources, and the several types of resources are allocated to the d-th task;

[0035] One of the reasons for resource bottlenecks is that a task needs to meet all resources before it can start, or due to problems with the resource allocation mechanism, resources that need to be processed later are obtained first, while resources that need to be processed first are obtained later, which results in the resources that need to be processed later not being obtained and the priority resources cannot be allocated. By adjusting the allocation order, the priority resources are allocated to the tasks first, so that the tasks can be processed while waiting for the required resources, which can improve efficiency and reduce the degree of competition for resources, and effectively reduce the occurrence of resource bottlenecks.

[0036] Step S404: adjust the resource demand order of all tasks in the current system, re-adjust the allocation order of each task waiting for the j-th resource to be allocated, and recalculate the probability of resource bottleneck of the j-th resource. , set the probability threshold , if it still exists , then according to the resource release priority, all resources occupied by the task with the largest value occupying the j-th type of resources will be released, and the released resources will be allocated in descending order according to the resource allocation priority of each task; and a task cancellation reminder will be sent to the task releasing the resources.

[0037] In order to better implement the above method, a data center resource management system based on cloud computing is also proposed. The management system includes a resource bottleneck mining module, a resource allocation module, a bottleneck risk assessment module and an abnormal risk adjustment module;

[0038] The resource bottleneck mining module is used to obtain the resource set allocated and the remaining demand resource set that are not allocated after each task is generated in the past; analyze the situation where various types of resources in the remaining demand resource set are occupied by other tasks; collect the resource usage of each task in the past, divide the tasks into several types of task sets, and determine whether to mark various types of resources as bottleneck resources based on the task completion status of each task in the task set;

[0039] The resource allocation module is used to obtain the task waiting queues of various resources, analyze the resource allocation of each task in the task waiting queue of any type of resources, calculate the allocation priority of each task waiting to be allocated any type of resources, and generate the allocation order of any type of resources;

[0040] The bottleneck risk assessment module is used to obtain a task set of the same type as the task in the current system, analyze the task completion status of each task in the task set; determine the order of the task in the current system in the allocation sequence of a certain resource, analyze the task completion status of the remaining tasks in the allocation sequence in the historical task set of the same type, and predict the waiting time for the task in the current system to be assigned to a certain resource; calculate the probability of a resource bottleneck occurring in a certain resource, and determine whether to issue a bottleneck risk reminder;

[0041] The abnormal risk adjustment module is used to set the resource release priority for each task occupying a certain type of resources when there is a bottleneck risk reminder for a certain type of resources; analyze the resource allocation of each task in the current system to obtain the resource allocation priority of each task; analyze the resource usage of each task in the historical task set of the same type, and adjust the allocation order of each required resource in the required resource set of each task; re-analyze the resource allocation of each task to determine whether to send task cancellation reminders to several tasks.

[0042] Further, the resource bottleneck mining module includes a resource allocation analysis unit and a bottleneck resource marking unit;

[0043] The resource allocation analysis unit is used to obtain the resource set allocated and the remaining demand resource set that are not allocated after each historical task is generated; analyze the situation in which various types of resources in the remaining demand resource set are occupied by other tasks; the bottleneck resource marking unit is used to collect the resource usage of each historical task, divide the tasks into several types of task sets, and determine whether to mark various types of resources as bottleneck resources based on the task completion status of each task in the task set.

[0044] Further, the resource allocation module includes a real-time resource allocation unit and an allocation sequence generation unit;

[0045] The real-time resource allocation unit is used to obtain the task waiting queues of various types of resources and analyze the resource allocation of each task in the task waiting queue of any type of resources; the allocation order generation unit is used to calculate the allocation priority of each task waiting for allocation of any type of resources and generate the allocation order of any type of resources.

[0046] Further, the bottleneck risk assessment module includes a task completion analysis unit and a resource bottleneck prediction unit;

[0047] The task completion status analysis unit is used to obtain a task set of the same type as the tasks in the current system, and analyze the task completion status of each task in the task set; determine the order of the tasks in the current system in the allocation sequence of a certain resource, and analyze the task completion status of the remaining tasks in the allocation sequence in the historical task set of the same type; the resource bottleneck prediction unit is used to predict the waiting time for the tasks in the current system to be assigned to a certain resource; calculate the probability of a resource bottleneck occurring in a certain resource, and determine whether to issue a bottleneck risk reminder.

[0048] Further, the abnormal risk adjustment module includes a priority setting unit and a task cancellation reminder unit;

[0049] The priority setting unit is used to set the resource release priority for each task occupying a certain type of resources when there is a bottleneck risk reminder for a certain type of resources; analyze the resource allocation of each task in the current system to obtain the resource allocation priority of each task; the task cancellation reminder unit is used to analyze the resource usage of each task in the historical task set of the same type, and adjust the allocation order of each required resource in the required resource set of each task; re-analyze the resource allocation of each task to determine whether to send task cancellation reminders to several tasks.

[0050] Effective data center resource management can improve the efficiency, reliability and security of the data center. However, due to the lack of a perfect resource allocation mechanism, data center resources are prone to over-use of some resources while other resources remain idle, resulting in resource waste and resource bottlenecks, causing system performance degradation.

[0051] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: (1) The present invention helps each task in the system to reasonably obtain the required resources and minimize the occurrence of resource bottlenecks by establishing a scientific and reasonable resource allocation mechanism; (2) The present invention mines the occurrence of resource bottlenecks and related data through the resource allocation and task completion status of historical tasks, which is convenient for reference when making subsequent resource judgments; (3) The present invention evaluates the probability of resource bottlenecks occurring in the current resources, and can prevent and solve resource bottlenecks in advance, thereby avoiding resource waste, improving efficiency, and effectively preventing the decline of system performance; (4) The present invention effectively adjusts resource allocation after a resource bottleneck occurs, thereby solving the resource bottleneck problem as soon as possible, restoring system performance as quickly as possible, and enabling each task to proceed normally, thereby avoiding resource waste and resource competition. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0053] Figure 1 The invention is a schematic diagram of the steps of a data center resource management method based on cloud computing.

[0054] Figure 2 The present invention is a structural diagram of a data center resource management system based on cloud computing. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] See also Figure 1 to Figure 2 The present invention provides a technical solution: a data center resource management method based on cloud computing, the management method comprising the following steps:

[0057] Step S100: Obtain the resource set allocated and the remaining demand resource set not allocated after each task is generated in history; analyze the situation that various types of resources in the remaining demand resource set are occupied by other tasks; collect the resource usage of each task in history, divide the tasks into several types of task sets, and determine whether to mark various types of resources as bottleneck resources according to the task completion status of each task in the task set;

[0058] Wherein, step S100 includes the following steps:

[0059] Step S101: Set the required resource set of the i-th task in history to , after the i-th task is generated, the resource set allocated is , the remaining required resource set after the i-th task is generated is ;

[0060] Step S102: Obtain the task waiting queue of the j-th resource in the remaining required resource set , get the task waiting queue The number of tasks in is , assuming that after the i-th task is generated, the total number of tasks in the system is , the resource demand rate of the j-th resource is calculated to be ; Set the task waiting queue The completion time of the kth task occupying the jth type of resource is , the average time occupied by each task for the j-th resource is calculated to be ;

[0061] Step S103: Use the performance monitoring tool to collect the usage of all resources for each task, judge the similarity of all historical tasks, and divide all historical tasks; after obtaining the task division, set the task completion time of the mth task in the task set to the same task set as the i-th task. , where the duration from starting to wait for the j-th resource to using the j-th resource and completing the release is , the actual duration ratio of the mth task to the jth resource is ;

[0062] Step S104: Obtain the actual duration ratio of each task in the task set to the j-th resource, and obtain the average duration ratio of the j-th resource and the minimum actual duration ratio , according to the formula:

[0063]

[0064] Calculate the normal duration ratio threshold of each task in the task set for the j-th type of resource ;like , then the waiting process of the mth task in the task set for the jth resource is marked as abnormal waiting, and the jth resource is marked as a bottleneck resource; according to whether there is a bottleneck resource mark, all resources are divided into two categories.

[0065] Step S200: obtaining task waiting queues of various types of resources, analyzing resource allocation of each task in the task waiting queue of any type of resources, calculating the allocation priority of each task waiting for allocation of any type of resources, and generating an allocation order of any type of resources;

[0066] Wherein, step S200 includes the following steps:

[0067] Step S201: Assume that there are x tasks in the current system, where the required resource set for the ath task is ; Get the resource that the a-th task is currently waiting for as the j-th resource, and get the waiting time that the a-th task is currently waiting for the j-th resource as ; Set the required resource set The number of resources required is , the current required resource ratio of the ath task is calculated to be ,in, is the total resource requirement of the ath task;

[0068] Step S202: Get the resource set occupied by the ath task as , a collection of statistical resources In The occupation time of class resources is ; Get the first Check whether there is a task waiting queue for the class resource. If there is a task waiting queue, count the number of tasks in the task waiting queue. ; According to the formula:

[0069]

[0070] in, For the The task waiting queue of the class resource, To determine the function, if there is a task waiting queue ,but ,otherwise, ; Calculate the allocation priority of the a-th task waiting for the j-th resource to be allocated ; Sort all tasks waiting for allocation of the j-th resource from large to small according to the allocation priority, and generate the allocation order of tasks waiting for allocation of the j-th resource.

[0071] Step S300: Obtain a task set of the same type as the task in the current system, analyze the task completion status of each task in the task set; determine the position of the task in the current system in the allocation sequence of a certain resource, analyze the task completion status of the remaining tasks in the allocation sequence in the historical task set of the same type, and predict the waiting time for the task in the current system to be assigned to a certain resource; calculate the probability of a resource bottleneck occurring in the certain resource, and determine whether to issue a bottleneck risk reminder;

[0072] Wherein, step S300 includes the following steps:

[0073] Step S301: Select the ath task in the current system, and filter out a set of tasks of the same type as the ath task from all historical tasks; obtain the task completion time of each task in the task set, and calculate the average value to obtain the theoretical completion time of the ath task. ; Set the normal duration ratio threshold of each task for the j-th type of resource to , the theoretical maximum duration of the a-th task from starting to wait for the j-th resource to using the j-th resource and completing the release is ;

[0074] Step S302: Determine the position of the ath task in the allocation sequence of the jth type of resources. ; Randomly select the bth task in the allocation sequence, obtain the task completion time of each task in the task set of the same type as the bth task, and calculate the average task completion time of the bth task; obtain the average task completion time of each task that is before the ath task in the allocation sequence of the jth resource, and obtain the theoretical waiting time for the ath task to be assigned to the jth resource: , according to the formula:

[0075]

[0076] in, is the judgment function, if ,but ,like ,but IF() is a judgment function, Sign is a bottleneck resource mark. If the j-th resource has a bottleneck resource mark in the historical allocation process, then ,otherwise, ; The probability of resource bottleneck occurring in the j-th resource in the current resource allocation process is calculated as ; Set a probability threshold ,like , then a bottleneck risk reminder will be issued for the j-th type of resources.

[0077] Step S400: when there is a bottleneck risk reminder for a certain type of resource, set the resource release priority for each task occupying the certain type of resource; analyze the resource allocation of each task in the current system to obtain the resource allocation priority of each task; analyze the resource usage of each task in the historical task set of the same type, and adjust the allocation order of each required resource in the required resource set of each task; re-analyze the resource allocation of each task to determine whether to send task cancellation reminders to several tasks;

[0078] Wherein, step S400 includes the following steps:

[0079] Step S401: Set the bottleneck risk reminder for the j-th resource, obtain all tasks currently occupying the j-th resource, arbitrarily select the c-th task, and obtain the resource set occupied by the c-th task as ; Get the resource occupation time of the cth task from the beginning of occupying the jth resource to the current moment , if the resource collection If there are other types of resources that provide bottleneck risk reminders, then the resource set is obtained. The number of resources of the several types of resources described in ; The resource release priority of the cth task is calculated as ;

[0080] Step S402: Obtain the required resource set of the dth task among all tasks in the current system ,like , then relative to the cth task currently occupying the jth type of resources, the dth task in the current system is used as the resource allocation target; when the dth task obtains all the occupied resources of the cth task, the number of resources with bottleneck risk reminders among all the resources of the dth task is counted , get the number of tasks that can meet the resource requirements of other tasks after the dth task releases all resources ; According to the formula:

[0081]

[0082] in, The waiting time for the required resources for the dth task, The allocation priority of the d-th task waiting for the j-th resource to be allocated, IF() is the judgment function, For the jth type of resource, if the required resource set contains the j-th resource, then ,otherwise, ; Calculate the resource allocation priority of the dth task ;

[0083] Step S403: Get a task set of the same type as the d-th task in history, and get a usage time distribution diagram of various resources for any task in the task set; set the resource currently waiting for the g-th task as the j-th resource, and get the resource types whose usage time period is ahead of the j-th resource in the usage time distribution diagram. If the current resource set required by the d-th task is If there are several types of resources whose usage time periods are ahead of the j-th type of resources, the d-th task is removed from the waiting queue of the j-th type of resources, and the several types of resources are allocated to the d-th task;

[0084] Step S404: adjust the resource demand order of all tasks in the current system, re-adjust the allocation order of each task waiting for the j-th resource to be allocated, and recalculate the probability of resource bottleneck of the j-th resource. , set the probability threshold , if it still exists , then according to the resource release priority, all resources occupied by the task with the largest value occupying the j-th type of resources will be released, and the released resources will be allocated in descending order according to the resource allocation priority of each task; and a task cancellation reminder will be sent to the task releasing the resources.

[0085] A data center resource management system based on cloud computing, the management system includes a resource bottleneck mining module, a resource allocation module, a bottleneck risk assessment module and an abnormal risk adjustment module;

[0086] The resource bottleneck mining module is used to obtain the resource set allocated and the remaining demand resource set that are not allocated after each task is generated in the past; analyze the situation where various types of resources in the remaining demand resource set are occupied by other tasks; collect the resource usage of each task in the past, divide the tasks into several types of task sets, and determine whether to mark various types of resources as bottleneck resources based on the task completion status of each task in the task set;

[0087] The resource allocation module is used to obtain the task waiting queues of various resources, analyze the resource allocation of each task in the task waiting queue of any type of resources, calculate the allocation priority of each task waiting to be allocated any type of resources, and generate the allocation order of any type of resources;

[0088] The bottleneck risk assessment module is used to obtain a task set of the same type as the task in the current system, analyze the task completion status of each task in the task set; determine the order of the task in the current system in the allocation sequence of a certain resource, analyze the task completion status of the remaining tasks in the allocation sequence in the historical task set of the same type, and predict the waiting time for the task in the current system to be assigned to a certain resource; calculate the probability of a resource bottleneck occurring in a certain resource, and determine whether to issue a bottleneck risk reminder;

[0089] The abnormal risk adjustment module is used to set the resource release priority for each task occupying a certain type of resources when there is a bottleneck risk reminder for a certain type of resources; analyze the resource allocation of each task in the current system to obtain the resource allocation priority of each task; analyze the resource usage of each task in the historical task set of the same type, and adjust the allocation order of each required resource in the required resource set of each task; re-analyze the resource allocation of each task to determine whether to send task cancellation reminders to several tasks.

[0090] Among them, the resource bottleneck mining module includes a resource allocation analysis unit and a bottleneck resource marking unit;

[0091] The resource allocation analysis unit is used to obtain the resource set allocated and the remaining demand resource set that are not allocated after each historical task is generated; analyze the situation in which various types of resources in the remaining demand resource set are occupied by other tasks; the bottleneck resource marking unit is used to collect the resource usage of each historical task, divide the tasks into several types of task sets, and determine whether to mark various types of resources as bottleneck resources based on the task completion status of each task in the task set.

[0092] Wherein, the resource allocation module includes a real-time resource allocation unit and an allocation sequence generation unit;

[0093] The real-time resource allocation unit is used to obtain the task waiting queues of various types of resources and analyze the resource allocation of each task in the task waiting queue of any type of resources; the allocation order generation unit is used to calculate the allocation priority of each task waiting for allocation of any type of resources and generate the allocation order of any type of resources.

[0094] Among them, the bottleneck risk assessment module includes a task completion analysis unit and a resource bottleneck prediction unit;

[0095] The task completion status analysis unit is used to obtain a task set of the same type as the tasks in the current system, and analyze the task completion status of each task in the task set; determine the order of the tasks in the current system in the allocation sequence of a certain resource, and analyze the task completion status of the remaining tasks in the allocation sequence in the historical task set of the same type; the resource bottleneck prediction unit is used to predict the waiting time for the tasks in the current system to be assigned to a certain resource; calculate the probability of a resource bottleneck occurring in the said certain resource, and determine whether to issue a bottleneck risk reminder.

[0096] Among them, the abnormal risk adjustment module includes a priority setting unit and a task cancellation reminder unit;

[0097] The priority setting unit is used to set the resource release priority for each task occupying a certain type of resource when there is a bottleneck risk reminder for the resource; analyze the resource allocation of each task in the current system to obtain the resource allocation priority of each task; the task cancellation reminder unit is used to analyze the resource usage of each task in the historical task set of the same type, and adjust the allocation order of each required resource in the required resource set of each task; re-analyze the resource allocation of each task to determine whether to send task cancellation reminders to several tasks.

[0098] There are 5 tasks in the current system. The first task requires resources A1 and A2, the second task requires resources A1 and A3, the third task requires resources A1 and A4, the fourth task requires resources A1, A2, A4, and the fifth task requires resources A2, A3, A4. Taking the first task as an example, the current waiting resource is A1, and the current waiting time is 1h. The total resource demand of the first task is set to 4, and the current demand resource ratio is 0.5.

[0099] Assume that the resources currently occupied by the first task are A2 and A4, and the occupation time is 1 hour, and both types of resources have task waiting queues. According to the formula:

[0100]

[0101] Among them, the number of tasks in the task waiting queue of A2 is 2, and the number of tasks in the task waiting queue of A4 is 3; the allocation priority of waiting for allocation A1 is 0.5×1+2×1+3×1=5.5; the allocation priority of the other 4 waiting times for any type of resources is obtained according to the above method.

[0102] Select the first task as a task set of the same type among all historical tasks, and obtain the theoretical completion time of 2h according to the task completion time of each task. Set the normal duration ratio threshold of A1 to 75%, and obtain the theoretical maximum duration of the first task from waiting for A1 to using A1 and completing the release to 2×0.75=1.5h; determine that the first task is ranked fourth in the allocation order of A1, and obtain the average task completion time of the first three tasks, which are 1h, 1h and 0.5h respectively. Because 1+1+0.5-1.5>0, according to the formula:

[0103]

[0104] The probability of resource bottleneck in A1 is 1-(1 / 1.5)²=55.56%. The probability threshold is set to 50%. Therefore, A1 is warned of bottleneck risk.

[0105] When the usage time distribution diagram of various resources is used by any task in the historical task set of the same type as the first task, it is found that the usage time period of A3 is before A1. Therefore, the order of A1 and A3 can be swapped, and A3 can be applied to the system first. When A3 is used up, A3 can be released and allocated to other tasks.

[0106] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0107] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A data center resource management method based on cloud computing, characterized in that: The management method comprises the following steps: Step S100: Obtain the resource set allocated and the remaining demand resource set not allocated after each task is generated in history; analyze the situation that various types of resources in the remaining demand resource set are occupied by other tasks; collect the resource usage of each task in history, divide the tasks into several types of task sets, and determine whether to mark various types of resources as bottleneck resources according to the task completion status of each task in the task set; Step S200: obtaining task waiting queues of various types of resources, analyzing resource allocation of each task in the task waiting queue of any type of resources, calculating the allocation priority of each task waiting to be allocated any type of resources, and generating an allocation order of any type of resources; Step S300: Obtain a task set of the same type as the task in the current system, analyze the task completion status of each task in the task set; determine the position of the task in the current system in the allocation sequence of a certain resource, analyze the task completion status of the remaining tasks in the allocation sequence in the historical task set of the same type, and predict the waiting time for the task in the current system to be assigned to a certain resource; calculate the probability of a resource bottleneck occurring in the certain resource, and determine whether to issue a bottleneck risk reminder; Step S400: when there is a bottleneck risk reminder for a certain type of resource, set the resource release priority for each task occupying the certain type of resource; analyze the resource allocation of each task in the current system to obtain the resource allocation priority of each task; analyze the resource usage of each task in the historical task set of the same type, and adjust the allocation order of each required resource in the required resource set of each task; re-analyze the resource allocation of each task to determine whether to send task cancellation reminders to several tasks; The step S100 includes the following steps: Step S101: Set the required resource set of the i-th task in history to , after the i-th task is generated, the resource set allocated is , the remaining required resource set after the i-th task is generated is ; Step S102: Obtain the task waiting queue of the j-th resource in the remaining required resource set , get the task waiting queue The number of tasks in is , assuming that after the i-th task is generated, the total number of tasks in the system is , the resource demand rate of the j-th resource is calculated to be ; Set the task waiting queue The completion time of the kth task occupying the jth type of resource is , the average time occupied by each task for the j-th resource is calculated to be ; Step S103: Use a performance monitoring tool to collect the usage of all resources for each task, judge the similarity of all historical tasks, and divide all historical tasks; after obtaining the task division, set the task completion time of the mth task in the task set to the same task set as the i-th task. , where the duration from starting to wait for the j-th resource to using the j-th resource and completing the release is , the actual duration ratio of the mth task to the jth resource is ; Step S104: Obtain the actual duration ratio of each task in the task set to the j-th resource, and obtain the average duration ratio of the j-th resource and the minimum actual duration ratio , according to the formula: Calculate the normal duration ratio threshold of each task in the task set for the j-th type of resource ;like , then the waiting process of the mth task in the task set for the jth resource is marked as abnormal waiting, and the jth resource is marked as a bottleneck resource; according to whether there is a bottleneck resource mark, all resources are divided into two categories; The step S200 includes the following steps: Step S201: Assume that there are x tasks in the current system, where the required resource set for the ath task is ; Get the resource that the a-th task is currently waiting for as the j-th resource, and get the waiting time that the a-th task is currently waiting for the j-th resource as ; Set the required resource set The number of resources required is , the current required resource ratio of the ath task is calculated to be ,in, is the total resource requirement of the ath task; Step S202: Get the resource set occupied by the ath task as , a collection of statistical resources In The occupation time of class resources is ; Get the first Check whether there is a task waiting queue for the class resource. If there is a task waiting queue, count the number of tasks in the task waiting queue. ; According to the formula: in, For the The task waiting queue of the class resource, To determine the function, if there is a task waiting queue ,but ,otherwise, ; Calculate the allocation priority of the a-th task waiting for the j-th resource to be allocated ; Sort all tasks waiting for allocation of the j-th resource from large to small according to the allocation priority, and generate the allocation order of tasks waiting for allocation of the j-th resource.

2. The method for managing data center resources based on cloud computing according to claim 1, characterized in that: The step S300 includes the following steps: Step S301: Select the ath task in the current system, and filter out a set of tasks of the same type as the ath task from all historical tasks; obtain the task completion time of each task in the task set, and calculate the average value to obtain the theoretical completion time of the ath task. ; Set the normal duration ratio threshold of each task for the j-th type of resource to , the theoretical maximum duration of the a-th task from starting to wait for the j-th resource to using the j-th resource and completing the release is ; Step S302: Determine the position of the ath task in the allocation sequence of the jth type of resources. ; Randomly select the bth task in the allocation sequence, obtain the task completion time of each task in the task set of the same type as the bth task, and calculate the average task completion time of the bth task; obtain the average task completion time of each task that is before the ath task in the allocation sequence of the jth resource, and obtain the theoretical waiting time for the ath task to be assigned to the jth resource: , according to the formula: in, is the judgment function, if ,but ,like ,but IF() is a judgment function, Sign is a bottleneck resource mark. If the j-th resource has a bottleneck resource mark in the historical allocation process, then ,otherwise, ; The probability of resource bottleneck occurring in the j-th resource in the current resource allocation process is calculated as ; Set a probability threshold ,like , then a bottleneck risk reminder will be issued for the j-th type of resources.

3. The method for managing data center resources based on cloud computing according to claim 2, characterized in that: The step S400 includes the following steps: Step S401: Set the bottleneck risk reminder for the j-th resource, obtain all tasks currently occupying the j-th resource, arbitrarily select the c-th task, and obtain the resource set occupied by the c-th task as ; Get the resource occupation time of the cth task from the beginning of occupying the jth resource to the current moment , if the resource collection If there are other types of resources that provide bottleneck risk reminders, then the resource set is obtained. The number of resources of the several types of resources described in ; The resource release priority of the cth task is calculated as ; Step S402: Obtain the required resource set of the dth task among all tasks in the current system ,like , then relative to the cth task currently occupying the jth type of resources, the dth task in the current system is used as the resource allocation target; when the dth task obtains all the occupied resources of the cth task, the number of resources with bottleneck risk reminders among all the resources of the dth task is counted , get the number of tasks that can meet the resource requirements of other tasks after the dth task releases all resources ; According to the formula: in, The waiting time for the required resources for the dth task, The allocation priority of the d-th task waiting for the j-th resource to be allocated, IF() is the judgment function, For the jth type of resource, if the required resource set contains the j-th type of resources, then ,otherwise, ; Calculate the resource allocation priority of the dth task ; Step S403: Get a task set of the same type as the d-th task in history, and get a usage time distribution diagram of various resources for any task in the task set; set the resource currently waiting for the g-th task as the j-th resource, and get the resource types whose usage time period is ahead of the j-th resource in the usage time distribution diagram. If the current resource set required by the d-th task is If there are several types of resources whose usage time periods are ahead of the j-th type of resources, the d-th task is removed from the waiting queue of the j-th type of resources, and the several types of resources are allocated to the d-th task; Step S404: adjust the resource demand order of all tasks in the current system, re-adjust the allocation order of each task waiting for the j-th resource to be allocated, and recalculate the probability of resource bottleneck of the j-th resource. , set the probability threshold , if it still exists , then according to the resource release priority, all resources occupied by the task with the largest value occupying the j-th type of resources will be released, and the released resources will be allocated in descending order according to the resource allocation priority of each task; and a task cancellation reminder will be sent to the task releasing the resources.

4. A data center resource management system, used to execute a data center resource management method based on cloud computing as claimed in any one of claims 1 to 3, characterized in that: The management system includes a resource bottleneck mining module, a resource allocation module, a bottleneck risk assessment module and an abnormal risk adjustment module; The resource bottleneck mining module is used to obtain the resource set allocated and the remaining demand resource set not allocated after each task is generated in history; analyze the situation where various types of resources in the remaining demand resource set are occupied by other tasks; collect the resource usage of each task in history, divide the tasks into several types of task sets, and judge whether to mark various types of resources as bottleneck resources according to the task completion status of each task in the task set; The resource allocation module is used to obtain task waiting queues of various types of resources, analyze the resource allocation of each task in the task waiting queue of any type of resources, calculate the allocation priority of each task waiting to be allocated any type of resources, and generate the allocation order of any type of resources; The bottleneck risk assessment module is used to obtain a task set of the same type as the task in the current system, analyze the task completion status of each task in the task set; determine the order of the task in the current system in the allocation sequence of a certain resource, analyze the task completion status of the remaining tasks in the allocation sequence in the historical task set of the same type, and predict the waiting time for the task in the current system to be allocated to a certain resource; Calculate the probability of a resource bottleneck occurring in the resource, and determine whether to issue a bottleneck risk reminder; The abnormal risk adjustment module is used to set the resource release priority for each task occupying a certain type of resources when there is a bottleneck risk reminder for the resource; analyze the resource allocation of each task in the current system to obtain the resource allocation priority of each task; analyze the resource usage of each task in the historical task set of the same type, and adjust the allocation order of each required resource in the required resource set of each task; re-analyze the resource allocation of each task to determine whether to send task cancellation reminders to several tasks.

5. A data center resource management system according to claim 4, characterized in that: The resource bottleneck mining module includes a resource allocation analysis unit and a bottleneck resource marking unit; The resource allocation analysis unit is used to obtain the resource set allocated and the remaining demand resource set that are not allocated after each historical task is generated; analyze the situation in which various types of resources in the remaining demand resource set are occupied by other tasks; the bottleneck resource marking unit is used to collect the resource usage of each historical task, divide the tasks into several types of task sets, and determine whether to mark various types of resources as bottleneck resources based on the task completion status of each task in the task set.

6. A data center resource management system according to claim 4, characterized in that: The resource allocation module includes a real-time resource allocation unit and an allocation sequence generation unit; The real-time resource allocation unit is used to obtain the task waiting queues of various types of resources and analyze the resource allocation status of each task in the task waiting queue of any type of resources; the allocation order generation unit is used to calculate the allocation priority of each task waiting for allocation of any type of resources and generate the allocation order of any type of resources.

7. A data center resource management system according to claim 4, characterized in that: The bottleneck risk assessment module includes a task completion analysis unit and a resource bottleneck prediction unit; The task completion status analysis unit is used to obtain a task set of the same type as the task in the current system, and analyze the task completion status of each task in the task set; determine the position of the task in the current system in the allocation sequence of a certain resource, and analyze the task completion status of the remaining tasks in the allocation sequence in the historical task set of the same type; the resource bottleneck prediction unit is used to predict the waiting time for the task in the current system to be allocated to a certain resource; The probability of a resource bottleneck occurring in the resource is calculated, and it is determined whether to issue a bottleneck risk reminder.

8. A data center resource management system according to claim 4, characterized in that: The abnormal risk adjustment module includes a priority setting unit and a task cancellation reminder unit; The priority setting unit is used to set the resource release priority for each task occupying a certain type of resource when there is a bottleneck risk reminder for the resource; analyze the resource allocation of each task in the current system to obtain the resource allocation priority of each task; the task cancellation reminder unit is used to analyze the resource usage of each task in the historical task set of the same type, and adjust the allocation order of each required resource in the required resource set of each task; re-analyze the resource allocation of each task to determine whether to send task cancellation reminders to several tasks.

Citation Information

Patent Citations

  • Relay protection setting-oriented cloud platform computing resource scheduling method and system

    CN114237866A

  • Resource allocation method in cloud computing system

    CN116909751A