WO2014110743A1 - Method and device for resource scheduling between data centers - Google Patents

Method and device for resource scheduling between data centers Download PDF

Info

Publication number
WO2014110743A1
WO2014110743A1 PCT/CN2013/070556 CN2013070556W WO2014110743A1 WO 2014110743 A1 WO2014110743 A1 WO 2014110743A1 CN 2013070556 W CN2013070556 W CN 2013070556W WO 2014110743 A1 WO2014110743 A1 WO 2014110743A1
Authority
WO
WIPO (PCT)
Prior art keywords
data center
data
load
occupancy rate
resource scheduling
Prior art date
Application number
PCT/CN2013/070556
Other languages
French (fr)
Chinese (zh)
Inventor
杨宇
赵永利
张�杰
杨辉
林毅
韩建蕊
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201380000070.0A priority Critical patent/CN103443771B/en
Priority to PCT/CN2013/070556 priority patent/WO2014110743A1/en
Publication of WO2014110743A1 publication Critical patent/WO2014110743A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Definitions

  • the present invention relates to the field of data resources, and in particular, to a resource scheduling method and device between data centers. Background technique
  • Virtualization technology is one of the technical cornerstones of building a cloud computing environment, especially server virtualization technology, which provides a powerful means of implementation for cloud computing at the infrastructure layer.
  • server virtualization technology provides a powerful means of implementation for cloud computing at the infrastructure layer.
  • artificial static resource allocation methods are often used among data centers. The inventor found that under the demand, the number of virtual machines running in the data center is increasing, and the requirements for resource scheduling of virtual machine clusters are getting higher and higher. In a large-scale virtual machine cluster, the number of virtual machines and the load of virtual machines will change frequently with the needs of users and applications. However, artificial dynamic resource adjustments will have obvious lags, and services need to be interrupted during the adjustment process.
  • the current resource scheduling method only considers the application resources or only considers the network resources, so that the virtual resource allocation on the physical machine is not balanced, the data center load is unbalanced, and resource utilization occurs in the virtual machines of some data centers.
  • the rate is decreased or the network blocking rate is increased. Therefore, in the application of the existing data center scheduling method, the data center does not have good adaptability to load changes, and the data center may waste resources or resources. The situation of the foot. Summary of the invention
  • the embodiments of the present invention provide a resource scheduling method and device between data centers, which can avoid resource waste or insufficient resources in the data center, improve the adaptability of the data center to load changes, and achieve non-stop service. Adjust resources and reduce network blocking rate.
  • the first aspect provides a data center resource scheduling method, including:
  • the load data is migrated from the source data center, and the load data is moved into the destination data center.
  • the selecting, by the determining, a source data center for migrating load data in the data center includes: if an average application resource occupancy rate of the data center If the upper limit of the load threshold is exceeded, the data center with the largest load of the application resource is selected in the data center, and the data center with the largest load of the application resource is used as the source data center for migrating the load data.
  • the load data to be migrated according to the source data center and the application resource occupancy rate and network resource occupancy rate of each data center are in the Selected in the data center for moving in load data
  • the destination data center includes:
  • the data center with the smallest integrated weight can bear is less than the load data to be moved out of the source data center, the data center with the smallest integrated weight is used as the destination data center;
  • the immigration load data that the data center can bear is greater than or equal to the remaining load data to be migrated in the source data center.
  • the selecting, in the data center, the source data center used to migrate the load data according to the determination result includes: if the average application resource occupancy rate of the data center Below the lower limit of the load threshold, the data center with the least load of the application resource is selected in the data center, and the data center with the smallest load of the application resource is used as the source data center for migrating the load data.
  • the load data to be migrated according to the source data center and the application resource occupancy rate and network resource occupancy rate of each data center are in the The destination data center selected for moving into the load data in the data center includes:
  • the method includes:
  • the data center with the largest integrated weight is used as the destination data center;
  • the second aspect provides a resource scheduling device, including:
  • a data processing unit configured to acquire an application resource occupancy rate of each data center, and calculate an average application resource occupancy rate of the data center according to the application resource occupancy rate;
  • a management unit configured to determine whether an average application resource occupancy rate of the data center forwarded by the data processing unit exceeds an upper limit of a load threshold or is lower than a lower limit of a load threshold;
  • a data center obtaining unit configured to select, according to the judgment result forwarded by the management unit, a source data center for migrating load data
  • the data center acquiring unit is further configured to select, according to the to-be-migrated load data of the source data center, the application resource occupancy rate and network resource occupancy rate of each data center, in the data center. a destination data center that is moved into the load data; the data processing unit is further configured to receive the source data center and the destination data center selected by the data center acquiring unit, and move out load data from the source data center, The load data is migrated to the destination data center.
  • the data center obtaining unit includes:
  • a first acquiring sub-unit configured to: if the average application resource occupancy rate of the data center exceeds the upper limit of the load threshold, select a data center with the largest load of application resources in the data center, and load the application resource The largest data center acts as the source data center for moving out of load data.
  • the data center obtaining unit further includes:
  • a first data processing sub-unit configured to calculate a load of the source data center, and determine the to-be-migrated load data according to the upper limit of the load threshold;
  • the first obtaining subunit is further configured to select, from the data center, at least one data center with a load lower than an average application resource occupancy of the data center as a resource scheduling data center set;
  • the first data processing sub-unit is further configured to acquire a network resource occupancy rate of each data center in the resource scheduling data center set, and schedule the application resource of each data center in the data center set according to the resource scheduling Calculating the comprehensive weight of each data center in the resource scheduling data center set by using the occupancy rate and the network resource occupancy rate; the first obtaining subunit is further configured to calculate the resource scheduling data center set
  • the data load that can be tolerated by each data center is selected, and the data center with the smallest integrated weight is selected from the resource scheduling data center set, and if the data center with the smallest comprehensive weight can bear the load data greater than When the load data of the source data center is to be moved out, the data center with the smallest integrated weight is used as the destination data center.
  • the first obtaining subunit is further configured to: if the data load that the data center with the smallest integrated weight can bear is less than the load data to be moved out of the source data center, the data center with the smallest integrated weight is used. As a destination data center;
  • the first obtaining subunit is further configured to select, in the resource scheduling data center set, the data center with a small integrated weight, and use the data center with a small integrated weight as another destination data center until The migrated load data that the data center selected in the resource scheduling data center set can bear is greater than or equal to the remaining load data to be migrated in the source data center.
  • the data center obtaining unit further includes:
  • a second acquiring sub-unit configured to: if the average application resource occupancy rate of the data center is lower than the lower limit of the load threshold, select a data center with a minimum load of application resources in the data center, and use the application resource The data center with the least load acts as the source data center for migrating load data.
  • the data center acquisition unit further includes:
  • a second data processing sub-unit configured to calculate a load of the source data center, and use a load of the source data center as load data to be migrated;
  • the second obtaining subunit is further configured to select, from the data center, at least one data center with a load higher than an average application resource occupancy of the data center as a resource scheduling data center set;
  • the second data processing sub-unit is further configured to acquire a network resource occupancy rate of each data center in the resource scheduling data center set, and perform scheduling data according to the resource Calculating the integrated resource weight of each data center in the resource scheduling data center set by using the application resource occupancy rate and the network resource occupancy rate of each data center in the central set; the second acquiring subunit is further used for calculating
  • the resource scheduling data center can receive the load data that can be tolerated in each data center, and select the data center with the largest comprehensive weight from the resource scheduling data center set, if the data center with the largest comprehensive weight can withstand If the migration load data is greater than the load data to be migrated from the source data center, the data center with the largest integrated weight is used as the destination data center.
  • the data center obtaining unit of the target includes:
  • the second obtaining sub-unit is further configured to: if the data load that the data center with the largest comprehensive weight can bear is less than the load data to be moved out of the source data center, the data center with the largest comprehensive weight As a destination data center;
  • the second obtaining subunit is further configured to select the data center with the second largest integrated weight in the resource scheduling data center set, and use the data center with the second largest integrated weight as another destination data center until The migrated load data that the data center selected in the resource scheduling data center set can bear is greater than or equal to the remaining load data to be migrated in the source data center.
  • a resource scheduling device including: at least one processor, a memory, a communication interface, and a bus, wherein the at least one processor, the memory, and the communication interface are connected by a bus and complete communication with each other, wherein:
  • the processor is configured to acquire an application resource occupancy rate of each data center by using the at least one communication interface, and calculate an average application resource occupancy rate of the data center according to the application resource occupancy rate;
  • the processor is configured to determine whether an average application resource occupancy rate of the data center that is forwarded by the processor exceeds a load threshold upper limit or is lower than a load threshold lower limit; and the processor is further configured to determine, according to the memory forwarding Resulting, by the at least one communication interface, selecting a source data center for migrating load data in the data center;
  • the processor is further configured to: according to the data to be moved out of the source data center, The application resource occupancy rate and network resource occupancy rate of each data center are selected by the at least one communication interface to select a destination data center for moving in load data in the data center;
  • the processor is further configured to receive, by the at least one communication interface, the source data center and the destination data center selected by the processor, and migrate load data from the source data center, where the load data is Move to the destination data center.
  • the method includes:
  • the processor is further configured to: if the average application resource occupancy of the data center exceeds the upper limit of the load threshold, select, by using the at least one communication interface, a data center with the largest load of application resources in the data center, The data center with the largest load of the application resources is used as a source data center for migrating load data.
  • the processor is further configured to calculate a load of the source data center, and determine the to-be-migrated load data according to the load threshold upper limit; select at least one load from the data center by using the at least one communication interface a data center that is lower than the average application resource occupancy of the data center as a resource scheduling data center set;
  • the processor is further configured to acquire, by using the at least one communication interface, a network resource occupancy rate of each data center in the resource scheduling data center set, and schedule each data center in the data center set according to the resource scheduling Calculating the comprehensive weight of each data center in the resource scheduling data center set by using the application resource occupancy rate and the network resource occupancy rate;
  • the processor is further configured to calculate, in the resource scheduling data center set, the load data that can be tolerated by each data center, and select the comprehensive weight from the resource scheduling data center set by using the at least one communication interface.
  • the smallest data center if the data load that the data center with the smallest integrated weight can bear is greater than the data to be moved out of the source data center, the data center with the smallest integrated weight is used as the destination data center.
  • the processor is further configured to: if the data load that can be tolerated by the data center with the smallest integrated weight is less than the load data to be moved out of the source data center, use the data center with the smallest integrated weight as the destination data. center;
  • the processor is further configured to select, by using the at least one communication interface, the data center with a small integrated weight in the resource scheduling data center set, and use the data center with a small overall weight as another purpose The data center, until the data center selected in the resource scheduling data center set can bear the inbound load data greater than or equal to the remaining data to be migrated in the source data center.
  • the method includes:
  • the processor is further configured to: if the average application resource occupancy of the data center is lower than the lower limit of the load threshold, select, by using the at least one communication interface, a data center with a minimum load of application resources in the data center.
  • the data center with the least load of the application resource is used as a source data center for migrating load data.
  • the method includes:
  • the processor is further configured to calculate a load of the source data center, and use a load of the source data center as load data to be migrated; select at least one load from the data center by using the at least one communication interface. a data center that is higher than the average application resource occupancy of the data center as a resource scheduling data center set;
  • the processor is further configured to acquire, by using the at least one communication interface, a network resource occupancy rate of each data center in the resource scheduling data center set, and schedule each data center in the data center set according to the resource scheduling Calculating the comprehensive weight of each data center in the resource scheduling data center set by using the application resource occupancy rate and the network resource occupancy rate;
  • the processor is further configured to calculate, in the resource scheduling data center set, the load data that can be tolerated by each data center, and select the comprehensive weight from the resource scheduling data center set by using the at least one communication interface.
  • the largest data center if the data load that the data center with the largest comprehensive weight can bear is greater than the data to be moved out of the source data center, the data center with the largest integrated weight is used as the destination data center.
  • the fifth possible implementation is combined, including:
  • the processor is further configured to: if the data load that can be tolerated by the data center with the largest comprehensive weight is smaller than the load data to be moved out of the source data center, use the data center with the largest integrated weight as the destination data.
  • Center if the data load that can be tolerated by the data center with the largest comprehensive weight is smaller than the load data to be moved out of the source data center, use the data center with the largest integrated weight as the destination data.
  • the processor is further configured to select, by using the at least one communication interface, the data center with the second largest integrated weight in the resource scheduling data center set, and use the data center with the second largest weight as another destination data.
  • the mobility load data that can be tolerated by the data center selected in the resource scheduling data center set is greater than or equal to the remaining load data to be migrated in the source data center.
  • the method and device for scheduling resources between data centers provided by the embodiments of the present invention can avoid resource waste and resource shortage in the data center by adopting adaptive resource scheduling between data centers, and improve the adaptation of the data center to load changes. Sexuality, resource-free adjustment can be achieved without interrupting the business, and the network blocking rate can be reduced.
  • FIG. 1 is a schematic flowchart of a resource scheduling method between data centers according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a resource scheduling method between data centers according to another embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of another resource center resource scheduling method according to another embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a cross-layer optimization control system according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a resource scheduling device according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of another resource scheduling device according to an embodiment of the present invention
  • FIG. 7 is still another resource scheduling device according to an embodiment of the present invention.
  • An embodiment of the present invention provides a data center resource scheduling method. Referring to FIG. 1, the method includes the following steps:
  • the upper limit of the load threshold and the lower limit of the load threshold are the upper threshold and the lower threshold of the application resource occupancy rate of the data center.
  • the upper limit of the load threshold and the lower limit of the load threshold are set in advance, and the setting of the upper limit of the load threshold or the lower limit of the load threshold comprehensively considers application resources and network resources, and is specifically acquired by a specific device operation.
  • application resources are mainly related to CPU and memory utilization
  • network resources are mainly related to bandwidth utilization.
  • the factors affecting application resources are not limited to this, and network resources are also delayed. It is related to factors such as jitter.
  • the load data is moved out from the source data center, and the load data is moved into the destination data center.
  • the process needs to consider the bandwidth occupancy rate. Therefore, it is necessary to jointly consider the application resource occupancy rate and network resource occupancy rate of each data center. Select the destination data center to migrate into the load data in the data center.
  • the data center inter-database resource scheduling method provided by the embodiment of the present invention can avoid resource waste and resource shortage by adopting adaptive resource scheduling between data centers, and can realize resource adjustment and reduce the non-interrupted service. Network blocking rate.
  • the embodiment of the present invention provides a method for scheduling resources between data centers, and the specific steps are as follows:
  • VM Ware virtual machine software
  • the upper limit of the load threshold and the lower limit of the load threshold are the upper threshold and the lower threshold of the application resource occupancy rate of the data center.
  • the load threshold upper limit and the load threshold lower limit are preset, and the load threshold upper limit or the load threshold lower limit is set in consideration of application resources and network resources, and is specifically acquired by a specific device operation.
  • application resources are mainly related to CPU and memory utilization, and network resources are mainly related to bandwidth utilization.
  • network resources are also related to factors such as delay and jitter.
  • steps 203 a to 212a are performed, as specifically shown in FIG. 2;
  • 206a Obtain a network resource occupancy rate of each data center in the resource scheduling data center set, and calculate each of the resource scheduling data center sets according to the application resource occupancy rate and the network resource occupancy rate of each data center in the resource scheduling data center set. The overall weight of the data center.
  • the comprehensive weight of each data center « * application resource occupancy rate + network resource occupancy rate.
  • the sum is the weight coefficient
  • the specific value is determined according to the specific operating environment.
  • the current load of the data center is mainly The CPU usage and memory usage of the data center are determined.
  • step 209a determining whether the immigration load data that the data center with the smallest integrated weight can bear is less than the load data to be moved out of the source data center, and if the data center with the smallest integrated weight can bear the load data that is greater than or equal to the source data center. After the load data is moved out, step 209a is performed;
  • a migrating data center set can be set, and by default, all destination data centers in the migpable data center set can independently carry the source data center.
  • the load data is to be moved out.
  • the data center with the smallest integrated weight is used as the destination data center, and the load data is moved out from the source data center, and the load data is moved into the destination data center.
  • the data center with the smallest integrated weight can be considered as a member of the migratable data center set. In this case, the data center can be migrated. If the set is not empty, the data center with the smallest integrated weight is selected as the member of the default destination data center set, and the load data to be moved out of the source data center is moved in the data center with the smallest integrated weight.
  • the result of the determination in step 208 is that the data load that the data center with the smallest integrated weight can bear is less than the load data to be moved out of the source data center, and steps 210a to 212a are performed.
  • the data center with the smallest integrated weight is used as the destination data center.
  • the data center with the smallest integrated weight cannot independently carry the data to be migrated from the source data center, and the data center set can be migrated. Therefore, the destination data center required for the resource scheduling process is multiple.
  • the data center with the smallest combined weight is a member of the default destination data center collection.
  • the migration load data is greater than or equal to the remaining load data to be migrated in the source data center.
  • the data center with the second smallest weight is also used as a member of the default destination data center set, and the process is repeated until the data load that the selected data center in the resource scheduling data center set can withstand is greater than or
  • the data of the to-be-migrated load data of the source data center is equal to or greater than the data center of the data center to be migrated.
  • the migrating data center collection is not empty, the data center with the load data to be moved out of the load data that is greater than or equal to the remaining data in the source data center is used as a member of the default destination data center set, and the source data is used.
  • the load data to be moved out of the center is moved to the destination data center in the destination data center set.
  • steps 203b to 212b are performed, as shown in FIG.
  • the comprehensive weight of each data center « * application resource occupancy rate + network resource occupancy rate.
  • the sum is the weight coefficient
  • the specific value is determined according to the specific operating environment.
  • computing resource scheduling data center collection in each data center can withstand the migration Into the load data, select the data center with the largest comprehensive weight from the resource scheduling data center set.
  • the current load of the data center is mainly determined by the CPU usage and memory usage of the data center.
  • step 209b determining whether the data load that the data center with the largest comprehensive weight can bear is less than the load data to be moved out of the source data center, and if the data load that the data center with the largest comprehensive weight can bear is greater than or equal to the data center of the source data center After the load data to be migrated, step 209b is performed;
  • a migrating data center set can be set, and by default, all destination data centers in the migpable data center set can independently carry the source data center.
  • the load data is to be moved out.
  • the data center with the largest integrated weight is used as the destination data center, and the load data is moved out from the source data center, and the load data is moved into the destination data center.
  • the data center with the largest integrated weight can independently carry the load data to be migrated from the source data center
  • the data center with the largest integrated weight can be considered as a member of the migrated data center set. In this case, the data center can be migrated. If the set is not empty, the data center with the largest integrated weight is selected as the member of the default destination data center set, and the load data to be moved out of the source data center is moved in the data center with the largest integrated weight.
  • the result of the determination in step 208b is that the data load that the data center with the largest integrated weight can bear is less than the load data to be migrated from the source data center, and steps 210b to 212b are performed.
  • the data center with the largest integrated weight is used as the destination data center.
  • the data center with the largest integrated weight cannot independently carry the load data to be migrated from the source data center, and the data center set can be migrated. Therefore, the destination data center required for the resource scheduling process is multiple.
  • the data center with the largest combined weight is a member of the default destination data center collection. 21 1b , selecting the data center with the second largest comprehensive weight in the resource scheduling data center set, and using the data center with the second largest weight as the data center of another destination, until the data center selected in the resource scheduling data center set can withstand the migration
  • the inbound load data is greater than or equal to the remaining load data to be migrated in the source data center.
  • the data center with the second largest weight is also used as a member of the default destination data center set, and the process is repeated until the data load that the selected data center in the resource scheduling data center set can withstand is greater than or The data of the to-be-migrated load data of the source data center is equal to or greater than the data center of the data center to be migrated.
  • the migrating data center collection is not empty, the data center with the load data to be moved out of the load data that is greater than or equal to the remaining data in the source data center is used as a member of the default destination data center set, and the source data is used.
  • the load data to be moved out of the center is moved to the destination data center in the destination data center set.
  • the data center in this embodiment is divided into two states, namely, an operating state and a dormant state.
  • the source data center in the running state After the source data center in the running state enters the destination data center, the source data center automatically enters a sleep state, so that the standby state consumes various resources. At the lowest level, avoid wasting resources.
  • the data centers in the resource scheduling process are all in the running data center. When the average load of the data center is lower than the lower limit of the load threshold, the load data is migrated from the source data center, and the load data is moved to the destination data center.
  • the resource balance of the data center is embodied on the physical machine, that is, when When there are few virtual machines on the physical machine and the application resources used on the physical machine are low, the virtual machines on the physical machine are collectively migrated to other physical machines, and the idle physical machines are shut down; when there are many virtual machines on the physical machine When the application resources used on the physical machine are too high, some virtual machines are migrated to other relatively idle physical machines, or more standby physical machines are started and some virtual machines are migrated to the standby physical machines, thereby realizing the physical machines.
  • Scheduling of data center resources because the virtual machine directly interacts with the client, so The load changes with time, responds to the change of the virtual machine load in time, and allocates more abundant resources to the high-loaded virtual machine through the scheduling of resources between the data centers to meet the virtual machine's demand for resources, thus achieving energy saving and improving energy.
  • the purpose of the ratio because the virtual machine directly interacts with the client, so The load changes with time, responds to the change of the virtual machine load in time, and allocates more abundant resources to the high-loaded virtual machine through the scheduling of resources between the data centers to meet the virtual machine's demand for resources, thus achieving energy saving and improving energy.
  • the data center resource scheduling method provided by the embodiment of the present invention can avoid resource waste and resource shortage in the data center by adopting adaptive resource scheduling between data centers, and improve the adaptability of the data center to load changes. Reaching resources without interruption can achieve resource adjustment and reduce network blocking rate. At the same time, the quality of service of users can be improved.
  • the cross-layer optimization control system includes: the resource scheduling device 3 1 provided by the embodiment of the present invention, and the user processes The device 32 and the database 33, wherein: the user processing device 32 is configured to provide an interface between the data center and the user plane provided by the embodiment of the present invention, process the service request of the user, and authenticate the service request authority of the user.
  • the resource scheduling device 3 1 is configured to implement the method according to the embodiment of the present invention to perform equalization and regulation on resources of the virtual data center in the database, including evaluating resource load status of the virtual machine for network characteristics of different types of resources, and according to the resource scheduling method. Select the virtual machine that needs to perform resources to realize the joint optimization of resources.
  • This module is the core module of the resource scheduling device. It senses the CPU and memory of the virtual resource and monitors the load of all virtual machines in real time. At the same time, the services that need resource scheduling are cached to ensure that the user services are continuously running during the migration process; the network resources are perceived, the network resource information is provided to the cross-layer optimization control system, and the resources are jointly optimized. At the same time, the calculation and resource reservation of the network layer path based on conditional constraints are completed. And the application resources processed in the data center to realize the transmission of application resources.
  • the resource scheduling device 4 provided by the embodiment of the present invention is applied to the cross-layer optimization control system to implement the foregoing data center resource scheduling method.
  • the device includes: a data processing unit 41, a management unit 42 and The data center obtaining unit 43 has a towel:
  • the data processing unit 41 is configured to acquire an application resource occupancy rate of each data center, and calculate an average application resource occupancy rate of the data center according to the application resource occupancy rate.
  • the management unit 42 is configured to determine whether the average application resource occupancy of the data center forwarded by the data processing unit 41 exceeds a load threshold upper limit or is lower than a load threshold lower limit.
  • the data center obtaining unit 43 is configured to select a source data center for migrating load data according to the judgment result forwarded by the management unit 42.
  • the data center obtaining unit 43 is further configured to select, in the data center, a destination data center for moving in the load data according to the to-be-migrated load data of the source data center and the application resource occupancy rate and the network resource occupancy rate of each data center.
  • the data processing unit 41 is further configured to receive the source data center and the destination data center selected by the data center acquiring unit 43 and migrate the load data from the source data center to move the load data into the destination data center.
  • the resource scheduling device provided by the embodiment of the present invention can avoid resource waste and resource shortage in the data center by adopting adaptive resource scheduling between data centers, thereby improving the adaptability of the data center to load changes, and achieving non-interruption.
  • the business can adjust the resources and reduce the network blocking rate.
  • the data center obtaining unit 43 further includes: a first obtaining subunit 43 l a and a first data processing subunit 432a, where:
  • the first obtaining sub-unit 43 1 a is configured to: if the average application resource occupancy rate of the data center exceeds the upper limit of the load threshold, select a data center with the largest load of application resources in the data center, and maximize the load of the application resource.
  • the data center acts as the source data center for migrating load data.
  • the first data processing sub-unit 432a is configured to calculate a load of the source data center, and determine the to-be-migrated load data according to the upper limit of the load threshold.
  • the first obtaining sub-unit 43 1 a is configured to select, from the data center, at least one data center that has an average application resource occupancy lower than the data center as the resource scheduling data center set.
  • the first data processing sub-unit 432a is configured to acquire a network resource occupancy rate of each data center in the resource scheduling data center set, and schedule the data center collection according to the resource.
  • the application resource occupancy rate and network resource occupancy rate of each data center calculate the comprehensive weight of each data center in the resource scheduling data center set.
  • the first obtaining subunit 431a is further configured to calculate the inbound load data that each data center in the resource scheduling data center set can bear, and select the data center with the smallest integrated weight from the resource scheduling data center set, if the data with the smallest integrated weight is If the load data that the center can bear is greater than the data to be moved out of the source data center, the data center with the smallest integrated weight is used as the destination data center.
  • the first obtaining sub-unit 431a is further configured to use the data center with the smallest integrated weight as the destination data center if the load data that can be accepted by the data center with the smallest integrated weight is less than the load data to be moved out of the source data center.
  • the first obtaining sub-unit 431a is further configured to select a data center with a small integrated weight in the resource scheduling data center set, and use the data center with the smaller weight as the other destination data center until the resource scheduling data center set
  • the selected load data that the selected data center can bear is greater than or equal to the remaining load data to be moved out of the source data center.
  • the device further includes:
  • the data center obtaining unit further includes: a second obtaining subunit 431b and a second data processing subunit 432b, wherein:
  • the second obtaining sub-unit 431b is configured to: if the average application resource occupancy rate of the data center is lower than the lower limit of the load threshold, select a data center with the least load of the application resource in the data center, and minimize the load of the application resource.
  • the data center acts as a source data center for migrating load data.
  • the second data processing sub-unit 432b is configured to calculate the load of the source data center, and the load of the source data center is used as the data to be migrated out.
  • the second obtaining sub-unit 431b is further configured to select, from the data center, at least one data center with a load higher than the average application resource occupancy of the data center as the resource scheduling data center set.
  • the second data processing sub-unit 432b is further configured to acquire a resource scheduling data center set.
  • the network resource occupancy rate of each data center is calculated, and the comprehensive weight of each data center in the resource scheduling data center set is calculated according to the application resource occupancy rate and the network resource occupancy rate of each data center in the resource scheduling data center set.
  • the second obtaining sub-unit 43 1 b is further configured to calculate the immigration load data that each data center in the resource scheduling data center set can bear, and select the data center with the largest comprehensive weight from the resource scheduling data center set, if the comprehensive weight is the largest
  • the data load that the data center can withstand is greater than the data to be moved out of the source data center, and the data center with the largest integrated weight is used as the destination data center.
  • the second obtaining sub-unit 43 1 b is further configured to use the data center with the largest comprehensive weight as the destination data center if the load data that can be accepted by the data center with the largest integrated weight is less than the load data to be moved out of the source data center.
  • the second obtaining sub-unit 43 1 b is further configured to select a data center with the second largest integrated weight in the resource scheduling data center set, and use the data center with the second largest weight as the other destination data center until the data center is collected in the resource scheduling data center.
  • the migrated load data that the selected data center can withstand is greater than or equal to the remaining load data to be moved out of the source data center.
  • the data center in this embodiment is divided into two states, namely, an operating state and a dormant state.
  • the source data center in the running state After the source data center in the running state enters the destination data center, the source data center automatically enters a sleep state, so that the standby state consumes various resources. At the lowest level, avoid wasting resources.
  • the data center in the process of resource scheduling is the data center in the running state. When the average load of the data center is lower than the lower limit of the load threshold, the load data is migrated from the source data center, and the load data is moved to the destination data center to reduce waste of resources.
  • the resource scheduling device provided by the embodiment of the present invention can avoid resource waste and resource shortage in the data center by adopting adaptive resource scheduling between data centers, thereby improving the adaptability of the data center to load changes, and achieving non-interruption.
  • the business can adjust the resources and reduce the network blocking rate. At the same time, the quality of service of users can be improved.
  • An embodiment of the present invention provides a resource scheduling device 5.
  • the device includes: at least one processor 51, a memory 52, a communication interface 53, and a bus 54, At least one processor 51, memory 52 and communication interface 53 are connected by bus 54 and communicate with each other, wherein:
  • the bus 54 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Wait.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus 54 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus. Its towel:
  • Memory 52 is for storing executable program code, the program code including computer operating instructions.
  • Memory 52 may contain high speed RAM memory and may also include non-volatile memory, for example: 3 ⁇ 4 port at least one disk memory.
  • the processor 51 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more configured to implement the embodiments of the present invention. integrated circuit.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the communication interface 53 is mainly used to implement communication between devices in this embodiment.
  • the processor 51 is configured to obtain an application resource occupancy rate of each data center by using at least one communication interface 53, and calculate an average application resource occupancy rate of the data center according to the application resource occupancy rate.
  • the memory 52 is configured to determine whether the average application resource occupancy of the data center forwarded by the processor 51 exceeds a load threshold upper limit or is lower than a load threshold lower limit.
  • the processor 51 is further configured to select, in the data center, the source data center for migrating the load data through the at least one communication interface 53 according to the judgment result of the forwarding by the memory 52.
  • the processor 51 is further configured to select, in the data center, the data to be migrated into the data center according to the to-be-migrated load data of the source data center and the application resource occupancy rate and the network resource occupancy rate of each data center by using at least one communication interface 53. Destination data center.
  • the processor 51 is further configured to receive, by using the at least one communication interface 53, the source data center and the destination data center selected by the processor 51, and migrate the load data from the source data center, and The load data is moved into the destination data center.
  • the processor 5 1 is further configured to: if the average application resource occupancy of the data center exceeds the upper limit of the load threshold, select, by using at least one communication interface 53, a data center with the largest load of application resources in the data center, The data center with the largest load of application resources is used as the source data center for migrating load data.
  • the processor 5 1 is further configured to calculate a load of the source data center, and determine the to-be-migrated load data according to the load threshold upper limit; select at least one load from the data center by using the at least one communication interface 53 to be lower than the average application resource occupation of the data center.
  • the rate of the data center serves as a collection of resource scheduling data centers.
  • the processor 5 1 is further configured to acquire, by using at least one communication interface, a network resource occupancy rate of each data center in the resource scheduling data center set, and schedule application resource occupancy rate and network resources of each data center in the data center set according to the resource scheduling.
  • the occupancy calculation calculates the overall weight of each data center in the data center collection.
  • the processor 5 1 is further configured to calculate the immigration load data that each data center in the resource scheduling data center set can bear, and select the data center with the smallest integrated weight from the resource scheduling data center set through the at least one communication interface 53.
  • the data load that can be tolerated by the data center with the smallest weight is greater than the load data to be migrated from the source data center, and the data center with the smallest integrated weight is used as the destination data center.
  • the processor 5 1 is further configured to use the data center with the smallest integrated weight as the destination data center if the data load that the data center with the smallest integrated weight can bear is less than the load data to be moved out of the source data center.
  • the processor 5 1 is further configured to select, by using at least one communication interface 53, a data center with a small integrated weight in the resource scheduling data center set, and use the data center with the smaller weight as the other destination data center until the resource scheduling
  • the data load that the data center selected in the data center collection can withstand is greater than or equal to the remaining load data to be migrated in the source data center.
  • the processor 51 is further configured to: if the average application resource occupancy of the data center is lower than the lower limit of the load threshold, select, by using at least one communication interface 53, a data center with the least load of application resources in the data center. , minimizing the load of application resources
  • the data center acts as a source data center for migrating load data.
  • the processor 5 1 is further configured to calculate a load of the source data center, and use the load of the source data center as the data to be migrated out; select at least one load from the data center by using at least one communication interface 53 to be higher than the average application of the data center.
  • the data center of resource occupancy is used as a collection of resource scheduling data centers.
  • the processor 5 1 is further configured to acquire, by using the at least one communication interface 53, the network resource occupancy rate of each data center in the resource scheduling data center set, and schedule application resource occupancy rate and network of each data center in the data center set according to the resource scheduling.
  • Resource occupancy calculation The overall weight of each data center in the resource scheduling data center collection.
  • the processor 5 1 is further configured to calculate the immigration load data that each data center in the resource scheduling data center set can bear, and select the data center with the largest integrated weight from the resource scheduling data center set through at least one communication interface, if the comprehensive weight The data load that the largest data center can withstand is greater than the data to be moved out of the source data center, and the data center with the largest integrated weight is used as the destination data center.
  • the processor 5 1 is further configured to use the data center with the largest integrated weight as the destination data center if the data load that the data center with the largest integrated weight can bear is less than the data to be moved out of the source data center.
  • the processor 5 1 is further configured to select, by using the at least one communication interface 53, the data center with the second largest integrated weight in the resource scheduling data center set, and use the data center with the second largest weight as the other destination data center until the resource scheduling data
  • the data load that the selected data center can bear in the central set is greater than or equal to the remaining load data to be moved out of the source data center.
  • the resource scheduling device provided by the embodiment of the present invention can avoid resource waste and resource shortage in the data center by adopting adaptive resource scheduling between data centers, thereby improving the adaptability of the data center to load changes, and achieving non-interruption.
  • the business can adjust the resources and reduce the network blocking rate. At the same time, the quality of service of users can be improved.

Abstract

The present invention relates to the field of data resources. Embodiments of the present invention provide a method and a device for resource scheduling between data centers, which can avoid resource waste and resource insufficiency in the data centers, improve the adaptability of the data centers to load changes, achieve resource adjustment without interrupting a service, and reduce a network blocking rate. The method specifically comprises: performing unified management and scheduling of computing resources by using an adaptive resource scheduling method between data centers. The present invention is applicable to scheduling of virtual resources between data centers.

Description

一种数据中心间资源调度方法和设备  Data center inter-database resource scheduling method and device
技术领域 Technical field
本发明涉及数据资源领域, 尤其涉及一种数据中心间资源调度 方法和设备。 背景技术  The present invention relates to the field of data resources, and in particular, to a resource scheduling method and device between data centers. Background technique
当前世界各地建立庞大的数据中心, 实现海量的计算任务和海 量信息的存储, 为用户提供云计算服务, 并在商业应用上取得了成 功。 云计算技术的迅速发展带动了数据中心的变革, 数据中心可以 有效整合资源、 提高资源利用率、 节约能源、 降低运行成本。 数据 中心是信息系统的核心, 主要功能是通过网络向用户提供信息服务。 数据中心通过虚拟化技术将资源构建成动态的虚拟资源池, 使用虚 拟资源管理技术可以实现云计算资源自动部署、 动态扩展和按需分 配的功能。  At present, huge data centers are established around the world to realize massive computing tasks and storage of massive information, to provide users with cloud computing services, and to achieve success in commercial applications. The rapid development of cloud computing technology has led to the transformation of data centers, which can effectively integrate resources, improve resource utilization, save energy, and reduce operating costs. The data center is the core of the information system. Its main function is to provide information services to users through the network. Data centers use virtualization technology to build resources into dynamic virtual resource pools. Virtual resource management technologies enable automatic deployment, dynamic expansion, and on-demand allocation of cloud computing resources.
虚拟化技术是构建云计算环境的技术基石之一, 特别是服务器 虚拟化技术, 在基础设施层为云计算提供了强有力的实现手段。 目 前, 在服务器虚拟化技术的应用领域, 数据中心间多采用人工静态 的资源分配方法。 发明人发现, 在需求的驱使下, 数据中心运行的 虚拟机数量越来越多, 对虚拟机集群的资源调度的要求越来越高。 在大规模的虚拟机集群中, 虚拟机数目和虚拟机的负载会随用户和 应用的需求而经常变化, 而人工的动态资源调整会有明显的滞后性, 在调整过程中需要中断业务, 影响客户的服务质量, 此外, 目前的 资源调度方法只考虑应用资源或者只考虑网络资源, 以至于物理机 上虚拟资源分配不均衡, 使得数据中心负载不均衡, 在部分数据中 心的虚拟机上出现资源利用率下降或网络阻塞率增高的问题, 因此 现有的数据中心间资源的调度方法应用过程中, 数据中心对负载变 化不具有良好的适应性, 此外会使数据中心产生资源浪费或资源不 足的情况。 发明内容 Virtualization technology is one of the technical cornerstones of building a cloud computing environment, especially server virtualization technology, which provides a powerful means of implementation for cloud computing at the infrastructure layer. At present, in the application field of server virtualization technology, artificial static resource allocation methods are often used among data centers. The inventor found that under the demand, the number of virtual machines running in the data center is increasing, and the requirements for resource scheduling of virtual machine clusters are getting higher and higher. In a large-scale virtual machine cluster, the number of virtual machines and the load of virtual machines will change frequently with the needs of users and applications. However, artificial dynamic resource adjustments will have obvious lags, and services need to be interrupted during the adjustment process. The quality of service of the customer, in addition, the current resource scheduling method only considers the application resources or only considers the network resources, so that the virtual resource allocation on the physical machine is not balanced, the data center load is unbalanced, and resource utilization occurs in the virtual machines of some data centers. The rate is decreased or the network blocking rate is increased. Therefore, in the application of the existing data center scheduling method, the data center does not have good adaptability to load changes, and the data center may waste resources or resources. The situation of the foot. Summary of the invention
本发明的实施例提供一种数据中心间资源调度方法和设备, 可 以避免数据中心上资源浪费或资源不足的现象发生, 提高了数据中 心对负载变化的适应性, 达到了不间断业务便可实现对资源的调整, 并降低网络阻塞率。  The embodiments of the present invention provide a resource scheduling method and device between data centers, which can avoid resource waste or insufficient resources in the data center, improve the adaptability of the data center to load changes, and achieve non-stop service. Adjust resources and reduce network blocking rate.
为达到上述目的, 本发明的实施例采用如下技术方案:  In order to achieve the above object, the embodiment of the present invention adopts the following technical solutions:
第一方面, 提供一种数据中心间资源调度方法, 包括:  The first aspect provides a data center resource scheduling method, including:
获取每个数据中心的应用资源占用率, 根据所述应用资源占用 率计算数据中心的平均应用资源占用率;  Obtain an application resource occupancy rate of each data center, and calculate an average application resource occupancy rate of the data center according to the application resource occupancy rate;
判断所述数据中心的平均应用资源占用率是否超出负载阈值上 限或者低于负载阈值下限;  Determining whether the average application resource occupancy rate of the data center exceeds a load threshold upper limit or is lower than a load threshold lower limit;
根据判断结果在所述数据中心中选取用于迁出负载数据的源数 据中心;  Selecting, in the data center, a source data center for migrating load data according to the judgment result;
根据所述源数据中心的待迁出负载数据及所述每个数据中心的 所述应用资源占用率和网络资源占用率在所述数据中心中选取用于 迁入负载数据的目的数据中心;  Selecting, in the data center, a destination data center for moving in load data according to the to-be-migrated load data of the source data center and the application resource occupancy rate and network resource occupancy rate of each data center;
从所述源数据中心迁出负载数据, 并将所述负载数据迁入所述 目 的数据中心。  The load data is migrated from the source data center, and the load data is moved into the destination data center.
在第一种可能的实现方式中, 结合第一方面, 所述根据判断结 果在所述数据中心中选取用于迁出负载数据的源数据中心包括: 若所述数据中心的平均应用资源占用率超出所述负载阈值上 限, 则在所述数据中心中选取应用资源的负载最大的数据中心, 将 所述应用资源的负载最大的数据中心作为用于迁出负载数据的源数 据中心。  In a first possible implementation, in combination with the first aspect, the selecting, by the determining, a source data center for migrating load data in the data center includes: if an average application resource occupancy rate of the data center If the upper limit of the load threshold is exceeded, the data center with the largest load of the application resource is selected in the data center, and the data center with the largest load of the application resource is used as the source data center for migrating the load data.
在第二种可能的实现方式中, 结合第一方面, 所述根据所述源 数据中心的待迁出负载数据及所述每个数据中心的所述应用资源占 用率和网络资源占用率在所述数据中心中选取用于迁入负载数据的 目的数据中心包括: In a second possible implementation, in combination with the first aspect, the load data to be migrated according to the source data center and the application resource occupancy rate and network resource occupancy rate of each data center are in the Selected in the data center for moving in load data The destination data center includes:
计算所述源数据中心的负载, 并根据所述负载阈值上限确定所 述待迁出负载数据;  Calculating a load of the source data center, and determining the to-be-migrated load data according to the load threshold upper limit;
从所述数据中心中选取至少一个负载低于所述数据中心的平均 应用资源占用率的数据中心作为资源调度数据中心集合;  Selecting, from the data center, at least one data center whose load is lower than the average application resource occupancy of the data center as a resource scheduling data center set;
获取所述资源调度数据中心集合中每个数据中' ^的网络资源占 用率, 并根据所述资源调度数据中心集合中每个数据中心的所述应 用资源占用率和所述网络资源占用率计算所述资源调度数据中心集 合中每个数据中心的综合权重;  Obtaining a network resource occupancy rate of each of the data in the resource scheduling data center set, and calculating, according to the application resource occupancy rate and the network resource occupancy rate of each data center in the resource scheduling data center set. The resource schedules a comprehensive weight of each data center in the data center set;
计算所述资源调度数据中心集合中每个数据中心可承受的迁入 负载数据, 从所述资源调度数据中心集合中选取所述综合权重最小 的数据中心, 若所述综合权重最小的数据中心可承受的迁入负载数 据大于所述源数据中心的待迁出负载数据, 则将所述综合权重最小 的数据中心作为 目的数据中心。  Calculating the immigration load data that can be tolerated by each data center in the resource scheduling data center set, and selecting the data center with the smallest integrated weight from the resource scheduling data center set, if the data center with the smallest integrated weight is available If the load data to be migrated is greater than the load data to be migrated from the source data center, the data center with the smallest integrated weight is used as the destination data center.
在第三种可能的实现方式中, 结合第二种可能的实现方式, 包 括:  In a third possible implementation, combined with the second possible implementation, the following:
若所述综合权重最小的数据中心可承受的迁入负载数据小于所 述源数据中心的待迁出负载数据, 则将所述综合权重最小的数据中 心作为 目的数据中心;  If the data load that the data center with the smallest integrated weight can bear is less than the load data to be moved out of the source data center, the data center with the smallest integrated weight is used as the destination data center;
在所述资源调度数据中心集合中选取所述综合权重次小的数据 中心, 并将所述综合权重次小的数据中心作为另一目 的数据中心, 直至在所述资源调度数据中心集合中选取的数据中心可承受的迁入 负载数据大于或等于所述源数据中心剩余的待迁出负载数据。  Selecting, in the resource scheduling data center set, the data center with the second smallest weight, and using the data center with the smaller overall weight as the other destination data center until selected in the resource scheduling data center set. The immigration load data that the data center can bear is greater than or equal to the remaining load data to be migrated in the source data center.
在第四种可能的实现方式中, 结合第一方面, 所述根据判断结 果在所述数据中心中选取用于迁出负载数据的源数据中心包括: 若所述数据中心的平均应用资源占用率低于所述负载阈值下 限, 则在所述数据中心中选取应用资源的负载最小的数据中心, 将 所述应用资源的负载最小的数据中心作为用于迁出负载数据的源数 据中心。 在第五种可能的实现方式中, 结合第一方面, 所述根据所述源 数据中心的待迁出负载数据及所述每个数据中心的所述应用资源占 用率和网络资源占用率在所述数据中心中选取用于迁入负载数据的 目的数据中心包括: In a fourth possible implementation, in combination with the first aspect, the selecting, in the data center, the source data center used to migrate the load data according to the determination result includes: if the average application resource occupancy rate of the data center Below the lower limit of the load threshold, the data center with the least load of the application resource is selected in the data center, and the data center with the smallest load of the application resource is used as the source data center for migrating the load data. In a fifth possible implementation, in combination with the first aspect, the load data to be migrated according to the source data center and the application resource occupancy rate and network resource occupancy rate of each data center are in the The destination data center selected for moving into the load data in the data center includes:
计算所述源数据中心的负载, 并将所述源数据中心的负载作为 待迁出负载数据;  Calculating a load of the source data center, and using the load of the source data center as load data to be migrated;
从所述数据中心中选取至少一个负载高于所述数据中心的平均 应用资源占用率的数据中心作为资源调度数据中心集合;  Selecting, from the data center, at least one data center with a load higher than an average application resource occupancy of the data center as a resource scheduling data center set;
获取所述资源调度数据中心集合中每个数据中心的网络资源占 用率, 并根据所述资源调度数据中心集合中每个数据中心的所述应 用资源占用率和所述网络资源占用率计算所述资源调度数据中心集 合中每个数据中心的综合权重;  Obtaining a network resource occupancy rate of each data center in the resource scheduling data center set, and calculating, according to the application resource occupancy rate and the network resource occupancy rate of each data center in the resource scheduling data center set, Resource scheduling The overall weight of each data center in the data center collection;
计算所述资源调度数据中心集合中每个数据中心可承受的迁入 负载数据, 从所述资源调度数据中心集合中选取所述综合权重最大 的数据中心, 若所述综合权重最大的数据中心可承受的迁入负载数 据大于所述源数据中心的待迁出负载数据, 则将所述综合权重最大 的数据中心作为 目的数据中心。  Calculating the load data that can be tolerated by each data center in the data scheduling data center set, and selecting the data center with the largest comprehensive weight from the resource scheduling data center set, if the data center with the largest comprehensive weight can be If the load data to be migrated is greater than the data to be moved out of the source data center, the data center with the largest integrated weight is used as the destination data center.
在第六种可能的实现方式中, 结合第五种可能的实现方式, 包 括:  In a sixth possible implementation, in combination with the fifth possible implementation, the method includes:
若所述综合权重最大的数据中心可承受的迁入负载数据小于所 述源数据中心的待迁出负载数据, 则将所述综合权重最大的数据中 心作为 目的数据中心;  If the data load that the data center with the largest integrated weight can bear is less than the load data to be migrated from the source data center, the data center with the largest integrated weight is used as the destination data center;
在所述资源调度数据中心集合选取所述综合权重次大的数据中 心, 并将所述综合权重次大的数据中心作为另一目 的数据中心, 直 至在所述资源调度数据中心集合中选取的数据中心可承受的迁入负 载数据大于或等于所述源数据中心剩余的待迁出负载数据。  Selecting, in the resource scheduling data center set, the data center with the second largest integrated weight, and using the data center with the second largest weight as the other destination data center until the data selected in the resource scheduling data center set The load data that the center can bear is greater than or equal to the remaining load data to be moved out of the source data center.
第二方面提供一种资源调度设备, 包括:  The second aspect provides a resource scheduling device, including:
数据处理单元, 用于获取每个数据中心的应用资源占用率, 根 据所述应用资源占用率计算所述数据中心的平均应用资源占用率; 管理单元, 用于判断所述数据处理单元转发的所述数据中心的 平均应用资源占用率是否超出 负载阈值上限或者低于负载阈值下 限; a data processing unit, configured to acquire an application resource occupancy rate of each data center, and calculate an average application resource occupancy rate of the data center according to the application resource occupancy rate; a management unit, configured to determine whether an average application resource occupancy rate of the data center forwarded by the data processing unit exceeds an upper limit of a load threshold or is lower than a lower limit of a load threshold;
数据中心获取单元, 用于根据所述管理单元转发的判断结果选 取用于迁出负载数据的源数据中心;  a data center obtaining unit, configured to select, according to the judgment result forwarded by the management unit, a source data center for migrating load data;
所述数据中心获取单元, 还用于根据所述源数据中心的待迁出 负载数据及所述每个数据中心的所述应用资源占用率和网络资源占 用率在所述数据中心中选取用于迁入负载数据的目 的数据中心; 所述数据处理单元, 还用于接收所述数据中心获取单元选取的 所述源数据中心和所述目 的数据中心并从所述源数据中心迁出负载 数据, 将所述负载数据迁入所述目的数据中心。  The data center acquiring unit is further configured to select, according to the to-be-migrated load data of the source data center, the application resource occupancy rate and network resource occupancy rate of each data center, in the data center. a destination data center that is moved into the load data; the data processing unit is further configured to receive the source data center and the destination data center selected by the data center acquiring unit, and move out load data from the source data center, The load data is migrated to the destination data center.
在第一种可能的实现方式中, 结合第二方面, 所述据中心获取 单元包括:  In a first possible implementation manner, in combination with the second aspect, the data center obtaining unit includes:
第一获取子单元, 用于若所述数据中心的平均应用资源占用率 超出所述负载阈值上限, 则在所述数据中心中选取应用资源的负载 最大的数据中心, 将所述应用资源的负载最大的数据中心作为用于 迁出负载数据的源数据中心。  a first acquiring sub-unit, configured to: if the average application resource occupancy rate of the data center exceeds the upper limit of the load threshold, select a data center with the largest load of application resources in the data center, and load the application resource The largest data center acts as the source data center for moving out of load data.
在第二种可能的实现方式中, 结合第二方面, 所述数据中心获 取单元还包括:  In a second possible implementation, in combination with the second aspect, the data center obtaining unit further includes:
第一数据处理子单元, 用于计算所述源数据中心的负载, 并根 据所述负载阈值上限确定所述待迁出负载数据;  a first data processing sub-unit, configured to calculate a load of the source data center, and determine the to-be-migrated load data according to the upper limit of the load threshold;
所述第一获取子单元, 还用于从所述数据中心中选取至少一个 负载低于所述数据中心的平均应用资源占用率的数据中心作为资源 调度数据中心集合;  The first obtaining subunit is further configured to select, from the data center, at least one data center with a load lower than an average application resource occupancy of the data center as a resource scheduling data center set;
所述第一数据处理子单元, 还用于获取所述资源调度数据中心 集合中每个数据中心的网络资源占用率, 并根据所述资源调度数据 中心集合中每个数据中心的所述应用资源占用率和所述网络资源占 用率计算所述资源调度数据中心集合中每个数据中心的综合权重; 所述第一获取子单元, 还用于计算所述资源调度数据中心集合 中每个数据中心可承受的迁入负载数据, 从所述资源调度数据中心 集合中选取所述综合权重最小的数据中心, 若所述综合权重最小的 数据中心可承受的迁入负载数据大于所述源数据中心的待迁出负载 数据, 则将所述综合权重最小的数据中心作为目 的数据中心。 The first data processing sub-unit is further configured to acquire a network resource occupancy rate of each data center in the resource scheduling data center set, and schedule the application resource of each data center in the data center set according to the resource scheduling Calculating the comprehensive weight of each data center in the resource scheduling data center set by using the occupancy rate and the network resource occupancy rate; the first obtaining subunit is further configured to calculate the resource scheduling data center set The data load that can be tolerated by each data center is selected, and the data center with the smallest integrated weight is selected from the resource scheduling data center set, and if the data center with the smallest comprehensive weight can bear the load data greater than When the load data of the source data center is to be moved out, the data center with the smallest integrated weight is used as the destination data center.
在第三种可能的实现方式中, 结合第二种可能的实现方式, 包 括:  In a third possible implementation, combined with the second possible implementation, the following:
所述第一获取子单元, 还用于若所述综合权重最小的数据中心 可承受的迁入负载数据小于所述源数据中心的待迁出负载数据, 则 将所述综合权重最小的数据中心作为 目 的数据中心;  The first obtaining subunit is further configured to: if the data load that the data center with the smallest integrated weight can bear is less than the load data to be moved out of the source data center, the data center with the smallest integrated weight is used. As a destination data center;
所述第一获取子单元, 还用于在所述资源调度数据中心集合中 选取所述综合权重次小的数据中心, 并将所述综合权重次小的数据 中心作为另一目 的数据中心, 直至在所述资源调度数据中心集合中 选取的数据中心可承受的迁入负载数据大于或等于所述源数据中心 剩余的待迁出负载数据。  The first obtaining subunit is further configured to select, in the resource scheduling data center set, the data center with a small integrated weight, and use the data center with a small integrated weight as another destination data center until The migrated load data that the data center selected in the resource scheduling data center set can bear is greater than or equal to the remaining load data to be migrated in the source data center.
在第四种可能的实现方式中, 结合第二方面, 所述据中心获取 单元还包括:  In a fourth possible implementation, in combination with the second aspect, the data center obtaining unit further includes:
第二获取子单元, 用于若所述数据中心的平均应用资源占用率 低于所述负载阈值下限, 则在所述数据中心中选取应用资源的负载 最小的数据中心, 将所述应用资源的负载最小的数据中心作为用于 迁出负载数据的源数据中心。  a second acquiring sub-unit, configured to: if the average application resource occupancy rate of the data center is lower than the lower limit of the load threshold, select a data center with a minimum load of application resources in the data center, and use the application resource The data center with the least load acts as the source data center for migrating load data.
在第五种可能的实现方式中, 结合第二方面, 所述目 的数据中 心获取单元还包括:  In a fifth possible implementation, in combination with the second aspect, the data center acquisition unit further includes:
第二数据处理子单元, 用于计算所述源数据中心的负载, 并将 所述源数据中心的负载作为待迁出负载数据;  a second data processing sub-unit, configured to calculate a load of the source data center, and use a load of the source data center as load data to be migrated;
所述第二获取子单元, 还用于从所述数据中心中选取至少一个 负载高于所述数据中心的平均应用资源占用率的数据中心作为资源 调度数据中心集合;  The second obtaining subunit is further configured to select, from the data center, at least one data center with a load higher than an average application resource occupancy of the data center as a resource scheduling data center set;
所述第二数据处理子单元, 还用于获取所述资源调度数据中心 集合中每个数据中心的网络资源占用率, 并根据所述资源调度数据 中心集合中每个数据中心的所述应用资源占用率和所述网络资源占 用率计算所述资源调度数据中心集合中每个数据中心的综合权重; 所述第二获取子单元, 还用于计算所述资源调度数据中心集合 中每个数据中心可承受的迁入负载数据, 从所述资源调度数据中心 集合中选取所述综合权重最大的数据中心, 若所述综合权重最大的 数据中心可承受的迁入负载数据大于所述源数据中心的待迁出负载 数据, 则将所述综合权重最大的数据中心作为目 的数据中心。 The second data processing sub-unit is further configured to acquire a network resource occupancy rate of each data center in the resource scheduling data center set, and perform scheduling data according to the resource Calculating the integrated resource weight of each data center in the resource scheduling data center set by using the application resource occupancy rate and the network resource occupancy rate of each data center in the central set; the second acquiring subunit is further used for calculating The resource scheduling data center can receive the load data that can be tolerated in each data center, and select the data center with the largest comprehensive weight from the resource scheduling data center set, if the data center with the largest comprehensive weight can withstand If the migration load data is greater than the load data to be migrated from the source data center, the data center with the largest integrated weight is used as the destination data center.
在第六种可能的实现方式中, 结合第五种可能的实现方式, 所 述目 的数据中心获取单元包括:  In a sixth possible implementation manner, in combination with the fifth possible implementation manner, the data center obtaining unit of the target includes:
所述第二获取子单元, 还用于若所述综合权重最大的数据中心 可承受的迁入负载数据小于所述源数据中心的待迁出负载数据, 则 将所述综合权重最大的数据中心作为 目 的数据中心;  The second obtaining sub-unit is further configured to: if the data load that the data center with the largest comprehensive weight can bear is less than the load data to be moved out of the source data center, the data center with the largest comprehensive weight As a destination data center;
所述第二获取子单元, 还用于在所述资源调度数据中心集合选 取所述综合权重次大的数据中心, 并将所述综合权重次大的数据中 心作为另一目 的数据中心, 直至在所述资源调度数据中心集合中选 取的数据中心可承受的迁入负载数据大于或等于所述源数据中心剩 余的待迁出负载数据。  The second obtaining subunit is further configured to select the data center with the second largest integrated weight in the resource scheduling data center set, and use the data center with the second largest integrated weight as another destination data center until The migrated load data that the data center selected in the resource scheduling data center set can bear is greater than or equal to the remaining load data to be migrated in the source data center.
第三方面, 提供一种资源调度设备, 包括: 至少一个处理器、 存储器、 通信接口和总线, 所述至少一个处理器、 存储器和通信接 口通过总线连接并完成相互间的通信, 其中:  In a third aspect, a resource scheduling device is provided, including: at least one processor, a memory, a communication interface, and a bus, wherein the at least one processor, the memory, and the communication interface are connected by a bus and complete communication with each other, wherein:
所述处理器, 用于通过所述至少一个通信接口获取每个数据中 心的应用资源占用率, 根据所述应用资源占用率计算数据中心的平 均应用资源占用率;  The processor is configured to acquire an application resource occupancy rate of each data center by using the at least one communication interface, and calculate an average application resource occupancy rate of the data center according to the application resource occupancy rate;
所述存储器, 用于判断所述处理器转发的所述数据中心的平均 应用资源占用率是否超出负载阈值上限或者低于负载阈值下限; 所述处理器, 还用于根据所述存储器转发的判断结果通过所述 至少一个通信接口在所述数据中心中选取用于迁出负载数据的源数 据中心;  The processor is configured to determine whether an average application resource occupancy rate of the data center that is forwarded by the processor exceeds a load threshold upper limit or is lower than a load threshold lower limit; and the processor is further configured to determine, according to the memory forwarding Resulting, by the at least one communication interface, selecting a source data center for migrating load data in the data center;
所述处理器, 还用于根据所述源数据中心的待迁出负载数据及 所述每个数据中心的所述应用资源占用率和网络资源占用率通过所 述至少一个通信接口在所述数据中心中选取用于迁入负载数据的目 的数据中心; The processor is further configured to: according to the data to be moved out of the source data center, The application resource occupancy rate and network resource occupancy rate of each data center are selected by the at least one communication interface to select a destination data center for moving in load data in the data center;
所述处理器, 还用于通过所述至少一个通信接口接收所述处理 器选取的所述源数据中心和所述目 的数据中心并从所述源数据中心 迁出负载数据, 将所述负载数据迁入所述目 的数据中心。  The processor is further configured to receive, by the at least one communication interface, the source data center and the destination data center selected by the processor, and migrate load data from the source data center, where the load data is Move to the destination data center.
在第一种可能的实现方式中, 结合第三方面, 包括:  In a first possible implementation, in combination with the third aspect, the method includes:
所述处理器, 还用于若所述数据中心的平均应用资源占用率超 出所述负载阈值上限, 则通过所述至少一个通信接口在所述数据中 心中选取应用资源的负载最大的数据中心, 将所述应用资源的负载 最大的数据中心作为用于迁出负载数据的源数据中心。  The processor is further configured to: if the average application resource occupancy of the data center exceeds the upper limit of the load threshold, select, by using the at least one communication interface, a data center with the largest load of application resources in the data center, The data center with the largest load of the application resources is used as a source data center for migrating load data.
在第二种可能的实现方式中, 结合第三方面, 包括:  In a second possible implementation, in combination with the third aspect, the following:
所述处理器, 还用于计算所述源数据中心的负载, 并根据所述 负载阈值上限确定所述待迁出负载数据; 通过所述至少一个通信接 口从所述数据中心中选取至少一个负载低于所述数据中心的平均应 用资源占用率的数据中心作为资源调度数据中心集合;  The processor is further configured to calculate a load of the source data center, and determine the to-be-migrated load data according to the load threshold upper limit; select at least one load from the data center by using the at least one communication interface a data center that is lower than the average application resource occupancy of the data center as a resource scheduling data center set;
所述处理器, 还用于通过所述至少一个通信接口获取所述资源 调度数据中心集合中每个数据中心的网络资源占用率, 并根据所述 资源调度数据中心集合中每个数据中心的所述应用资源占用率和所 述网络资源占用率计算所述资源调度数据中心集合中每个数据中心 的综合权重;  The processor is further configured to acquire, by using the at least one communication interface, a network resource occupancy rate of each data center in the resource scheduling data center set, and schedule each data center in the data center set according to the resource scheduling Calculating the comprehensive weight of each data center in the resource scheduling data center set by using the application resource occupancy rate and the network resource occupancy rate;
所述处理器, 还用于计算所述资源调度数据中心集合中每个数 据中心可承受的迁入负载数据, 通过所述至少一个通信接口从所述 资源调度数据中心集合中选取所述综合权重最小的数据中心, 若所 述综合权重最小的数据中心可承受的迁入负载数据大于所述源数据 中心的待迁出负载数据, 则将所述综合权重最小的数据中心作为 目 的数据中心。  The processor is further configured to calculate, in the resource scheduling data center set, the load data that can be tolerated by each data center, and select the comprehensive weight from the resource scheduling data center set by using the at least one communication interface. The smallest data center, if the data load that the data center with the smallest integrated weight can bear is greater than the data to be moved out of the source data center, the data center with the smallest integrated weight is used as the destination data center.
在第三种可能的实现方式中, 结合第二种可能的实现方式, 包 括: 所述处理器, 还用于若所述综合权重最小的数据中心可承受的 迁入负载数据小于所述源数据中心的待迁出负载数据, 则将所述综 合权重最小的数据中心作为 目的数据中心; In a third possible implementation manner, combined with the second possible implementation manner, the following: The processor is further configured to: if the data load that can be tolerated by the data center with the smallest integrated weight is less than the load data to be moved out of the source data center, use the data center with the smallest integrated weight as the destination data. center;
所述处理器, 还用于通过所述至少一个通信接口在所述资源调 度数据中心集合中选取所述综合权重次小的数据中心, 并将所述综 合权重次小的数据中心作为另一目 的数据中心, 直至在所述资源调 度数据中心集合中选取的数据中心可承受的迁入负载数据大于或等 于所述源数据中心剩余的待迁出负载数据。  The processor is further configured to select, by using the at least one communication interface, the data center with a small integrated weight in the resource scheduling data center set, and use the data center with a small overall weight as another purpose The data center, until the data center selected in the resource scheduling data center set can bear the inbound load data greater than or equal to the remaining data to be migrated in the source data center.
在第四种可能的实现方式中, 结合第三方面, 包括:  In a fourth possible implementation, in combination with the third aspect, the method includes:
所述处理器, 还用于若所述数据中心的平均应用资源占用率低 于所述负载阈值下限, 则通过所述至少一个通信接口在所述数据中 心中选取应用资源的负载最小的数据中心, 将所述应用资源的负载 最小的数据中心作为用于迁出负载数据的源数据中心。  The processor is further configured to: if the average application resource occupancy of the data center is lower than the lower limit of the load threshold, select, by using the at least one communication interface, a data center with a minimum load of application resources in the data center. The data center with the least load of the application resource is used as a source data center for migrating load data.
在第五种可能的实现方式中, 结合第三方面, 包括:  In a fifth possible implementation, in combination with the third aspect, the method includes:
所述处理器, 还用于计算所述源数据中心的负载, 并将所述源 数据中心的负载作为待迁出负载数据; 通过所述至少一个通信接口 从所述数据中心中选取至少一个负载高于所述数据中心的平均应用 资源占用率的数据中心作为资源调度数据中心集合;  The processor is further configured to calculate a load of the source data center, and use a load of the source data center as load data to be migrated; select at least one load from the data center by using the at least one communication interface. a data center that is higher than the average application resource occupancy of the data center as a resource scheduling data center set;
所述处理器, 还用于通过所述至少一个通信接口获取所述资源 调度数据中心集合中每个数据中心的网络资源占用率, 并根据所述 资源调度数据中心集合中每个数据中心的所述应用资源占用率和所 述网络资源占用率计算所述资源调度数据中心集合中每个数据中心 的综合权重;  The processor is further configured to acquire, by using the at least one communication interface, a network resource occupancy rate of each data center in the resource scheduling data center set, and schedule each data center in the data center set according to the resource scheduling Calculating the comprehensive weight of each data center in the resource scheduling data center set by using the application resource occupancy rate and the network resource occupancy rate;
所述处理器, 还用于计算所述资源调度数据中心集合中每个数 据中心可承受的迁入负载数据, 通过所述至少一个通信接口从所述 资源调度数据中心集合中选取所述综合权重最大的数据中心, 若所 述综合权重最大的数据中心可承受的迁入负载数据大于所述源数据 中心的待迁出负载数据, 则将所述综合权重最大的数据中心作为 目 的数据中心。 在第六种可能的实现方式中, 结合第五种可能的实现方式, 包 括: The processor is further configured to calculate, in the resource scheduling data center set, the load data that can be tolerated by each data center, and select the comprehensive weight from the resource scheduling data center set by using the at least one communication interface. The largest data center, if the data load that the data center with the largest comprehensive weight can bear is greater than the data to be moved out of the source data center, the data center with the largest integrated weight is used as the destination data center. In a sixth possible implementation, the fifth possible implementation is combined, including:
所述处理器, 还用于若所述综合权重最大的数据中心可承受的 迁入负载数据小于所述源数据中心的待迁出负载数据, 则将所述综 合权重最大的数据中心作为 目的数据中心;  The processor is further configured to: if the data load that can be tolerated by the data center with the largest comprehensive weight is smaller than the load data to be moved out of the source data center, use the data center with the largest integrated weight as the destination data. Center
所述处理器, 还用于通过所述至少一个通信接口在所述资源调 度数据中心集合选取所述综合权重次大的数据中心, 并将所述综合 权重次大的数据中心作为另一目 的数据中心, 直至在所述资源调度 数据中心集合中选取的数据中心可承受的迁入负载数据大于或等于 所述源数据中心剩余的待迁出负载数据。  The processor is further configured to select, by using the at least one communication interface, the data center with the second largest integrated weight in the resource scheduling data center set, and use the data center with the second largest weight as another destination data. The mobility load data that can be tolerated by the data center selected in the resource scheduling data center set is greater than or equal to the remaining load data to be migrated in the source data center.
本发明的实施例提供的数据中心间资源调度方法和设备, 通过 在数据中心间采用 自适应资源调度, 可以避免数据中心上资源浪费 和资源不足的现象发生, 提高了数据中心对负载变化的适应性, 达 到不用间断业务便可实现对资源的调整, 并降低网络阻塞率。 附图说明  The method and device for scheduling resources between data centers provided by the embodiments of the present invention can avoid resource waste and resource shortage in the data center by adopting adaptive resource scheduling between data centers, and improve the adaptation of the data center to load changes. Sexuality, resource-free adjustment can be achieved without interrupting the business, and the network blocking rate can be reduced. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下 面将对实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于 本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以 根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1 为本发明实施例提供的一种数据中心间资源调度方法流程 示意图;  1 is a schematic flowchart of a resource scheduling method between data centers according to an embodiment of the present invention;
图 2为本发明另一实施例提供的一种数据中心间资源调度方法 流程示意图;  2 is a schematic flowchart of a resource scheduling method between data centers according to another embodiment of the present invention;
图 3 为本发明另一实施例提供的另一种数据中心间资源调度方 法流程示意图;  FIG. 3 is a schematic flowchart of another resource center resource scheduling method according to another embodiment of the present invention; FIG.
图 4为本发明实施例提供的一种跨层优化控制系统的结构示意 图; 图 5为本发明实施例提供的一种资源调度设备结构示意图; 图 6为本发明实施例提供的另一种资源调度设备结构示意图; 图 7为本发明实施例提供的又一种资源调度设备结构示意图。 具体实施方式 4 is a schematic structural diagram of a cross-layer optimization control system according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of a resource scheduling device according to an embodiment of the present invention; FIG. 6 is a schematic structural diagram of another resource scheduling device according to an embodiment of the present invention; FIG. 7 is still another resource scheduling device according to an embodiment of the present invention; Schematic. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术 方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明 一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本 领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他 实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明的实施例提供一种数据中心间资源调度方法, 参照图 1 所示, 包括以下步骤:  An embodiment of the present invention provides a data center resource scheduling method. Referring to FIG. 1, the method includes the following steps:
101、 获取每个数据中心的应用资源占用率, 根据应用资源占用 率计算数据中心的平均应用资源占用率。  101. Obtain an application resource occupancy rate of each data center, and calculate an average application resource occupancy rate of the data center according to the application resource occupancy rate.
其中,数据中心的平均应用资源占用率根据中央处理器( Central Processing Unit , 简称 CPU ) 和内存的利用率获得。 如若数据中心的 CPU 占用率为 n , 内存占用率为 m , 则每个数据中心资源占用率 =n* s+m*( l -s)。 其中, s为数值范围在 0〜1之间的配置参数。 可以调 节, 具体为根据业务阻塞率和全网资源利用率的结果, 选取最佳值 来设定 s。 那么数据中心的平均应用资源占用率 =每个数据中心资源 占用率之和 /数据中心总数量。  The average application resource usage of the data center is obtained according to the Central Processing Unit (CPU) and memory utilization. If the CPU usage of the data center is n and the memory usage is m, the resource usage of each data center is =n* s+m*( l -s). Where s is a configuration parameter with a value ranging from 0 to 1. It can be adjusted, specifically, according to the result of service blocking rate and network resource utilization, select the best value to set s. Then the average application resource occupancy of the data center = the sum of each data center resource occupancy rate / the total number of data centers.
102、判断数据中心的平均应用资源占用率是否超出负载阈值上 限或者低于负载阈值下限。  102. Determine whether the average application resource occupancy rate of the data center exceeds the upper limit of the load threshold or is lower than the lower limit of the load threshold.
具体的, 负载阈值上限和负载阈值下限为数据中心的应用资源 占用率的阈值上限和阈值下限。 其中, 预先设定负载阈值上限和负 载阈值下限, 该负载阈值上限或者负载阈值下限的设定综合考虑应 用资源和网络资源, 具体由具体的装置运行来获取。 其中, 应用资 源主要由 CPU和内存的利用率有关, 网络资源主要与带宽利用率有 关。 当然, 影响应用资源的因素并不限于此, 网络资源也与时延、 抖动等因素有关。 Specifically, the upper limit of the load threshold and the lower limit of the load threshold are the upper threshold and the lower threshold of the application resource occupancy rate of the data center. The upper limit of the load threshold and the lower limit of the load threshold are set in advance, and the setting of the upper limit of the load threshold or the lower limit of the load threshold comprehensively considers application resources and network resources, and is specifically acquired by a specific device operation. Among them, application resources are mainly related to CPU and memory utilization, and network resources are mainly related to bandwidth utilization. Of course, the factors affecting application resources are not limited to this, and network resources are also delayed. It is related to factors such as jitter.
103、根据判断结果在数据中心中选取用于迁出负载数据的源数 据中心。  103. Select a source data center for migrating load data in the data center according to the judgment result.
104、根据源数据中心的待迁出负载数据及每个数据中心的应用 资源占用率和网络资源占用率在数据中心中选取用于迁入负载数据 的目 的数据中心。  104. Select, according to the data to be migrated in the source data center and the application resource occupancy rate and network resource occupancy rate of each data center, select a data center for moving in the load data in the data center.
105、 从源数据中心迁出负载数据, 并将负载数据迁入目的数据 中心。  105. The load data is moved out from the source data center, and the load data is moved into the destination data center.
具体的, 由于从源数据中心迁出负载数据, 并将负载数据迁入 目 的数据中心, 这个过程需要考虑带宽的占用率, 因此需要联合考 虑每个数据中心的应用资源占用率和网络资源占用率在数据中心中 选取用于迁入负载数据的目 的数据中心。  Specifically, since the load data is migrated from the source data center and the load data is moved to the destination data center, the process needs to consider the bandwidth occupancy rate. Therefore, it is necessary to jointly consider the application resource occupancy rate and network resource occupancy rate of each data center. Select the destination data center to migrate into the load data in the data center.
本发明的实施例提供的数据中心间资源调度方法, 通过在数据 中心间采用 自适应资源调度, 可以避免资源浪费和资源不足的现象 发生, 达到不用间断业务便可实现对资源的调整, 并降低网络阻塞 率。  The data center inter-database resource scheduling method provided by the embodiment of the present invention can avoid resource waste and resource shortage by adopting adaptive resource scheduling between data centers, and can realize resource adjustment and reduce the non-interrupted service. Network blocking rate.
具体的, 本发明的实施例提供一种数据中心间资源调度方法, 具体的步骤为:  Specifically, the embodiment of the present invention provides a method for scheduling resources between data centers, and the specific steps are as follows:
201、 获取每个数据中心的应用资源占用率, 根据应用资源占用 率计算数据中心的平均应用资源占用率。  201. Obtain an application resource occupancy rate of each data center, and calculate an average application resource occupancy rate of the data center according to the application resource occupancy rate.
其中, 数据中心的平均应用资源占用率根据 CPU和内存的利用 率获得。 如若数据中心的 CPU 占用率为 n , 内存占用率为 m , 则每 个数据中心资源占用率 =n* s+m* ( l -s)。 其中, s为数值范围在 0〜1之 间的配置参数。 可以调节, 具体为根据业务阻塞率和全网资源利用 率的结果, 选取最佳值来设定 s。 那么数据中心的平均应用资源占用 率=每个数据中心资源占用率之和 /数据中心总数量, 本实施例中可 以采用虚拟机软件 ( \'Ί rtual Machine Ware , 简称 VM Ware ) 来获得每 个数据中心的应用资源占用率。  Among them, the average application resource occupancy rate of the data center is obtained according to the CPU and memory utilization rate. If the CPU usage of the data center is n and the memory usage is m, the resource usage of each data center is =n* s+m* ( l -s). Where s is a configuration parameter with a value ranging from 0 to 1. It can be adjusted, specifically based on the result of the traffic blocking rate and the utilization rate of the whole network resources, and the optimal value is selected to set s. Then, the average application resource occupancy rate of the data center=the sum of the data center resource usage ratios/the total number of data centers. In this embodiment, virtual machine software (\'Ί rtual Machine Ware (VM Ware for short) can be used to obtain each. Application resource usage in the data center.
202、判断该数据中心的平均应用资源占用率是否超出负载阈值 上限或者低于负载阈值下限。 202. Determine whether the average application resource occupancy rate of the data center exceeds a load threshold. The upper limit is below the lower limit of the load threshold.
具体的, 负载阈值上限和负载阈值下限即为数据中心的应用资 源占用率的阈值上限和阈值下限。 其中, 预先设定负载阈值上限和 负载阈值下限, 该负载阈值上限或者负载阈值下限的设定综合考虑 应用资源和网络资源, 具体由具体的装置运行来获取。 其中, 应用 资源主要由 CPU和内存的利用率有关, 网络资源主要与带宽利用率 有关。 当然, 影响应用资源的因素并不限于此, 网络资源也与时延、 抖动等因素有关。  Specifically, the upper limit of the load threshold and the lower limit of the load threshold are the upper threshold and the lower threshold of the application resource occupancy rate of the data center. The load threshold upper limit and the load threshold lower limit are preset, and the load threshold upper limit or the load threshold lower limit is set in consideration of application resources and network resources, and is specifically acquired by a specific device operation. Among them, application resources are mainly related to CPU and memory utilization, and network resources are mainly related to bandwidth utilization. Of course, the factors affecting application resources are not limited to this. Network resources are also related to factors such as delay and jitter.
若步骤 202 中判断的结果为数据中心的平均应用资源占用率超 出负载阈值上限, 则执行步骤 203 a〜212a , 具体参照图 2所示;  If the result of the determination in step 202 is that the average application resource occupancy of the data center exceeds the upper limit of the load threshold, steps 203 a to 212a are performed, as specifically shown in FIG. 2;
203 a , 在数据中心中选取应用资源的负载最大的数据中心, 将 应用资源的负载最大的数据中心作为用于迁出负载数据的源数据中 心 。  203 a. Select the data center with the largest load of application resources in the data center, and use the data center with the largest load of application resources as the source data center for moving out the load data.
204a , 计算源数据中心的负载, 并根据负载阈值上限确定待迁 出负载数据。  204a. Calculate the load of the source data center, and determine the load data to be migrated according to the upper limit of the load threshold.
205a , 从数据中心中选取至少一个负载低于数据中心的平均应 用资源占用率的数据中心作为资源调度数据中心集合。  205a. Select, from the data center, at least one data center with a load lower than an average application resource occupancy of the data center as a resource scheduling data center set.
206a , 获取资源调度数据中心集合中每个数据中心的网络资源 占用率, 并根据资源调度数据中心集合中每个数据中心的应用资源 占用率和网络资源占用率计算资源调度数据中心集合中每个数据中 心的综合权重。  206a. Obtain a network resource occupancy rate of each data center in the resource scheduling data center set, and calculate each of the resource scheduling data center sets according to the application resource occupancy rate and the network resource occupancy rate of each data center in the resource scheduling data center set. The overall weight of the data center.
其中,每个数据中心的综合权重 = « *应用资源占用率 + 网络资 源占用率。 其中《和 为权重系数, 根据具体的运行环境来确定具体 的数值。  Among them, the comprehensive weight of each data center = « * application resource occupancy rate + network resource occupancy rate. Where “the sum is the weight coefficient, the specific value is determined according to the specific operating environment.
207a , 计算资源调度数据中心集合中每个数据中心可承受的迁 入负载数据, 从资源调度数据中心集合中选取综合权重最小的数据 中心。  207a: Calculate the load data that each data center in the resource scheduling data center set can bear, and select the data center with the smallest integrated weight from the resource scheduling data center set.
具体的,每个数据中心可承受的迁入负载数据 =数据中心的负载 阈值上限-数据中心的当前负载。 其中, 数据中心的当前负载主要由 数据中心的 CPU 占用率和内存占用率来确定。 Specifically, each data center can withstand the immigration load data = the data center's load threshold upper limit - the current load of the data center. Among them, the current load of the data center is mainly The CPU usage and memory usage of the data center are determined.
208a , 判断综合权重最小的数据中心可承受的迁入负载数据是 否小于源数据中心的待迁出负载数据, 若综合权重最小的数据中心 可承受的迁入负载数据大于或等于源数据中心的待迁出负载数据, 则执行步骤 209a;  208a, determining whether the immigration load data that the data center with the smallest integrated weight can bear is less than the load data to be moved out of the source data center, and if the data center with the smallest integrated weight can bear the load data that is greater than or equal to the source data center. After the load data is moved out, step 209a is performed;
具体的, 以计算机处理系统可实现的程序逻辑结构为例为例进 行说明, 可以设置一个可迁移数据中心集合, 并默认该可迁移数据 中心集合中的所有目 的数据中心可以独立承载源数据中心的待迁出 负载数据。  Specifically, the program logic structure that can be implemented by the computer processing system is taken as an example for description. A migrating data center set can be set, and by default, all destination data centers in the migpable data center set can independently carry the source data center. The load data is to be moved out.
209a , 将该综合权重最小的数据中心作为 目 的数据中心, 并从 源数据中心迁出负载数据, 将该负载数据迁入目 的数据中心。  209a. The data center with the smallest integrated weight is used as the destination data center, and the load data is moved out from the source data center, and the load data is moved into the destination data center.
具体的, 若该综合权重最小的数据中心可以独立承载源数据中 心的待迁出负载数据, 则可以认为该综合权重最小的数据中心为可 迁移数据中心集合的成员, 此时, 可迁移数据中心集合不为空, 则 选取该综合权重最小的数据中心作为默认的目 的数据中心集合的成 员, 并在该综合权重最小的数据中心中迁入源数据中心的待迁出负 载数据。  Specifically, if the data center with the smallest integrated weight can independently carry the load data to be migrated from the source data center, the data center with the smallest integrated weight can be considered as a member of the migratable data center set. In this case, the data center can be migrated. If the set is not empty, the data center with the smallest integrated weight is selected as the member of the default destination data center set, and the load data to be moved out of the source data center is moved in the data center with the smallest integrated weight.
或者, 步骤 208 的判断结果为综合权重最小的数据中心可承受 的迁入负载数据小于源数据中心的待迁出 负载数据, 则执行步骤 210a〜212a。  Alternatively, the result of the determination in step 208 is that the data load that the data center with the smallest integrated weight can bear is less than the load data to be moved out of the source data center, and steps 210a to 212a are performed.
210a , 将综合权重最小的数据中心作为目 的数据中心。  210a. The data center with the smallest integrated weight is used as the destination data center.
此时, 综合权重最小的数据中心不能独立承载源数据中心的待 迁出负载数据, 则可迁移数据中心集合为空, 因此此次资源调度过 程中需求的目 的数据中心为多个, 此时将该综合权重最小的数据中 心作为默认的目 的数据中心集合的成员。  In this case, the data center with the smallest integrated weight cannot independently carry the data to be migrated from the source data center, and the data center set can be migrated. Therefore, the destination data center required for the resource scheduling process is multiple. The data center with the smallest combined weight is a member of the default destination data center collection.
21 1 a , 在资源调度数据中心集合中选取综合权重次小的数据中 心, 并将综合权重次小的数据中心作为另一目 的数据中心, 直至在 资源调度数据中心集合中选取的数据中心可承受的迁入负载数据大 于或等于源数据中心剩余的待迁出负载数据。 在此过程中将该综合权重次小的数据中心也作为默认的目 的数 据中心集合的成员, 并循环该过程, 直至在资源调度数据中心集合 中选取的数据中心可承受的迁入负载数据大于或等于源数据中心剩 余的待迁出负载数据, 此时将该可承受的迁入负载数据大于或等于 源数据中心剩余的待迁出负载数据的数据中心作为可迁移数据中心 集合的成员。 21 1 a , selecting a data center with a small integrated weight in the resource scheduling data center set, and using the data center with the smaller integrated weight as the other destination data center until the data center selected in the resource scheduling data center set can withstand The migration load data is greater than or equal to the remaining load data to be migrated in the source data center. In this process, the data center with the second smallest weight is also used as a member of the default destination data center set, and the process is repeated until the data load that the selected data center in the resource scheduling data center set can withstand is greater than or The data of the to-be-migrated load data of the source data center is equal to or greater than the data center of the data center to be migrated.
212a , 从源数据中心迁出负载数据, 并将该负载数据迁入选取 的所有目的数据中心 。  212a, migrating load data from the source data center, and migrating the load data to all selected destination data centers.
这样可迁移数据中心集合不为空, 则将该可承受的迁入负载数 据大于或等于源数据中心剩余的待迁出负载数据的数据中心作为默 认的目 的数据中心集合的成员, 并将源数据中心的待迁出负载数据 迁入目 的数据中心集合中的目的数据中心。  If the migrating data center collection is not empty, the data center with the load data to be moved out of the load data that is greater than or equal to the remaining data in the source data center is used as a member of the default destination data center set, and the source data is used. The load data to be moved out of the center is moved to the destination data center in the destination data center set.
若步骤 202 中判断的结果为数据中心平均负载低于负载阈值下 限, 则执行步骤 203b〜212b , 具体参照图 3所示。  If the result of the determination in step 202 is that the data center average load is lower than the load threshold lower limit, steps 203b to 212b are performed, as shown in FIG.
203b , 在数据中心中选取应用资源的负载最小的数据中心, 将 该应用资源的负载最小的数据中心作为用于迁出负载数据的源数据 中心。  203b: Select a data center with the least load of the application resource in the data center, and use a data center with the smallest load of the application resource as the source data center for migrating the load data.
204b , 计算源数据中心的负载, 并将源数据中心的负载作为待 迁出负载数据。  204b. Calculate the load of the source data center and use the load of the source data center as the data to be moved out.
205b、 从数据中心中选取至少一个负载高于数据中心的平均应 用资源占用率的数据中心作为资源调度数据中心集合。  205b. Select, from the data center, at least one data center with a load higher than an average application resource occupancy of the data center as a resource scheduling data center set.
206b , 获取资源调度数据中心集合中每个数据中心的网络资源 占用率, 并根据资源调度数据中心集合中每个数据中心的应用资源 占用率和网络资源占用率计算资源调度数据中心集合中每个数据中 心的综合权重。  206b. Obtain a network resource occupancy rate of each data center in the resource scheduling data center set, and calculate each of the resource scheduling data center sets according to the application resource occupancy rate and the network resource occupancy rate of each data center in the resource scheduling data center set. The overall weight of the data center.
其中,每个数据中心的综合权重 = « *应用资源占用率 + 网络资 源占用率。 其中《和 为权重系数, 根据具体的运行环境来确定具体 的数值。  Among them, the comprehensive weight of each data center = « * application resource occupancy rate + network resource occupancy rate. Where “the sum is the weight coefficient, the specific value is determined according to the specific operating environment.
207b、 计算资源调度数据中心集合中每个数据中心可承受的迁 入负载数据, 从资源调度数据中心集合中选取综合权重最大的数据 中心。 207b, computing resource scheduling data center collection in each data center can withstand the migration Into the load data, select the data center with the largest comprehensive weight from the resource scheduling data center set.
具体的, 具体的, 每个数据中心可承受的迁入负载数据=数据中 心的负载阈值上限 -数据中心的当前负载。 其中, 数据中心的当前负 载主要由数据中心的 CPU 占用率和内存占用率来确定。  Specifically, specifically, each data center can withstand the load data of the load = the upper limit of the load threshold of the data center - the current load of the data center. The current load of the data center is mainly determined by the CPU usage and memory usage of the data center.
208b , 判断综合权重最大的数据中心可承受的迁入负载数据是 否小于源数据中心的待迁出的负载数据, 若综合权重最大的数据中 心可承受的迁入负载数据大于或者等于源数据中心的待迁出的负载 数据, 则执行步骤 209b ;  208b, determining whether the data load that the data center with the largest comprehensive weight can bear is less than the load data to be moved out of the source data center, and if the data load that the data center with the largest comprehensive weight can bear is greater than or equal to the data center of the source data center After the load data to be migrated, step 209b is performed;
具体的, 以计算机处理系统可实现的程序逻辑结构为例为例进 行说明, 可以设置一个可迁移数据中心集合, 并默认该可迁移数据 中心集合中的所有目 的数据中心可以独立承载源数据中心的待迁出 负载数据。  Specifically, the program logic structure that can be implemented by the computer processing system is taken as an example for description. A migrating data center set can be set, and by default, all destination data centers in the migpable data center set can independently carry the source data center. The load data is to be moved out.
209b , 将综合权重最大的数据中心作为 目 的数据中心, 并从源 数据中心迁出负载数据, 将该负载数据迁入目的数据中心。  209b. The data center with the largest integrated weight is used as the destination data center, and the load data is moved out from the source data center, and the load data is moved into the destination data center.
具体的, 若该综合权重最大的数据中心可以独立承载源数据中 心的待迁出负载数据, 则可以认为该综合权重最大的数据中心为可 迁移数据中心集合的成员, 此时, 可迁移数据中心集合不为空, 则 选取该综合权重最大的数据中心作为默认的目 的数据中心集合的成 员, 并在该综合权重最大的数据中心中迁入源数据中心的待迁出负 载数据。  Specifically, if the data center with the largest integrated weight can independently carry the load data to be migrated from the source data center, the data center with the largest integrated weight can be considered as a member of the migrated data center set. In this case, the data center can be migrated. If the set is not empty, the data center with the largest integrated weight is selected as the member of the default destination data center set, and the load data to be moved out of the source data center is moved in the data center with the largest integrated weight.
或者,步骤 208b的判断结果为综合权重最大的数据中心可承受 的迁入负载数据小于源数据中心的待迁出 负载数据, 则执行步骤 210b〜212b。  Alternatively, the result of the determination in step 208b is that the data load that the data center with the largest integrated weight can bear is less than the load data to be migrated from the source data center, and steps 210b to 212b are performed.
210b、 将综合权重最大的数据中心作为目 的数据中心。  210b. The data center with the largest integrated weight is used as the destination data center.
此时, 综合权重最大的数据中心不能独立承载源数据中心的待 迁出负载数据, 则可迁移数据中心集合为空, 因此此次资源调度过 程中需求的目 的数据中心为多个, 此时将该综合权重最大的数据中 心作为默认的目 的数据中心集合的成员。 21 1b , 在资源调度数据中心集合选取综合权重次大的数据中心, 并将综合权重次大的数据中心作为另一目 的数据中心, 直至在资源 调度数据中心集合中选取的数据中心可承受的迁入负载数据大于或 等于源数据中心剩余的待迁出负载数据。 In this case, the data center with the largest integrated weight cannot independently carry the load data to be migrated from the source data center, and the data center set can be migrated. Therefore, the destination data center required for the resource scheduling process is multiple. The data center with the largest combined weight is a member of the default destination data center collection. 21 1b , selecting the data center with the second largest comprehensive weight in the resource scheduling data center set, and using the data center with the second largest weight as the data center of another destination, until the data center selected in the resource scheduling data center set can withstand the migration The inbound load data is greater than or equal to the remaining load data to be migrated in the source data center.
在此过程中将该综合权重次大的数据中心也作为默认的目 的数 据中心集合的成员, 并循环该过程, 直至在资源调度数据中心集合 中选取的数据中心可承受的迁入负载数据大于或等于源数据中心剩 余的待迁出负载数据, 此时将该可承受的迁入负载数据大于或等于 源数据中心剩余的待迁出负载数据的数据中心作为可迁移数据中心 集合的成员。  In this process, the data center with the second largest weight is also used as a member of the default destination data center set, and the process is repeated until the data load that the selected data center in the resource scheduling data center set can withstand is greater than or The data of the to-be-migrated load data of the source data center is equal to or greater than the data center of the data center to be migrated.
212b , 从源数据中心迁出负载数据, 并将该负载数据迁入目 的 数据中心。  212b, migrating load data from the source data center and migrating the load data to the destination data center.
这样可迁移数据中心集合不为空, 则将该可承受的迁入负载数 据大于或等于源数据中心剩余的待迁出负载数据的数据中心作为默 认的目 的数据中心集合的成员, 并将源数据中心的待迁出负载数据 迁入目 的数据中心集合中的目的数据中心。  If the migrating data center collection is not empty, the data center with the load data to be moved out of the load data that is greater than or equal to the remaining data in the source data center is used as a member of the default destination data center set, and the source data is used. The load data to be moved out of the center is moved to the destination data center in the destination data center set.
本实施例中的数据中心分为两种状态即运行状态和休眠状态, 处于运行状态的源数据中心进入目 的数据中心后, 源数据中心自动 进入休眠状态, 这样待机状态对各种资源的消耗都处于最低状态, 避免对资源的浪费。 其中, 进行资源调度过程中的数据中心都是处 于运行状态的数据中心。 当数据中心平均负载低于负载阈值下限时, 将负载数据从源数据中心迁出, 并将该负载数据迁入目 的数据中心; 具体的, 这里对于数据中心的资源均衡体现在物理机上, 即当物理 机上的虚拟机偏少且在物理机上使用的应用资源偏低时, 将该物理 机上的虚拟机集中迁移到其他物理机上, 并将空闲的物理机停机; 当物理机上的虚拟机偏多且在物理机上使用的应用资源偏高时, 将 部分虚拟机迁移到其他比较空闲的物理机上, 或者启动更多的备用 物理机并将部分虚拟机迁移到备用物理机上, 以此实现各物理机的 数据中心资源的调度, 由于虚拟机直接和用户端进行交互, 因此其 负载会随时间变化, 及时响应虚拟机负载的变化, 通过数据中心间 资源的调度适当为高负载的虚拟机分配更充裕的资源, 以适应虚拟 机对资源的需求, 便达到了节能和提高能耗比的目的。 The data center in this embodiment is divided into two states, namely, an operating state and a dormant state. After the source data center in the running state enters the destination data center, the source data center automatically enters a sleep state, so that the standby state consumes various resources. At the lowest level, avoid wasting resources. The data centers in the resource scheduling process are all in the running data center. When the average load of the data center is lower than the lower limit of the load threshold, the load data is migrated from the source data center, and the load data is moved to the destination data center. Specifically, the resource balance of the data center is embodied on the physical machine, that is, when When there are few virtual machines on the physical machine and the application resources used on the physical machine are low, the virtual machines on the physical machine are collectively migrated to other physical machines, and the idle physical machines are shut down; when there are many virtual machines on the physical machine When the application resources used on the physical machine are too high, some virtual machines are migrated to other relatively idle physical machines, or more standby physical machines are started and some virtual machines are migrated to the standby physical machines, thereby realizing the physical machines. Scheduling of data center resources, because the virtual machine directly interacts with the client, so The load changes with time, responds to the change of the virtual machine load in time, and allocates more abundant resources to the high-loaded virtual machine through the scheduling of resources between the data centers to meet the virtual machine's demand for resources, thus achieving energy saving and improving energy. The purpose of the ratio.
本发明的实施例提供的数据中心间资源调度方法, 通过在数据 中心间采用 自适应资源调度, 可以避免数据中心上资源浪费和资源 不足的现象发生, 提高了数据中心对负载变化的适应性, 达到不用 间断业务便可实现对资源的调整, 并降低网络阻塞率。 同时, 可以 提高用户的服务质量。  The data center resource scheduling method provided by the embodiment of the present invention can avoid resource waste and resource shortage in the data center by adopting adaptive resource scheduling between data centers, and improve the adaptability of the data center to load changes. Reaching resources without interruption can achieve resource adjustment and reduce network blocking rate. At the same time, the quality of service of users can be improved.
本实施例中的数据中心间资源调度方法的应用依托于跨层优化 控制系统, 参照图 4 所示, 该跨层优化控制系统包括: 本发明的实 施例提供的资源调度设备 3 1 , 用户处理设备 32及数据库 33 , 其中: 用户处理设备 32 , 用于本发明的实施例提供的数据中心与用户 平面的接口, 处理用户的服务请求, 对用户的服务请求权限进行认 证。  The application of the inter-data resource scheduling method in this embodiment is based on the cross-layer optimization control system. Referring to FIG. 4, the cross-layer optimization control system includes: the resource scheduling device 3 1 provided by the embodiment of the present invention, and the user processes The device 32 and the database 33, wherein: the user processing device 32 is configured to provide an interface between the data center and the user plane provided by the embodiment of the present invention, process the service request of the user, and authenticate the service request authority of the user.
资源调度设备 3 1 , 用于实现本发明实施例的方法对数据库中的 虚拟的数据中心的资源进行均衡调控, 包括针对不同类型资源的网 络特性评估虚拟机的资源负载状态, 并根据资源调度方法选择需要 进行资源的虚拟机, 实现资源的联合优化, 此模块是资源调度设备 的核心模块; 感知虚拟资源的 CPU和内存, 实时监控所有虚拟机的 负载。 同时, 将需要资源调度的业务进行緩存, 以保证用户业务在 迁移过程中不间断运行; 感知网络资源, 向该跨层优化控制系统提 供网络资源信息, 实现资源的联合优化。 同时, 完成基于条件约束 的网络层路径的计算和资源预留工作。 及数据中心中处理的应用资源, 实现应用资源的传送。  The resource scheduling device 3 1 is configured to implement the method according to the embodiment of the present invention to perform equalization and regulation on resources of the virtual data center in the database, including evaluating resource load status of the virtual machine for network characteristics of different types of resources, and according to the resource scheduling method. Select the virtual machine that needs to perform resources to realize the joint optimization of resources. This module is the core module of the resource scheduling device. It senses the CPU and memory of the virtual resource and monitors the load of all virtual machines in real time. At the same time, the services that need resource scheduling are cached to ensure that the user services are continuously running during the migration process; the network resources are perceived, the network resource information is provided to the cross-layer optimization control system, and the resources are jointly optimized. At the same time, the calculation and resource reservation of the network layer path based on conditional constraints are completed. And the application resources processed in the data center to realize the transmission of application resources.
具体的本发明的实施例提供的资源调度设备 4 ,应用于跨层优化 控制系统实现上述的数据中心间资源调度方法, 参照图 5 所示, 该 设备包括: 数据处理单元 41、 管理单元 42和数据中心获取单元 43 , 其巾: 数据处理单元 41 , 用于获取每个数据中心的应用资源占用率, 根据应用资源占用率计算数据中心的平均应用资源占用率。 The resource scheduling device 4 provided by the embodiment of the present invention is applied to the cross-layer optimization control system to implement the foregoing data center resource scheduling method. Referring to FIG. 5, the device includes: a data processing unit 41, a management unit 42 and The data center obtaining unit 43 has a towel: The data processing unit 41 is configured to acquire an application resource occupancy rate of each data center, and calculate an average application resource occupancy rate of the data center according to the application resource occupancy rate.
管理单元 42 , 用于判断数据处理单元 41 转发的数据中心的平 均应用资源占用率是否超出负载阈值上限或者低于负载阈值下限。  The management unit 42 is configured to determine whether the average application resource occupancy of the data center forwarded by the data processing unit 41 exceeds a load threshold upper limit or is lower than a load threshold lower limit.
数据中心获取单元 43 , 用于根据管理单元 42 转发的判断结果 选取用于迁出负载数据的源数据中心。  The data center obtaining unit 43 is configured to select a source data center for migrating load data according to the judgment result forwarded by the management unit 42.
数据中心获取单元 43 , 还用于根据源数据中心的待迁出负载数 据及每个数据中心的应用资源占用率和网络资源占用率在数据中心 中选取用于迁入负载数据的目的数据中心。  The data center obtaining unit 43 is further configured to select, in the data center, a destination data center for moving in the load data according to the to-be-migrated load data of the source data center and the application resource occupancy rate and the network resource occupancy rate of each data center.
数据处理单元 41 , 还用于接收数据中心获取单元 43 选取的源 数据中心和目 的数据中心并从源数据中心迁出负载数据, 将负载数 据迁入目的数据中心。  The data processing unit 41 is further configured to receive the source data center and the destination data center selected by the data center acquiring unit 43 and migrate the load data from the source data center to move the load data into the destination data center.
本发明的实施例提供的资源调度设备, 通过在数据中心间采用 自适应资源调度, 可以避免数据中心上资源浪费和资源不足的现象 发生, 提高了数据中心对负载变化的适应性, 达到不用间断业务便 可实现对资源的调整, 并降低网络阻塞率。  The resource scheduling device provided by the embodiment of the present invention can avoid resource waste and resource shortage in the data center by adopting adaptive resource scheduling between data centers, thereby improving the adaptability of the data center to load changes, and achieving non-interruption. The business can adjust the resources and reduce the network blocking rate.
进一步可选的, 参照图 6所示, 数据中心获取单元 43还包括: 第一获取子单元 43 l a和第一数据处理子单元 432a , 其中:  Further, as shown in FIG. 6, the data center obtaining unit 43 further includes: a first obtaining subunit 43 l a and a first data processing subunit 432a, where:
第一获取子单元 43 1 a , 用于若所述数据中心的平均应用资源占 用率超出所述负载阈值上限, 则在数据中心中选取应用资源的负载 最大的数据中心, 将应用资源的负载最大的数据中心作为用于迁出 负载数据的源数据中心。  The first obtaining sub-unit 43 1 a is configured to: if the average application resource occupancy rate of the data center exceeds the upper limit of the load threshold, select a data center with the largest load of application resources in the data center, and maximize the load of the application resource. The data center acts as the source data center for migrating load data.
第一数据处理子单元 432a , 用于计算源数据中心的负载, 并根 据负载阈值上限确定待迁出负载数据。  The first data processing sub-unit 432a is configured to calculate a load of the source data center, and determine the to-be-migrated load data according to the upper limit of the load threshold.
第一获取子单元 43 1 a , 用于从数据中心中选取至少一个负载低 于数据中心的平均应用资源占用率的数据中心作为资源调度数据中 心集合。  The first obtaining sub-unit 43 1 a is configured to select, from the data center, at least one data center that has an average application resource occupancy lower than the data center as the resource scheduling data center set.
第一数据处理子单元 432a , 用于获取资源调度数据中心集合中 每个数据中心的网络资源占用率, 并根据资源调度数据中心集合中 每个数据中心的应用资源占用率和网络资源占用率计算资源调度数 据中心集合中每个数据中心的综合权重。 The first data processing sub-unit 432a is configured to acquire a network resource occupancy rate of each data center in the resource scheduling data center set, and schedule the data center collection according to the resource. The application resource occupancy rate and network resource occupancy rate of each data center calculate the comprehensive weight of each data center in the resource scheduling data center set.
第一获取子单元 431a, 还用于计算资源调度数据中心集合中每 个数据中心可承受的迁入负载数据, 从资源调度数据中心集合中选 取综合权重最小的数据中心, 若综合权重最小的数据中心可承受的 迁入负载数据大于源数据中心的待迁出负载数据, 则将综合权重最 小的数据中心作为目 的数据中心。  The first obtaining subunit 431a is further configured to calculate the inbound load data that each data center in the resource scheduling data center set can bear, and select the data center with the smallest integrated weight from the resource scheduling data center set, if the data with the smallest integrated weight is If the load data that the center can bear is greater than the data to be moved out of the source data center, the data center with the smallest integrated weight is used as the destination data center.
第一获取子单元 431a, 还用于若综合权重最小的数据中心可承 受的迁入负载数据小于源数据中心的待迁出负载数据, 则将综合权 重最小的数据中心作为 目的数据中心。  The first obtaining sub-unit 431a is further configured to use the data center with the smallest integrated weight as the destination data center if the load data that can be accepted by the data center with the smallest integrated weight is less than the load data to be moved out of the source data center.
第一获取子单元 431a, 还用于在资源调度数据中心集合中选取 综合权重次小的数据中心, 并将综合权重次小的数据中心作为另一 目 的数据中心, 直至在资源调度数据中心集合中选取的数据中心可 承受的迁入负载数据大于或等于源数据中心剩余的待迁出 负载数 据。 可选的, 参照图 6所示, 该设备还包括:  The first obtaining sub-unit 431a is further configured to select a data center with a small integrated weight in the resource scheduling data center set, and use the data center with the smaller weight as the other destination data center until the resource scheduling data center set The selected load data that the selected data center can bear is greater than or equal to the remaining load data to be moved out of the source data center. Optionally, as shown in FIG. 6, the device further includes:
数据中心获取单元还包括:第二获取子单元 431b和第二数据处 理子单元 432b, 其中:  The data center obtaining unit further includes: a second obtaining subunit 431b and a second data processing subunit 432b, wherein:
第二获取子单元 431b, 用于若所述数据中心的平均应用资源占 用率低于所述负载阈值下限, 则在数据中心中选取应用资源的负载 最小的数据中心, 将应用资源的负载最小的数据中心作为用于迁出 负载数据的源数据中心。  The second obtaining sub-unit 431b is configured to: if the average application resource occupancy rate of the data center is lower than the lower limit of the load threshold, select a data center with the least load of the application resource in the data center, and minimize the load of the application resource. The data center acts as a source data center for migrating load data.
第二数据处理子单元 432b, 用于计算源数据中心的负载, 并将 源数据中心的负载作为待迁出负载数据。  The second data processing sub-unit 432b is configured to calculate the load of the source data center, and the load of the source data center is used as the data to be migrated out.
第二获取子单元 431b, 还用于从数据中心中选取至少一个负载 高于数据中心的平均应用资源占用率的数据中心作为资源调度数据 中心集合。  The second obtaining sub-unit 431b is further configured to select, from the data center, at least one data center with a load higher than the average application resource occupancy of the data center as the resource scheduling data center set.
第二数据处理子单元 432b, 还用于获取资源调度数据中心集合 中每个数据中心的网络资源占用率, 并根据资源调度数据中心集合 中每个数据中心的应用资源占用率和网络资源占用率计算资源调度 数据中心集合中每个数据中心的综合权重。 The second data processing sub-unit 432b is further configured to acquire a resource scheduling data center set. The network resource occupancy rate of each data center is calculated, and the comprehensive weight of each data center in the resource scheduling data center set is calculated according to the application resource occupancy rate and the network resource occupancy rate of each data center in the resource scheduling data center set.
第二获取子单元 43 1 b , 还用于计算资源调度数据中心集合中每 个数据中心可承受的迁入负载数据, 从资源调度数据中心集合中选 取综合权重最大的数据中心, 若综合权重最大的数据中心可承受的 迁入负载数据大于源数据中心的待迁出负载数据, 则将综合权重最 大的数据中心作为目 的数据中心。  The second obtaining sub-unit 43 1 b is further configured to calculate the immigration load data that each data center in the resource scheduling data center set can bear, and select the data center with the largest comprehensive weight from the resource scheduling data center set, if the comprehensive weight is the largest The data load that the data center can withstand is greater than the data to be moved out of the source data center, and the data center with the largest integrated weight is used as the destination data center.
第二获取子单元 43 1 b , 还用于若综合权重最大的数据中心可承 受的迁入负载数据小于源数据中心的待迁出负载数据, 则将综合权 重最大的数据中心作为 目的数据中心。  The second obtaining sub-unit 43 1 b is further configured to use the data center with the largest comprehensive weight as the destination data center if the load data that can be accepted by the data center with the largest integrated weight is less than the load data to be moved out of the source data center.
第二获取子单元 43 1 b , 还用于在资源调度数据中心集合选取综 合权重次大的数据中心, 并将综合权重次大的数据中心作为另一目 的数据中心, 直至在资源调度数据中心集合中选取的数据中心可承 受的迁入负载数据大于或等于源数据中心剩余的待迁出负载数据。  The second obtaining sub-unit 43 1 b is further configured to select a data center with the second largest integrated weight in the resource scheduling data center set, and use the data center with the second largest weight as the other destination data center until the data center is collected in the resource scheduling data center. The migrated load data that the selected data center can withstand is greater than or equal to the remaining load data to be moved out of the source data center.
本实施例中的数据中心分为两种状态即运行状态和休眠状态, 处于运行状态的源数据中心进入目 的数据中心后, 源数据中心自动 进入休眠状态, 这样待机状态对各种资源的消耗都处于最低状态, 避免对资源的浪费。 其中, 进行资源调度过程中的数据中心都是处 于运行状态的数据中心。 当数据中心平均负载低于负载阈值下限时, 将负载数据从源数据中心迁出, 并将该负载数据迁入目 的数据中心, 减少对资源的浪费。  The data center in this embodiment is divided into two states, namely, an operating state and a dormant state. After the source data center in the running state enters the destination data center, the source data center automatically enters a sleep state, so that the standby state consumes various resources. At the lowest level, avoid wasting resources. Among them, the data center in the process of resource scheduling is the data center in the running state. When the average load of the data center is lower than the lower limit of the load threshold, the load data is migrated from the source data center, and the load data is moved to the destination data center to reduce waste of resources.
本发明的实施例提供的资源调度设备, 通过在数据中心间采用 自适应资源调度, 可以避免数据中心上资源浪费和资源不足的现象 发生, 提高了数据中心对负载变化的适应性, 达到不用间断业务便 可实现对资源的调整, 并降低网络阻塞率。 同时, 可以提高用户的 服务质量。  The resource scheduling device provided by the embodiment of the present invention can avoid resource waste and resource shortage in the data center by adopting adaptive resource scheduling between data centers, thereby improving the adaptability of the data center to load changes, and achieving non-interruption. The business can adjust the resources and reduce the network blocking rate. At the same time, the quality of service of users can be improved.
本发明的实施例提供一种资源调度设备 5 , 参照图 7所示, 该设 备包括: 至少一个处理器 5 1、 存储器 52、 通信接口 53和总线 54 , 至少一个处理器 51、 存储器 52和通信接口 53 通过总线 54连接并 完成相互间的通信, 其中: An embodiment of the present invention provides a resource scheduling device 5. Referring to FIG. 7, the device includes: at least one processor 51, a memory 52, a communication interface 53, and a bus 54, At least one processor 51, memory 52 and communication interface 53 are connected by bus 54 and communicate with each other, wherein:
该总线 54 可以是工业标准体系 结构 ( Industry Standard Architecture , 简 称为 ISA ) 总线 、 外部设备互连 ( Peripheral Component, 简称为 PCI ) 总线或扩展工业标准体系结构 ( Extended Industry Standard Architecture, 简称为 EISA) 总线等。 该总线 54 可以分为地址总线、 数据总线、 控制总线等。 为便于表示, 图 7 中 仅用一条粗线表示, 但并不表示仅有一根总线或一种类型的总线。 其巾:  The bus 54 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Wait. The bus 54 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus. Its towel:
存储器 52用于存储可执行程序代码,该程序代码包括计算机操 作指令。 存储器 52可能包含高速 RAM存储器, 也可能还包括非易 失性存 4诸器 ( non-volatile memory ), 例: ¾口至少一个磁盘存 者器。  Memory 52 is for storing executable program code, the program code including computer operating instructions. Memory 52 may contain high speed RAM memory and may also include non-volatile memory, for example: 3⁄4 port at least one disk memory.
处理器 51可能是一个中央处理器 ( Central Processing Unit, 简 称为 CPU), 或者是特定集成电路 ( Application Specific Integrated Circuit, 简称为 ASIC ), 或者是被配置成实施本发明实施例的一个 或多个集成电路。  The processor 51 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more configured to implement the embodiments of the present invention. integrated circuit.
通信接口 53, 主要用于实现本实施例中的装置之间的通信。 处理器 51, 用于通过至少一个通信接口 53 获取每个数据中心 的应用资源占用率, 根据应用资源占用率计算数据中心的平均应用 资源占用率。  The communication interface 53 is mainly used to implement communication between devices in this embodiment. The processor 51 is configured to obtain an application resource occupancy rate of each data center by using at least one communication interface 53, and calculate an average application resource occupancy rate of the data center according to the application resource occupancy rate.
存储器 52, 用于判断处理器 51 转发的数据中心的平均应用资 源占用率是否超出负载阈值上限或者低于负载阈值下限。  The memory 52 is configured to determine whether the average application resource occupancy of the data center forwarded by the processor 51 exceeds a load threshold upper limit or is lower than a load threshold lower limit.
处理器 51, 还用于根据存储器 52 转发的判断结果通过至少一 个通信接口 53在数据中心中选取用于迁出负载数据的源数据中心。  The processor 51 is further configured to select, in the data center, the source data center for migrating the load data through the at least one communication interface 53 according to the judgment result of the forwarding by the memory 52.
处理器 51, 还用于根据源数据中心的待迁出负载数据及每个数 据中心的应用资源占用率和网络资源占用率通过至少一个通信接口 53在数据中心中选取用于迁入负载数据的目 的数据中心。  The processor 51 is further configured to select, in the data center, the data to be migrated into the data center according to the to-be-migrated load data of the source data center and the application resource occupancy rate and the network resource occupancy rate of each data center by using at least one communication interface 53. Destination data center.
处理器 51, 还用于通过至少一个通信接口 53接收处理器 51选 取的源数据中心和目 的数据中心并从源数据中心迁出负载数据, 将 负载数据迁入目 的数据中心。 The processor 51 is further configured to receive, by using the at least one communication interface 53, the source data center and the destination data center selected by the processor 51, and migrate the load data from the source data center, and The load data is moved into the destination data center.
进一步的, 处理器 5 1 , 还用于若所述数据中心的平均应用资源 占用率超出所述负载阈值上限, 则通过至少一个通信接口 53在数据 中心中选取应用资源的负载最大的数据中心, 将应用资源的负载最 大的数据中心作为用于迁出负载数据的源数据中心。  Further, the processor 5 1 is further configured to: if the average application resource occupancy of the data center exceeds the upper limit of the load threshold, select, by using at least one communication interface 53, a data center with the largest load of application resources in the data center, The data center with the largest load of application resources is used as the source data center for migrating load data.
处理器 5 1 , 还用于计算源数据中心的负载, 并根据负载阈值上 限确定待迁出负载数据; 通过至少一个通信接口 53从数据中心中选 取至少一个负载低于数据中心的平均应用资源占用率的数据中心作 为资源调度数据中心集合。  The processor 5 1 is further configured to calculate a load of the source data center, and determine the to-be-migrated load data according to the load threshold upper limit; select at least one load from the data center by using the at least one communication interface 53 to be lower than the average application resource occupation of the data center. The rate of the data center serves as a collection of resource scheduling data centers.
处理器 5 1 , 还用于通过至少一个通信接口获取资源调度数据中 心集合中每个数据中心的网络资源占用率, 并根据资源调度数据中 心集合中每个数据中心的应用资源占用率和网络资源占用率计算资 源调度数据中心集合中每个数据中心的综合权重。  The processor 5 1 is further configured to acquire, by using at least one communication interface, a network resource occupancy rate of each data center in the resource scheduling data center set, and schedule application resource occupancy rate and network resources of each data center in the data center set according to the resource scheduling. The occupancy calculation calculates the overall weight of each data center in the data center collection.
处理器 5 1 , 还用于计算资源调度数据中心集合中每个数据中心 可承受的迁入负载数据, 通过至少一个通信接口 53从资源调度数据 中心集合中选取综合权重最小的数据中心, 若综合权重最小的数据 中心可承受的迁入负载数据大于源数据中心的待迁出的负载数据, 则将综合权重最小的数据中心作为 目的数据中心。  The processor 5 1 is further configured to calculate the immigration load data that each data center in the resource scheduling data center set can bear, and select the data center with the smallest integrated weight from the resource scheduling data center set through the at least one communication interface 53. The data load that can be tolerated by the data center with the smallest weight is greater than the load data to be migrated from the source data center, and the data center with the smallest integrated weight is used as the destination data center.
处理器 5 1 , 还用于若综合权重最小的数据中心可承受的迁入负 载数据小于源数据中心的待迁出负载数据, 则将综合权重最小的数 据中心作为 目的数据中心。  The processor 5 1 is further configured to use the data center with the smallest integrated weight as the destination data center if the data load that the data center with the smallest integrated weight can bear is less than the load data to be moved out of the source data center.
处理器 5 1 , 还用于通过至少一个通信接口 53 在资源调度数据 中心集合中选取综合权重次小的数据中心, 并将综合权重次小的数 据中心作为另一目 的数据中心, 直至在资源调度数据中心集合中选 取的数据中心可承受的迁入负载数据大于或等于源数据中心剩余的 待迁出负载数据。  The processor 5 1 is further configured to select, by using at least one communication interface 53, a data center with a small integrated weight in the resource scheduling data center set, and use the data center with the smaller weight as the other destination data center until the resource scheduling The data load that the data center selected in the data center collection can withstand is greater than or equal to the remaining load data to be migrated in the source data center.
可选的,处理器 5 1还用于若所述数据中心的平均应用资源占用 率低于所述负载阈值下限, 则通过至少一个通信接口 53在数据中心 中选取应用资源的负载最小的数据中心, 将应用资源的负载最小的 数据中心作为用于迁出负载数据的源数据中心。 Optionally, the processor 51 is further configured to: if the average application resource occupancy of the data center is lower than the lower limit of the load threshold, select, by using at least one communication interface 53, a data center with the least load of application resources in the data center. , minimizing the load of application resources The data center acts as a source data center for migrating load data.
处理器 5 1 , 还用于计算源数据中心的负载, 并将源数据中心的 负载作为待迁出负载数据; 通过至少一个通信接口 53从数据中心中 选取至少一个负载高于数据中心的平均应用资源占用率的数据中心 作为资源调度数据中心集合。  The processor 5 1 is further configured to calculate a load of the source data center, and use the load of the source data center as the data to be migrated out; select at least one load from the data center by using at least one communication interface 53 to be higher than the average application of the data center. The data center of resource occupancy is used as a collection of resource scheduling data centers.
处理器 5 1 , 还用于通过至少一个通信接口 53 获取资源调度数 据中心集合中每个数据中心的网络资源占用率, 并根据资源调度数 据中心集合中每个数据中心的应用资源占用率和网络资源占用率计 算资源调度数据中心集合中每个数据中心的综合权重。  The processor 5 1 is further configured to acquire, by using the at least one communication interface 53, the network resource occupancy rate of each data center in the resource scheduling data center set, and schedule application resource occupancy rate and network of each data center in the data center set according to the resource scheduling. Resource occupancy calculation The overall weight of each data center in the resource scheduling data center collection.
处理器 5 1 , 还用于计算资源调度数据中心集合中每个数据中心 可承受的迁入负载数据, 通过至少一个通信接口从资源调度数据中 心集合中选取综合权重最大的数据中心, 若综合权重最大的数据中 心可承受的迁入负载数据大于源数据中心的待迁出负载数据, 则将 综合权重最大的数据中心作为目 的数据中心。  The processor 5 1 is further configured to calculate the immigration load data that each data center in the resource scheduling data center set can bear, and select the data center with the largest integrated weight from the resource scheduling data center set through at least one communication interface, if the comprehensive weight The data load that the largest data center can withstand is greater than the data to be moved out of the source data center, and the data center with the largest integrated weight is used as the destination data center.
处理器 5 1 , 还用于若综合权重最大的数据中心可承受的迁入负 载数据小于源数据中心的待迁出负载数据, 则将综合权重最大的数 据中心作为 目的数据中心。  The processor 5 1 is further configured to use the data center with the largest integrated weight as the destination data center if the data load that the data center with the largest integrated weight can bear is less than the data to be moved out of the source data center.
处理器 5 1 ,还用于通过至少一个通信接口 53在资源调度数据中 心集合选取综合权重次大的数据中心, 并将综合权重次大的数据中 心作为另一目 的数据中心, 直至在资源调度数据中心集合中选取的 数据中心可承受的迁入负载数据大于或等于源数据中心剩余的待迁 出负载数据。  The processor 5 1 is further configured to select, by using the at least one communication interface 53, the data center with the second largest integrated weight in the resource scheduling data center set, and use the data center with the second largest weight as the other destination data center until the resource scheduling data The data load that the selected data center can bear in the central set is greater than or equal to the remaining load data to be moved out of the source data center.
本发明的实施例提供的资源调度设备, 通过在数据中心间采用 自适应资源调度, 可以避免数据中心上资源浪费和资源不足的现象 发生, 提高了数据中心对负载变化的适应性, 达到不用间断业务便 可实现对资源的调整, 并降低网络阻塞率。 同时, 可以提高用户的 服务质量。  The resource scheduling device provided by the embodiment of the present invention can avoid resource waste and resource shortage in the data center by adopting adaptive resource scheduling between data centers, thereby improving the adaptability of the data center to load changes, and achieving non-interruption. The business can adjust the resources and reduce the network blocking rate. At the same time, the quality of service of users can be improved.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围 并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技 术范围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围 之内。 因此, 本发明的保护范围应所述以权利要求的保护范围为准。 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, and any skilled person skilled in the art may disclose the technology disclosed in the present invention. Variations or substitutions are readily conceivable within the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要 求 书 claims
1、 一种数据中心间资源调度方法, 其特征在于, 包括: 获取每个数据中心的应用资源占用率,根据所述应用资源占用率 计算数据中心的平均应用资源占用率; 1. A resource scheduling method between data centers, characterized in that it includes: obtaining the application resource occupancy rate of each data center, and calculating the average application resource occupancy rate of the data center according to the application resource occupancy rate;
判断所述数据中心的平均应用资源占用率是否超出负载阈值上 限或者低于负载阈值下限; Determine whether the average application resource occupancy rate of the data center exceeds the upper limit of the load threshold or is lower than the lower limit of the load threshold;
根据判断结果在所述数据中心中选取用于迁出负载数据的源数 据中心; Select the source data center for migrating the load data from the data center according to the judgment result;
根据所述源数据中心的待迁出负载数据及所述每个数据中心的 所述应用资源占用率和网络资源占用率在所述数据中心中选取用于 迁入负载数据的目的数据中心; Select the destination data center for migrating the load data in the data center according to the load data to be migrated from the source data center and the application resource occupancy rate and network resource occupancy rate of each data center;
从所述源数据中心迁出负载数据,并将所述负载数据迁入所述目 的数据中心。 Migrate load data from the source data center and move the load data into the destination data center.
2、 根据权利要求 1 所述的方法, 其特征在于, 所述根据判断结 果在所述数据中心中选取用于迁出负载数据的源数据中心包括: 2. The method according to claim 1, characterized in that, selecting the source data center for migrating load data in the data center according to the judgment result includes:
若所述数据中心的平均应用资源占用率超出所述负载阈值上限, 则在所述数据中心中选取应用资源的负载最大的数据中心, 将所述应 用资源的负载最大的数据中心作为用于迁出负载数据的源数据中心。 If the average application resource occupancy rate of the data center exceeds the upper limit of the load threshold, then the data center with the largest load of application resources is selected from the data center, and the data center with the largest load of the application resources is used for migration. The source data center from which the load data is exported.
3、 根据权利要求 1 所述的方法, 其特征在于, 所述根据所述源 数据中心的待迁出负载数据及所述每个数据中心的所述应用资源占 用率和网络资源占用率在所述数据中心中选取用于迁入负载数据的 目的数据中心, 包括: 3. The method according to claim 1, characterized in that, the load data to be migrated according to the source data center and the application resource occupancy rate and network resource occupancy rate of each data center are located at the location of the data center. Select the destination data center for migrating load data from the above data centers, including:
计算所述源数据中心的负载,并根据所述负载阈值上限确定所述 待迁出负载数据; Calculate the load of the source data center, and determine the load data to be migrated based on the upper limit of the load threshold;
从所述数据中心中选取至少一个负载低于所述数据中心的平均 应用资源占用率的数据中心作为资源调度数据中心集合; Select at least one data center whose load is lower than the average application resource occupancy rate of the data center from the data center as a resource scheduling data center set;
获取所述资源调度数据中心集合中每个数据中心的网络资源占 用率, 并根据所述资源调度数据中心集合中每个数据中心的所述应用 资源占用率和所述网络资源占用率计算所述资源调度数据中心集合 中每个数据中心的综合权重; Obtain the network resource occupancy rate of each data center in the resource scheduling data center set, and calculate the application resource occupancy rate and the network resource occupancy rate of each data center in the resource scheduling data center set. Resource Scheduling Data Center Collection The comprehensive weight of each data center;
计算所述资源调度数据中心集合中每个数据中心可承受的迁入 负载数据, 从所述资源调度数据中心集合中选取所述综合权重最小的 数据中心, 若所述综合权重最小的数据中心可承受的迁入负载数据大 于所述源数据中心的待迁出负载数据, 则将所述综合权重最小的数据 中心作为目的数据中心。 Calculate the in-migration load data that each data center in the resource scheduling data center set can withstand, and select the data center with the smallest comprehensive weight from the resource scheduling data center set. If the data center with the smallest comprehensive weight can If the load data to be moved in is greater than the load data to be moved out of the source data center, the data center with the smallest comprehensive weight will be used as the destination data center.
4、 根据权利要求 3所述的方法, 其特征在于, 所述方法还包括: 若所述综合权重最小的数据中心可承受的迁入负载数据小于所 述源数据中心的待迁出负载数据, 则将所述综合权重最小的数据中心 作为目的数据中心; 4. The method according to claim 3, characterized in that, the method further includes: if the migrating load data that the data center with the smallest comprehensive weight can withstand is less than the to-be-migrated load data of the source data center, Then the data center with the smallest comprehensive weight will be used as the destination data center;
在所述资源调度数据中心集合中选取所述综合权重次小的数据 中心, 并将所述综合权重次小的数据中心作为另一目的数据中心, 直 至在所述资源调度数据中心集合中选取的数据中心可承受的迁入负 载数据大于或等于所述源数据中心剩余的待迁出负载数据。 The data center with the second smallest comprehensive weight is selected from the resource scheduling data center set, and the data center with the second smallest comprehensive weight is used as another destination data center until the data center selected from the resource scheduling data center set is The load data that the data center can bear to move in is greater than or equal to the load data that remains to be moved out of the source data center.
5、 根据权利要求 1 所述的方法, 其特征在于, 所述根据判断结 果在所述数据中心中选取用于迁出负载数据的源数据中心包括: 5. The method according to claim 1, wherein the selecting a source data center for migrating load data in the data center according to the judgment result includes:
若所述数据中心的平均应用资源占用率低于所述负载阈值下限, 则在所述数据中心中选取应用资源的负载最小的数据中心, 将所述应 用资源的负载最小的数据中心作为用于迁出负载数据的源数据中心。 If the average application resource occupancy rate of the data center is lower than the lower limit of the load threshold, select the data center with the smallest load of application resources among the data centers, and use the data center with the smallest load of the application resources as the data center. Migrate the source data center of the load data.
6、 根据权利要求 1 所述的方法, 其特征在于, 所述根据所述源 数据中心的待迁出负载数据及所述每个数据中心的所述应用资源占 用率和网络资源占用率在所述数据中心中选取用于迁入负载数据的 目的数据中心包括: 6. The method according to claim 1, characterized in that: the load data to be migrated according to the source data center and the application resource occupancy rate and network resource occupancy rate of each data center are located at the location of the data center. The destination data centers selected for migrating load data from the above data centers include:
计算所述源数据中心的负载,并将所述源数据中心的负载作为待 迁出负载数据; Calculate the load of the source data center and use the load of the source data center as the load data to be migrated;
从所述数据中心中选取至少一个负载高于所述数据中心的平均 应用资源占用率的数据中心作为资源调度数据中心集合; Select at least one data center from the data center whose load is higher than the average application resource occupancy rate of the data center as a set of resource scheduling data centers;
获取所述资源调度数据中心集合中每个数据中心的网络资源占 用率, 并根据所述资源调度数据中心集合中每个数据中心的所述应用 资源占用率和所述网络资源占用率计算所述资源调度数据中心集合 中每个数据中心的综合权重; Obtain the network resource occupancy rate of each data center in the resource scheduling data center set, and schedule the application according to the application of each data center in the resource scheduling data center set. The resource occupancy rate and the network resource occupancy rate calculate the comprehensive weight of each data center in the resource scheduling data center set;
计算所述资源调度数据中心集合中每个数据中心可承受的迁入 负载数据, 从所述资源调度数据中心集合中选取所述综合权重最大的 数据中心, 若所述综合权重最大的数据中心可承受的迁入负载数据大 于所述源数据中心的待迁出负载数据, 则将所述综合权重最大的数据 中心作为目的数据中心。 Calculate the in-migration load data that each data center in the resource scheduling data center set can withstand, and select the data center with the largest comprehensive weight from the resource scheduling data center set. If the data center with the largest comprehensive weight can If the in-migration load data is greater than the out-migration load data of the source data center, the data center with the highest comprehensive weight will be used as the destination data center.
7、 根据权利要求 6所述的方法, 其特征在于, 所述方法还包括: 若所述综合权重最大的数据中心可承受的迁入负载数据小于所 述源数据中心的待迁出负载数据, 则将所述综合权重最大的数据中心 作为目的数据中心; 7. The method according to claim 6, characterized in that, the method further includes: if the relocation load data that the data center with the largest comprehensive weight can withstand is less than the to-be-relocation load data of the source data center, Then the data center with the largest comprehensive weight will be used as the destination data center;
在所述资源调度数据中心集合选取所述综合权重次大的数据中 心, 并将所述综合权重次大的数据中心作为另一目的数据中心, 直至 在所述资源调度数据中心集合中选取的数据中心可承受的迁入负载 数据大于或等于所述源数据中'、剩余的待迁出负载数据。 Select the data center with the second largest comprehensive weight in the resource scheduling data center set, and use the data center with the second largest comprehensive weight as another destination data center until the data selected in the resource scheduling data center set The in-migration load data that the center can bear is greater than or equal to the remaining to-be-migration load data in the source data.
8、 一种资源调度设备, 其特征在于, 包括: 8. A resource scheduling device, characterized by including:
数据处理单元, 用于获取每个数据中心的应用资源占用率, 根据 所述应用资源占用率计算所述数据中心的平均应用资源占用率; A data processing unit, configured to obtain the application resource occupancy rate of each data center, and calculate the average application resource occupancy rate of the data center based on the application resource occupancy rate;
管理单元,用于判断所述数据处理单元转发的所述数据中心的平 均应用资源占用率是否超出负载阈值上限或者低于负载阈值下限; 数据中心获取单元,用于根据所述管理单元转发的判断结果选取 用于迁出负载数据的源数据中心; A management unit, used to determine whether the average application resource occupancy rate of the data center forwarded by the data processing unit exceeds the upper limit of the load threshold or is lower than the lower limit of the load threshold; a data center acquisition unit, used to determine based on the judgment forwarded by the management unit The result is to select the source data center used to migrate the load data;
所述数据中心获取单元,还用于根据所述源数据中心的待迁出负 载数据及所述每个数据中心的所述应用资源占用率和网络资源占用 率在所述数据中心中选取用于迁入负载数据的目的数据中心; The data center acquisition unit is also configured to select the application resource in the data center based on the load data to be moved out of the source data center and the application resource occupancy rate and network resource occupancy rate of each data center. Move the load data to the destination data center;
所述数据处理单元,还用于接收所述数据中心获取单元选取的所 述源数据中心和所述目 的数据中心并从所述源数据中心迁出负载数 据, 将所述负载数据迁入所述目的数据中心。 The data processing unit is also configured to receive the source data center and the destination data center selected by the data center acquisition unit and migrate the load data from the source data center, and migrate the load data into the destination data center.
9、 根据权利要求 8所述的设备, 其特征在于, 所述数据中心获 取单元包括: 9. The device according to claim 8, characterized in that the data center obtains Retrieval units include:
第一获取子单元,用于若所述数据中心的平均应用资源占用率超 出所述负载阈值上限, 则在所述数据中心中选取应用资源的负载最大 的数据中心, 将所述应用资源的负载最大的数据中心作为用于迁出负 载数据的源数据中心。 The first acquisition subunit is used to, if the average application resource occupancy rate of the data center exceeds the upper limit of the load threshold, select the data center with the largest load of application resources among the data centers, and calculate the load of the application resources. The largest data center serves as the source data center for migrating workload data.
10、 根据权利要求 8所述的设备, 其特征在于, 所述数据中心获 取单元还包括: 10. The device according to claim 8, characterized in that the data center acquisition unit further includes:
第一数据处理子单元, 用于计算所述源数据中心的负载, 并根据 所述负载阈值上限确定所述待迁出负载数据; The first data processing subunit is used to calculate the load of the source data center and determine the load data to be migrated based on the upper limit of the load threshold;
所述第一获取子单元,还用于从所述数据中心中选取至少一个负 载低于所述数据中心的平均应用资源占用率的数据中心作为资源调 度数据中心集合; The first acquisition subunit is also used to select at least one data center from the data center whose load is lower than the average application resource occupancy rate of the data center as a resource scheduling data center set;
所述第一数据处理子单元,还用于获取所述资源调度数据中心集 合中每个数据中心的网络资源占用率, 并根据所述资源调度数据中心 集合中每个数据中心的所述应用资源占用率和所述网络资源占用率 计算所述资源调度数据中心集合中每个数据中'、的综合权重; The first data processing sub-unit is also used to obtain the network resource occupancy rate of each data center in the resource scheduling data center set, and based on the application resources of each data center in the resource scheduling data center set The occupancy rate and the network resource occupancy rate calculate the comprehensive weight of each data in the resource scheduling data center set;
所述第一获取子单元,还用于计算所述资源调度数据中心集合中 每个数据中心可承受的迁入负载数据, 从所述资源调度数据中心集合 中选取所述综合权重最小的数据中心, 若所述综合权重最小的数据中 心可承受的迁入负载数据大于所述源数据中心的待迁出负载数据, 则 将所述综合权重最小的数据中心作为目的数据中心。 The first acquisition subunit is also used to calculate the in-migration load data that each data center in the resource scheduling data center set can withstand, and select the data center with the smallest comprehensive weight from the resource scheduling data center set. , if the migrating load data that the data center with the smallest comprehensive weight can withstand is greater than the load data to be moved out of the source data center, then the data center with the smallest comprehensive weight will be used as the destination data center.
1 1、 根据权利要求 10所述的设备, 其特征在于, 包括: 所述第一获取子单元,还用于若所述综合权重最小的数据中心可 承受的迁入负载数据小于所述源数据中心的待迁出负载数据, 则将所 述综合权重最小的数据中心作为目的数据中心; 1 1. The device according to claim 10, characterized in that it includes: the first acquisition subunit, which is also configured to: if the data center with the smallest comprehensive weight can withstand the in-migration load data is less than the source data For the load data to be migrated from the center, the data center with the smallest comprehensive weight will be used as the destination data center;
所述第一获取子单元,还用于在所述资源调度数据中心集合中选 取所述综合权重次小的数据中心, 并将所述综合权重次小的数据中心 作为另一目的数据中心, 直至在所述资源调度数据中心集合中选取的 数据中心可承受的迁入负载数据大于或等于所述源数据中心剩余的 待迁出负载数据。 The first acquisition subunit is also used to select the data center with the second smallest comprehensive weight from the resource scheduling data center set, and use the data center with the second smallest comprehensive weight as another destination data center, until The in-migration load data that the data center selected from the resource scheduling data center set can withstand is greater than or equal to the remaining load data of the source data center. The load data is to be migrated out.
12、 根据权利要求 8所述的设备, 其特征在于, 所述数据中心获 取单元还包括: 12. The device according to claim 8, characterized in that the data center acquisition unit further includes:
第二获取子单元,用于若所述数据中心的平均应用资源占用率低 于所述负载阈值下限, 则在所述数据中心中选取应用资源的负载最小 的数据中心, 将所述应用资源的负载最小的数据中心作为用于迁出负 载数据的源数据中心。 The second acquisition subunit is used to select the data center with the smallest load of application resources among the data centers if the average application resource occupancy rate of the data center is lower than the lower limit of the load threshold, and obtain the data center with the smallest load of the application resources. The data center with the least load serves as the source data center for migrating the load data.
13、 根据权利要求 8所述的设备, 其特征在于, 所述数据中心获 取单元还包括: 13. The device according to claim 8, characterized in that the data center acquisition unit further includes:
第二数据处理子单元, 用于计算所述源数据中心的负载, 并将所 述源数据中心的负载作为待迁出负载数据; The second data processing subunit is used to calculate the load of the source data center, and use the load of the source data center as the load data to be migrated;
所述第二获取子单元,还用于从所述数据中心中选取至少一个负 载高于所述数据中心的平均应用资源占用率的数据中心作为资源调 度数据中心集合; The second acquisition subunit is also used to select at least one data center from the data center whose load is higher than the average application resource occupancy rate of the data center as a resource scheduling data center set;
所述第二数据处理子单元,还用于获取所述资源调度数据中心集 合中每个数据中心的网络资源占用率, 并根据所述资源调度数据中心 集合中每个数据中心的所述应用资源占用率和所述网络资源占用率 计算所述资源调度数据中心集合中每个数据中'、的综合权重; The second data processing sub-unit is also used to obtain the network resource occupancy rate of each data center in the resource scheduling data center set, and based on the application resources of each data center in the resource scheduling data center set The occupancy rate and the network resource occupancy rate calculate the comprehensive weight of each data in the resource scheduling data center set;
所述第二获取子单元,还用于计算所述资源调度数据中心集合中 每个数据中心可承受的迁入负载数据, 从所述资源调度数据中心集合 中选取所述综合权重最大的数据中心, 若所述综合权重最大的数据中 心可承受的迁入负载数据大于所述源数据中心的待迁出负载数据, 则 将所述综合权重最大的数据中心作为目的数据中心。 The second acquisition subunit is also used to calculate the in-migration load data that each data center in the resource scheduling data center set can withstand, and select the data center with the largest comprehensive weight from the resource scheduling data center set. , if the data center with the largest comprehensive weight can withstand the in-migration load data is greater than the load data to be moved out of the source data center, then the data center with the largest comprehensive weight will be used as the destination data center.
14、 根据权利要求 13所述的设备, 其特征在于, 14. The device according to claim 13, characterized in that,
所述第二获取子单元,还用于若所述综合权重最大的数据中心可 承受的迁入负载数据小于所述源数据中心的待迁出负载数据, 则将所 述综合权重最大的数据中心作为目的数据中心; The second acquisition subunit is also used to obtain the data center with the highest comprehensive weight if the in-migration load data that the data center with the largest comprehensive weight can bear is less than the to-be-migrated load data of the source data center. As a destination data center;
所述第二获取子单元, 还用于在所述资源调度数据中心集合选取 所述综合权重次大的数据中心, 并将所述综合权重次大的数据中心作 为另一目的数据中心, 直至在所述资源调度数据中心集合中选取的数 据中心可承受的迁入负载数据大于或等于所述源数据中心剩余的待 迁出负载数据。 The second acquisition subunit is also configured to select the data center with the second largest comprehensive weight in the resource scheduling data center set, and use the data center with the second largest comprehensive weight as the data center. For another destination data center, until the migrating load data that the data center selected in the resource scheduling data center set can bear is greater than or equal to the remaining to-be-migrated load data of the source data center.
15、 一种资源调度设备, 其特征在于, 包括: 至少一个处理器、 存储器、 通信接口和总线, 所述至少一个处理器、 存储器和通信接口 通过总线连接并完成相互间的通信, 其中: 15. A resource scheduling device, characterized in that it includes: at least one processor, memory, communication interface and bus, the at least one processor, memory and communication interface are connected through the bus and communicate with each other, wherein:
所述处理器,用于通过所述至少一个通信接口获取每个数据中心 的应用资源占用率, 根据所述应用资源占用率计算数据中心的平均应 用资源占用率; The processor is configured to obtain the application resource occupancy rate of each data center through the at least one communication interface, and calculate the average application resource occupancy rate of the data center based on the application resource occupancy rate;
所述存储器,用于判断所述处理器转发的所述数据中心的平均应 用资源占用率是否超出负载阈值上限或者低于负载阈值下限; The memory is used to determine whether the average application resource occupancy rate of the data center forwarded by the processor exceeds the upper limit of the load threshold or is lower than the lower limit of the load threshold;
所述处理器,还用于根据所述存储器转发的判断结果通过所述至 少一个通信接口在所述数据中心中选取用于迁出负载数据的源数据 中心; The processor is further configured to select a source data center for migrating load data in the data center through the at least one communication interface according to the judgment result of the memory forwarding;
所述处理器,还用于根据所述源数据中心的待迁出负载数据及所 述每个数据中心的所述应用资源占用率和网络资源占用率通过所述 至少一个通信接口在所述数据中心中选取用于迁入负载数据的目 的 数据中心; The processor is also configured to process the data in the data through the at least one communication interface according to the load data to be migrated from the source data center and the application resource occupancy rate and network resource occupancy rate of each data center. Select the destination data center for migrating load data from the center;
所述处理器,还用于通过所述至少一个通信接口接收所述处理器 选取的所述源数据中心和所述目 的数据中心并从所述源数据中心迁 出负载数据, 将所述负载数据迁入所述目的数据中心。 The processor is further configured to receive the source data center and the destination data center selected by the processor through the at least one communication interface and migrate the load data from the source data center, and transfer the load data Move into the destination data center.
16、 很据权利要求 15所述的设备, 其特征在于, 包括: 所述处理器,还用于若所述数据中心的平均应用资源占用率超出 所述负载阈值上限, 则通过所述至少一个通信接口在所述数据中心中 选取应用资源的负载最大的数据中心, 将所述应用资源的负载最大的 数据中心作为用于迁出负载数据的源数据中心。 16. The device according to claim 15, characterized in that: the processor is further configured to: if the average application resource occupancy rate of the data center exceeds the upper limit of the load threshold, through the at least one The communication interface selects the data center with the largest load of application resources among the data centers, and uses the data center with the largest load of application resources as the source data center for migrating the load data.
17、 根据权利要求 15所述的设备, 其特征在于, 包括: 所述处理器, 还用于计算所述源数据中心的负载, 并根据所述负 载阈值上限确定所述待迁出负载数据; 通过所述至少一个通信接口从 所述数据中心中选取至少一个负载低于所述数据中心的平均应用资 源占用率的数据中心作为资源调度数据中心集合; 17. The device according to claim 15, comprising: the processor, further configured to calculate the load of the source data center, and determine the load data to be migrated based on the upper limit of the load threshold; via said at least one communication interface from Select at least one data center in the data center whose load is lower than the average application resource occupancy rate of the data center as a set of resource scheduling data centers;
所述处理器,还用于通过所述至少一个通信接口获取所述资源调 度数据中心集合中每个数据中心的网络资源占用率, 并根据所述资源 调度数据中心集合中每个数据中心的所述应用资源占用率和所述网 络资源占用率计算所述资源调度数据中心集合中每个数据中心的综 合权重; The processor is also configured to obtain the network resource occupancy rate of each data center in the resource scheduling data center set through the at least one communication interface, and calculate the network resource occupancy rate of each data center in the resource scheduling data center set according to the at least one communication interface. The application resource occupancy rate and the network resource occupancy rate calculate the comprehensive weight of each data center in the resource scheduling data center set;
所述处理器,还用于计算所述资源调度数据中心集合中每个数据 中心可承受的迁入负载数据, 通过所述至少一个通信接口从所述资源 调度数据中心集合中选取所述综合权重最小的数据中心, 若所述综合 权重最小的数据中心可承受的迁入负载数据大于所述源数据中心的 待迁出负载数据, 则将所述综合权重最小的数据中心作为目的数据中 心 。 The processor is also configured to calculate the in-migration load data that each data center in the resource scheduling data center set can withstand, and select the comprehensive weight from the resource scheduling data center set through the at least one communication interface. The smallest data center, if the data center with the smallest comprehensive weight can withstand the in-migration load data is greater than the to-be-migrated load data of the source data center, then the data center with the smallest comprehensive weight will be used as the destination data center.
18、 根据权利要求 17所述的设备, 其特征在于, 包括: 所述处理器,还用于若所述综合权重最小的数据中心可承受的迁 入负载数据小于所述源数据中心的待迁出负载数据, 则将所述综合权 重最小的数据中心作为目的数据中心; 18. The device according to claim 17, characterized in that: the processor is further configured to: If the load data is output, the data center with the smallest comprehensive weight will be used as the destination data center;
所述处理器,还用于通过所述至少一个通信接口在所述资源调度 数据中心集合中选取所述综合权重次小的数据中心, 并将所述综合权 重次小的数据中心作为另一目的数据中心, 直至在所述资源调度数据 中心集合中选取的数据中心可承受的迁入负载数据大于或等于所述 源数据中心剩余的待迁出负载数据。 The processor is further configured to select the data center with the second smallest comprehensive weight from the resource scheduling data center set through the at least one communication interface, and use the data center with the second smallest comprehensive weight as another purpose. data center until the relocation load data that the data center selected in the resource scheduling data center set can withstand is greater than or equal to the remaining to-be-relocation load data of the source data center.
19、 根据权利要求 15所述的设备, 其特征在于, 包括: 所述处理器,还用于若所述数据中心的平均应用资源占用率低于 所述负载阈值下限, 则通过所述至少一个通信接口在所述数据中心中 选取应用资源的负载最小的数据中心, 将所述应用资源的负载最小的 数据中心作为用于迁出负载数据的源数据中心。 19. The device according to claim 15, comprising: the processor, further configured to: if the average application resource occupancy rate of the data center is lower than the lower load threshold, through the at least one The communication interface selects the data center with the smallest load of application resources among the data centers, and uses the data center with the smallest load of the application resources as the source data center for migrating the load data.
20、 根据权利要求 15所述的设备, 其特征在于, 包括: 所述处理器, 还用于计算所述源数据中心的负载, 并将所述源数 据中心的负载作为待迁出负载数据; 通过所述至少一个通信接口从所 述数据中心中选取至少一个负载高于所述数据中心的平均应用资源 占用率的数据中心作为资源调度数据中心集合; 20. The device according to claim 15, characterized by comprising: the processor, further configured to calculate the load of the source data center and convert the source data into The load of the data center is used as load data to be migrated; selecting at least one data center from the data center with a load higher than the average application resource occupancy rate of the data center through the at least one communication interface as a set of resource scheduling data centers;
所述处理器,还用于通过所述至少一个通信接口获取所述资源调 度数据中心集合中每个数据中心的网络资源占用率, 并根据所述资源 调度数据中心集合中每个数据中心的所述应用资源占用率和所述网 络资源占用率计算所述资源调度数据中心集合中每个数据中心的综 合权重; The processor is also configured to obtain the network resource occupancy rate of each data center in the resource scheduling data center set through the at least one communication interface, and calculate the network resource occupancy rate of each data center in the resource scheduling data center set according to the at least one communication interface. The application resource occupancy rate and the network resource occupancy rate calculate the comprehensive weight of each data center in the resource scheduling data center set;
所述处理器,还用于计算所述资源调度数据中心集合中每个数据 中心可承受的迁入负载数据, 通过所述至少一个通信接口从所述资源 调度数据中心集合中选取所述综合权重最大的数据中心, 若所述综合 权重最大的数据中心可承受的迁入负载数据大于所述源数据中 ' ^的 待迁出负载数据, 则将所述综合权重最大的数据中心作为目的数据中 心 。 The processor is also configured to calculate the in-migration load data that each data center in the resource scheduling data center set can withstand, and select the comprehensive weight from the resource scheduling data center set through the at least one communication interface. The largest data center. If the data center with the largest comprehensive weight can withstand the in-migration load data is greater than the to-be-migrated load data in the source data, then the data center with the largest comprehensive weight will be used as the destination data center. .
21、 根据权利要求 20所述的设备, 其特征在于, 包括: 所述处理器,还用于若所述综合权重最大的数据中心可承受的迁 入负载数据小于所述源数据中心的待迁出负载数据, 则将所述综合权 重最大的数据中心作为目的数据中心; 21. The device according to claim 20, characterized in that: the processor is further configured to: if the data center with the largest comprehensive weight can withstand the migrating load data is less than the to-be-migrated data center of the source data center, If the load data is output, the data center with the largest comprehensive weight will be used as the destination data center;
所述处理器, 还用于通过所述至少一个通信接口在所述资源调度 数据中心集合选取所述综合权重次大的数据中心, 并将所述综合权重 次大的数据中心作为另一目的数据中心, 直至在所述资源调度数据中 心集合中选取的数据中心可承受的迁入负载数据大于或等于所述源 数据中心剩余的待迁出负载数据。 The processor is further configured to select the data center with the second largest comprehensive weight from the resource scheduling data center set through the at least one communication interface, and use the data center with the second largest comprehensive weight as another destination data. center until the relocation load data that the data center selected in the resource scheduling data center set can withstand is greater than or equal to the remaining load data to be migrated out of the source data center.
PCT/CN2013/070556 2013-01-16 2013-01-16 Method and device for resource scheduling between data centers WO2014110743A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380000070.0A CN103443771B (en) 2013-01-16 2013-01-16 Resource regulating method and equipment between a kind of data center
PCT/CN2013/070556 WO2014110743A1 (en) 2013-01-16 2013-01-16 Method and device for resource scheduling between data centers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/070556 WO2014110743A1 (en) 2013-01-16 2013-01-16 Method and device for resource scheduling between data centers

Publications (1)

Publication Number Publication Date
WO2014110743A1 true WO2014110743A1 (en) 2014-07-24

Family

ID=49696205

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/070556 WO2014110743A1 (en) 2013-01-16 2013-01-16 Method and device for resource scheduling between data centers

Country Status (2)

Country Link
CN (1) CN103443771B (en)
WO (1) WO2014110743A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI539776B (en) 2014-01-23 2016-06-21 宏碁股份有限公司 Dynamic planning method for server resources of data center
CN104317638A (en) 2014-10-17 2015-01-28 华为技术有限公司 Application stretching management method and device
CN106648829A (en) * 2016-10-28 2017-05-10 广州市泰富信通科技有限公司 Virtual machine transferring method for efficient utilization of cloud resource
CN108092910B (en) * 2016-11-23 2021-07-20 腾讯科技(深圳)有限公司 Data traffic scheduling method and device
CN109697115B (en) * 2017-10-20 2023-06-06 伊姆西Ip控股有限责任公司 Method, apparatus and computer readable medium for scheduling applications
CN109343965A (en) * 2018-10-31 2019-02-15 北京金山云网络技术有限公司 Resource adjusting method, device, cloud platform and server
CN113342781B (en) * 2021-06-29 2023-07-11 深圳前海微众银行股份有限公司 Data migration method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102232282A (en) * 2010-10-29 2011-11-02 华为技术有限公司 Method and apparatus for realizing load balance of resources in data center
US20110296225A1 (en) * 2010-05-25 2011-12-01 Microsoft Corporation Resource-Based Adaptive Server Loading
CN102281329A (en) * 2011-08-02 2011-12-14 北京邮电大学 Resource scheduling method and system for platform as a service (Paas) cloud platform
CN102662759A (en) * 2012-03-20 2012-09-12 浪潮电子信息产业股份有限公司 Energy saving method based on CPU (central processing unit) load in cloud OS (operating system)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117226A (en) * 2011-03-18 2011-07-06 浪潮(北京)电子信息产业有限公司 Resource dispatching system and resource dispatching method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110296225A1 (en) * 2010-05-25 2011-12-01 Microsoft Corporation Resource-Based Adaptive Server Loading
CN102232282A (en) * 2010-10-29 2011-11-02 华为技术有限公司 Method and apparatus for realizing load balance of resources in data center
CN102281329A (en) * 2011-08-02 2011-12-14 北京邮电大学 Resource scheduling method and system for platform as a service (Paas) cloud platform
CN102662759A (en) * 2012-03-20 2012-09-12 浪潮电子信息产业股份有限公司 Energy saving method based on CPU (central processing unit) load in cloud OS (operating system)

Also Published As

Publication number Publication date
CN103443771A (en) 2013-12-11
CN103443771B (en) 2017-11-24

Similar Documents

Publication Publication Date Title
WO2014110743A1 (en) Method and device for resource scheduling between data centers
CN108509276B (en) Video task dynamic migration method in edge computing environment
US9703585B2 (en) Method for live migration of virtual machines
CN102427475B (en) Load balance scheduling system in cloud computing environment
CN103559072B (en) Virtual machine two-way automatic telescopic service implementing method and system thereof
JP2019533913A (en) Load balancing optimization method and apparatus based on cloud monitoring
KR101781063B1 (en) Two-level resource management method and appratus for dynamic resource management
US20150143379A1 (en) Information processing apparatus, information processing method, recording medium and information processing system
WO2013163865A1 (en) Virtual machine hot migration and deployment method, server and cluster system
CN111813330B (en) System and method for dispatching input-output
WO2013029487A1 (en) Resource allocation method and resource management platform
WO2015024368A1 (en) Component oriented hybrid cloud operating system architecture and communication method thereof
WO2012100544A1 (en) Method, device and cluster system for virtual machine migration based on network data flow direction
WO2014032287A1 (en) Allocation method for central processing unit resources and computation node
CN107122233B (en) TSN service-oriented multi-VCPU self-adaptive real-time scheduling method
CN106775949B (en) Virtual machine online migration optimization method capable of sensing composite application characteristics and network bandwidth
CN103944997A (en) Load balancing method with combination of random sampling and virtualization technology
Soundarabai et al. Comparative study on load balancing techniques in distributed systems
JP2023501870A (en) Autonomous virtual radio access network control
CN106936926B (en) Method and system for accessing data node
WO2014190557A1 (en) Physical resource adjustment method, device and controller
CN109857574B (en) Service quality improving method capable of sensing overload load in low-energy-consumption cluster environment
CN107306230B (en) Method, device, controller and core network equipment for network resource deployment
CN109597674B (en) Shared virtual resource pool share scheduling method and system
WO2017045640A1 (en) Associated stream bandwidth scheduling method and apparatus in data center

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13871590

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13871590

Country of ref document: EP

Kind code of ref document: A1