WO2021046774A1 - Resource scheduling method and information prediction method, device, system, and storage medium - Google Patents

Resource scheduling method and information prediction method, device, system, and storage medium Download PDF

Info

Publication number
WO2021046774A1
WO2021046774A1 PCT/CN2019/105455 CN2019105455W WO2021046774A1 WO 2021046774 A1 WO2021046774 A1 WO 2021046774A1 CN 2019105455 W CN2019105455 W CN 2019105455W WO 2021046774 A1 WO2021046774 A1 WO 2021046774A1
Authority
WO
WIPO (PCT)
Prior art keywords
cost
schedulable unit
schedulable
target
unit
Prior art date
Application number
PCT/CN2019/105455
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 CN201980095643.XA priority Critical patent/CN113826078B/en
Priority to PCT/CN2019/105455 priority patent/WO2021046774A1/en
Publication of WO2021046774A1 publication Critical patent/WO2021046774A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • This application relates to the technical field of computer room systems or data center systems, and in particular to a method, equipment, system and storage medium for resource scheduling and information prediction.
  • one solution is to configure a power consumption control strategy for the server of the computer room system or data center system. Based on the generalization of power consumption control strategies, it is necessary to provide new solutions.
  • Various aspects of the present application provide a resource scheduling and information prediction method, equipment, system, and storage medium to reduce the power consumption of a data center system or a computer room system.
  • An embodiment of the present application provides a resource scheduling method, including: acquiring current data corresponding to a cost impact factor of at least one schedulable unit, the current data including the at least one schedulable unit and the infrastructure on which it depends According to the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price, predict the The cost of at least one schedulable unit; and perform resource scheduling on the at least one schedulable unit according to the cost of the at least one schedulable unit.
  • An embodiment of the present application also provides an information prediction method, including: acquiring current data corresponding to a cost impact factor of a target schedulable unit, the current data including information about the target schedulable unit and the infrastructure on which it depends Current power consumption data; according to the current power consumption data of the target schedulable unit and the infrastructure on which it depends, and the influence relationship between the pre-trained cost cost influencing factor and the cost cost, predict that the target can be The cost of the dispatch unit.
  • An embodiment of the present application also provides a resource scheduling device, including: a memory and a processor; the memory is used to store a computer program; the processor is coupled to the memory and is used to execute the computer program for use For: acquiring current data corresponding to the cost impact factor of at least one schedulable unit, where the current data includes current power consumption data of the at least one schedulable unit and the infrastructure on which it depends; according to the at least one schedulable unit; The current power consumption data of the schedulable unit and the infrastructure on which it depends, as well as the influence relationship between the pre-trained cost cost influencing factor and the cost cost, predict the cost cost of the at least one schedulable unit; According to the cost of the at least one schedulable unit, resource scheduling is performed on the at least one schedulable unit.
  • An embodiment of the present application also provides an information prediction device, including: a memory and a processor; the memory is used to store a computer program; the processor is coupled to the memory and is used to execute the computer program for use In: obtaining current data corresponding to the cost impact factor of the target schedulable unit, the current data including current power consumption data of the target schedulable unit and the infrastructure on which it depends; according to the target schedulable unit The current power consumption data of the infrastructure and the infrastructure on which it depends, as well as the impact relationship between the pre-trained cost cost influencing factor and the cost cost, predict the cost cost of the target schedulable unit.
  • the embodiment of the present application also provides a computer room system, including: several schedulable units, several infrastructures, and resource scheduling equipment; the several infrastructures provide basic services for the several schedulable units; the resource scheduling A device for acquiring current data corresponding to the cost impact factor of at least one schedulable unit, where the current data includes current power consumption data of the at least one schedulable unit and the infrastructure on which it depends; according to the Current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, and the pre-trained cost impact factor and the impact relationship between the cost price, and predict the cost price of the at least one schedulable unit; Perform resource scheduling on the at least one schedulable unit according to the cost of the at least one schedulable unit; wherein the at least one schedulable unit comes from the several schedulable units.
  • the embodiment of the present application also provides another computer room system, including: several schedulable units, several infrastructures, information prediction equipment, and resource scheduling equipment; the several infrastructures provide basic services for the several schedulable units
  • the information prediction device is used to obtain current data corresponding to the cost impact factor of at least one schedulable unit, the current data including the current power consumption of the at least one schedulable unit and the infrastructure on which it depends Data; predict the at least one schedulable unit based on the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price
  • the cost of the unit; the cost of the at least one schedulable unit is provided to the resource scheduling device; the resource scheduling device is used to predict the cost of the at least one schedulable unit provided by the device according to the information , Perform resource scheduling on the at least one schedulable unit; wherein the at least one schedulable unit
  • the embodiment of the present application also provides a data center system, including: at least one computer room and resource scheduling equipment; each computer room includes a number of schedulable units and a number of infrastructures, and the number of infrastructures is the number of schedulable
  • the unit provides basic services; the resource scheduling device is used to obtain current data corresponding to the cost impact factor of at least one schedulable unit, and the current data includes the at least one schedulable unit and the infrastructure on which it depends According to the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price, predict the The cost of at least one schedulable unit; according to the cost of the at least one schedulable unit, perform resource scheduling on the at least one schedulable unit; wherein the at least one schedulable unit comes from the at least one computer room The schedulable unit.
  • the embodiment of the present application also provides another data center system, including: at least one computer room, information prediction equipment, and resource scheduling equipment; each computer room includes a number of schedulable units and a number of infrastructures.
  • the several schedulable units provide basic services; the information prediction device is used to obtain the current data corresponding to the cost impact factor of at least one schedulable unit, and the current data includes the at least one schedulable unit and its Current power consumption data of the dependent infrastructure; according to the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, and the pre-trained cost impact factor and the impact of the cost price Relationship, predict the cost of the at least one schedulable unit; provide the cost of the at least one schedulable unit to the resource scheduling device; the resource scheduling device is used to predict the cost of the at least one schedulable unit based on the information According to the cost of the at least one schedulable unit, resource scheduling is performed on the at least one s
  • An embodiment of the present application also provides an edge computing system, including: several edge computing nodes, several infrastructures and servers; the several infrastructures provide basic services for the several edge computing nodes;
  • the server is configured to obtain current data corresponding to the cost impact factor of at least one edge computing node, where the current data includes current power consumption data of the at least one edge computing node and the infrastructure on which it depends; Describe the current power consumption data of the at least one edge computing node and the infrastructure on which it depends, and the pre-trained cost impact factor and the impact relationship between the cost price, and predict the cost price of the at least one edge computing node; According to the cost of the at least one edge computing node, resource scheduling is performed on the at least one edge computing node; wherein the at least one edge computing node comes from the plurality of edge computing nodes.
  • the embodiments of the present application also provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the processor is caused to implement the steps in the method embodiments of the present application.
  • the cost cost prediction is combined with resource scheduling.
  • the cost cost-based resource scheduling is realized, which can prioritize the scheduling of resources with lower cost costs and reduce occurrences.
  • the probability of local hotspots is conducive to reducing the overall power consumption; in addition, in the cost cost prediction process, the contribution of the power consumption of the infrastructure on which the schedulable unit depends on the cost of the schedulable unit can be considered to make the predicted cost.
  • the cost price is more reasonable and accurate, and the rationality of resource scheduling based on the cost price can be improved.
  • FIG. 1 is a schematic structural diagram of a computer room system provided by an exemplary embodiment of this application;
  • FIG. 2a is a block diagram of a working principle of a resource scheduling device provided by an exemplary embodiment of this application;
  • 2b is a block diagram of another working principle of the resource scheduling device provided by an exemplary embodiment of this application.
  • FIG. 3 is a schematic structural diagram of a data center system provided by an exemplary embodiment of this application.
  • FIG. 4 is a schematic structural diagram of another computer room system provided by an exemplary embodiment of this application.
  • Fig. 5a is a block diagram of a working principle of an information prediction device provided by an exemplary embodiment of this application;
  • FIG. 5b is a block diagram of another working principle of the information prediction device provided by an exemplary embodiment of this application.
  • Fig. 6a is a schematic structural diagram of another data center system provided by an exemplary embodiment of this application.
  • FIG. 6b is a schematic structural diagram of an edge computing system provided by an exemplary embodiment of this application.
  • FIG. 7a is a schematic flowchart of a resource scheduling method provided by an exemplary embodiment of this application.
  • FIG. 7b is a schematic flowchart of a model training method provided by an exemplary embodiment of this application.
  • FIG. 7c is a schematic flowchart of an information prediction method provided by an exemplary embodiment of this application.
  • FIG. 8 is a schematic structural diagram of a resource scheduling device provided by an exemplary embodiment of this application.
  • FIG. 9 is a schematic structural diagram of an information prediction device provided by an exemplary embodiment of this application.
  • the prediction of the cost price is combined with the resource scheduling, and the cost price of the schedulable unit is predicted to realize the resource scheduling based on the cost price.
  • It can prioritize resources with lower cost, and can reduce the probability of local hot spots, which is helpful to reduce the overall power consumption.
  • the power consumption of the infrastructure on which the schedulable unit depends can be considered at the same time.
  • the contribution of the cost cost of the scheduling unit can make the predicted cost cost more reasonable and accurate, and further can improve the rationality of resource scheduling based on the cost cost.
  • FIG. 1 is a schematic diagram of the structure and working principle of a computer room system provided by an exemplary embodiment of this application.
  • the computer room system 100 of this embodiment includes: a computer room.
  • the computer room refers to a physical place where machinery and equipment are stored, for example, a room or a factory building.
  • the computer room system 100 can be built separately or placed in other buildings.
  • the computer room system 100 further includes: at least one physical device 101 and a resource scheduling device 102 located in the computer room. This embodiment does not limit the number of physical devices 101, and it may be one or multiple.
  • the device form of the physical device 101 is not limited.
  • the physical device 101 may be an IT-type device in a computer room and a refrigeration device for cooling the IT-type device, such as an air-conditioning device.
  • the at least one physical device 101 may include, but is not limited to: cabinet equipment, server equipment, terminal equipment, printers, hubs, power supply equipment, storage equipment, network switching equipment, air conditioning equipment, and so on.
  • the server device may include, but is not limited to, a conventional server, a server array, or a cloud server.
  • the power supply equipment can be storage battery equipment, dry battery equipment, or uninterruptible power supply (UPS).
  • Storage devices may include, but are not limited to: disks, disk arrays, hard disks, network storage devices (NAS), and so on.
  • the resource scheduling device can be any computer device with certain resource scheduling capabilities, such as terminal devices such as smart phones, laptops, desktop computers, tablets, or smart watches, or server devices such as conventional servers, cloud servers, or server arrays .
  • the physical device 101 in the computer room is divided into several schedulable units and several infrastructures.
  • "several” means an indeterminate number, which may mean one or more.
  • a schedulable unit refers to a resource device, module, or unit that can provide a certain service, function, or resource (for example, computing, storage, or network) to the outside in the computer room.
  • the schedulable unit may be a physical device such as a server or printer in the computer room, or a hardware module such as a CPU, GPU, memory, network card, or hard disk on the server, or a virtual machine running on a physical device, Software modules or units such as cloud services.
  • the schedulable unit is a server.
  • the infrastructure can include cabinets that provide support services for the servers, air-conditioning equipment, fans or water-cooling equipment for cooling the servers, power equipment for powering the servers, switches that provide network connections for the servers, etc. .
  • the schedulable unit is used as an available resource in the computer room system 100, and the schedulable unit can be reasonably scheduled for resources through the resource scheduling device 102.
  • Reasonable resource scheduling is of great significance for improving the resource utilization efficiency of the computer room system 100, saving energy, improving resource sharing, and reducing operating costs.
  • resource scheduling is a process of allocating schedulable units to users who need resources. For scenarios where resource overload (demand is greater than system capacity) or scenarios where demand and capacity change dynamically over time, the resource scheduling device 102 may dynamically reallocate resources so as to use available resources more efficiently. For example, the resource scheduling device 102 may allocate certain resource-demanding user applications to certain schedulable units or units to run.
  • the resource scheduling device 102 may allocate resources such as CPU, storage, or network bandwidth provided by a certain schedulable unit or units to certain resource demand users, and the resource demand users use these resources according to actual conditions.
  • the "application program" in the embodiments of the present application refers to various programs, codes, software, business systems, or application systems in a broad sense.
  • the resource scheduling device 102 simultaneously considers the cost of the schedulable unit during resource scheduling of the schedulable unit.
  • Resource scheduling based on cost can not only prioritize resources with lower cost, but also reduce the probability of local hot spots, which is beneficial to reducing the overall power consumption of the computer room system 100.
  • the resource scheduling device 102 in order to use the cost price of the schedulable unit, also has a cost price prediction capability for predicting the cost price of the schedulable unit.
  • the physical meaning represented by the "cost of the schedulable unit" can be flexibly defined according to application requirements, which is not limited in this embodiment.
  • the cost of the schedulable unit may be the cost of power consumption, or the cost of maintenance, or the cost of configuration, and so on. In this embodiment, the description is focused on the cost of power consumption as an example.
  • the direct factor that has an impact on the cost is the power consumption of the schedulable unit itself, in addition to many other factors.
  • the factor of power consumption of the infrastructure on which the schedulable unit depends is mainly considered, and the power consumption of the infrastructure on which the schedulable unit depends is converted into the cost of the schedulable unit, which can improve resource scheduling. rationality.
  • the factors that have an impact on the cost of the schedulable unit are collectively referred to as the cost impact factor.
  • the cost impact factor includes at least two.
  • the power consumption of the schedulable unit itself is a cost impact factor
  • the power consumption of the infrastructure on which the schedulable unit depends is another cost impact factor.
  • the value of some impact factors changes dynamically, and the value of some impact factors may not change.
  • the value of the cost impact factor at the current moment or the current time period is referred to as the current data corresponding to the cost impact factor; the cost impact factor is in the history
  • the value in the time or historical period is called the historical data corresponding to the cost impact factor.
  • the data content contained in current data and historical data will also be different.
  • At least one schedulable unit can be determined from the schedulable units included in the computer room system 100 during each resource scheduling process.
  • the at least one schedulable unit may be part of the schedulable unit included in the computer room system 100, or may be all schedulable units included in the computer room system 100.
  • the resource scheduling device 102 obtains the current data corresponding to the cost impact factor of at least one schedulable unit.
  • the cost impact factor used includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit depends. Based on this, the current data includes: Current power consumption data of the dependent infrastructure.
  • the resource scheduling device 102 can predict at least one schedulable unit and the current power consumption data of the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price. The cost of the dispatch unit. Finally, the resource scheduling device 102 may perform resource scheduling on at least one schedulable unit according to the cost of the at least one schedulable unit.
  • the manner in which the resource scheduling device 102 determines at least one schedulable unit from the schedulable units included in the computer room system 100 is not limited.
  • the resource scheduling device 102 may determine at least one schedulable unit that is schedulable this time from the schedulable units included in the computer room system 100 according to the resource demand corresponding to this resource scheduling.
  • the resource requirements corresponding to this resource scheduling include some requirements of this resource scheduling for schedulable units, such as type, location, or capacity, and schedulable units that meet these requirements can participate in this resource scheduling.
  • At least one schedulable unit that can be scheduled this time can be determined from the schedulable units included in the computer room system 100 in combination with the device topology relationship of the computer room system 100.
  • the device topology relationship of the computer room system 100 describes the topology relationship between the physical devices 101 in the computer room system 100, and the distance between each schedulable unit and the resource scheduling device 102 can be clearly known through the topology relationship.
  • at least one schedulable unit whose distance to the resource scheduling device performing this resource scheduling meets the set requirement can be determined from among the schedulable units included in the computer room system 100.
  • the distance here can be a physical distance or a network transmission distance. This embodiment does not limit the "setting requirements", and can be flexibly set according to application requirements. The following example illustrates:
  • Example 1 The setting requirement refers to being located in the same computer room. According to the device topology of the computer room system 100, at least one of the schedulable units included in the computer room system 100 can be determined to be located in the same computer room as the resource scheduling device 102. Scheduling unit. To put it simply, it is to obtain a schedulable unit that meets the resource demand corresponding to this resource scheduling from each schedulable unit included in the computer room system 100.
  • Example 2 The setting requirement refers to being located in the same channel.
  • the schedulable units included in the computer room system 100 can be determined to be located in the same channel as the resource scheduling device 102.
  • Scheduling unit The computer room system 100 includes a number of channels, each channel includes a number of cabinets, and each cabinet includes a number of servers.
  • the resource scheduling device 102 is deployed in a certain channel. To put it simply, it is to obtain a schedulable unit that meets the resource requirements corresponding to this resource scheduling in the schedulable unit located in the channel where the resource scheduling device 102 is located.
  • Example 3 The setting requirement refers to being located in the same cabinet. According to the device topology of the computer room system 100, it can be determined from the schedulable units included in the computer room system 100 that at least one schedulable unit is located in the same cabinet as the resource scheduling device 102. Scheduling unit.
  • the computer room system 100 includes a number of channels, each channel includes a number of cabinets, and each cabinet includes a number of servers.
  • the resource scheduling device 102 is deployed in a certain cabinet. To put it simply, it is deployed in the schedulable unit in the cabinet where the resource scheduling device 102 is located, and obtains the schedulable unit that meets the resource requirements corresponding to this resource scheduling.
  • the set requirement means that the physical distance is less than the set distance threshold, and the physical distance to the resource scheduling device 102 can be determined from the schedulable units included in the computer room system 100 according to the device topology relationship of the computer room system 100 At least one schedulable unit less than the set distance threshold.
  • the resource scheduling device 102 may obtain the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends.
  • the resource scheduling device 102 may obtain the current power consumption data of each physical device 101 in the computer room system 100, and analyze the current power consumption data of each schedulable unit in the computer room system 100 and the current power consumption data of each infrastructure; Then, the current power consumption data of at least one schedulable unit that can be schedulable this time is selected from the current power consumption data of each schedulable unit, and combined with the device topology relationship of the computer room system 100, the current power consumption data of each infrastructure Select the current power consumption data of the infrastructure on which at least one schedulable unit each depends.
  • the cost prediction model corresponding to each schedulable unit can be pre-trained offline, and the cost cost prediction model corresponding to each schedulable unit can reflect the cost impact factor and cost corresponding to the schedulable unit itself. Based on this, the cost prediction model corresponding to at least one schedulable unit is used to predict the cost on the line to obtain the cost of at least one schedulable unit.
  • FIG. 2a shows a block diagram of a working principle of the resource scheduling device 102.
  • the resource scheduling device 102 may obtain historical data corresponding to the cost impact factor of at least one schedulable unit, and the historical data includes historical power consumption data of the at least one schedulable unit and the infrastructure on which it depends.
  • the historical power consumption data here includes power consumption data at multiple historical moments or historical time periods; model training is performed according to the historical power consumption data of at least one schedulable unit and the infrastructure on which it depends to obtain at least one schedulable unit Each corresponding cost price prediction model.
  • the resource scheduling device 102 obtains the current power consumption data of at least one schedulable unit and the infrastructure on which it depends, and compares the current power consumption data of at least one schedulable unit and the infrastructure on which it depends.
  • the current power consumption data of each is input into the corresponding cost cost prediction model for cost cost prediction to obtain the cost cost of at least one schedulable unit; and then based on the cost cost of the at least one schedulable unit, resource scheduling is performed on at least one schedulable unit .
  • the cost cost prediction model shown in FIG. 2a mainly reflects the influence relationship of the cost cost influence factor of the power consumption of the infrastructure on which the schedulable unit depends on the cost cost of the schedulable unit.
  • the influence relationship can be expressed as the following formula (1), but it is not limited to this.
  • the target schedulable unit is any schedulable unit among at least one schedulable unit.
  • the resource scheduling device 102 inputs the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model corresponding to the target schedulable unit; the cost prediction model corresponding to the target schedulable unit Inside the model, the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the first type of weight coefficients that have been trained, and the result of the weighted summation is combined with the current power consumption data of the target schedulable unit Add them to get the cost of the target schedulable unit.
  • the weighting system ⁇ i in formula (1) is called the first type of weighting coefficient; the first type of weighting system reflects the impact of the cost impact factor of infrastructure power consumption on the cost of schedulable units. influences.
  • the cost impact factor is in addition to the power consumption of the schedulable unit itself (referred to as its own power consumption) and the power consumption of the infrastructure on which the schedulable unit depends (referred to as Infrastructure power consumption)
  • Infrastructure power consumption the power consumption of the infrastructure on which the schedulable unit depends
  • different types of applications have different power consumption usage patterns, which are generally required in advance in the SLA.
  • the cost of the schedulable unit in addition to considering the two cost impact factors of the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit depends, the cost of the schedulable unit can also be considered. At least one of the physical location, the price of electricity in the area where the schedulable unit is located, and the type of program running on the schedulable unit, and other cost impact factors. Among them, the type of programs running on the schedulable unit can reflect the power consumption of the schedulable unit to a certain extent.
  • some types of applications consume more power, such as applications that are used more frequently or frequently, or some audio and video playback applications; some types of applications consume relatively less power, such as those that are more frequently used. Few applications, or some text processing applications.
  • the electricity price of the area where the dispatchable unit is located is different, and the cost of the dispatchable unit will also be different.
  • the price of electricity in some areas is relatively high. Even if the power consumption of schedulable units (such as servers) deployed in these areas is not high, the cost of electricity may be higher when combined with the price of electricity; the price of electricity in some areas is relatively high.
  • the cost price may be relatively low when combined with the price of electricity.
  • the price of electricity may also change over time, and fluctuations in the price of electricity will affect the cost of dispatchable units.
  • FIG. 2b it is a block diagram of another working principle of the resource scheduling device 102.
  • the working principle of the resource scheduling device 102 is described by taking the target schedulable unit as an example in FIG. 2b.
  • the resource scheduling device 102 can obtain historical data corresponding to the cost impact factor of the target schedulable unit.
  • the cost impact factor includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit is based, as well as at least one of physical location, electricity price, and application type, which are affected by these costs.
  • the historical data corresponding to the factor includes: historical power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and the target schedulable unit At least one type of data from the type of historical program running on.
  • the resource scheduling device 102 is based on the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and the target schedulable unit Model training is performed on at least one type of data in the historical program type running on it, and a cost prediction model corresponding to the target schedulable unit is obtained.
  • the resource scheduling device 102 may obtain the current data corresponding to the cost impact factor of the target schedulable unit.
  • the cost impact factor includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit is based, as well as at least one of physical location, electricity price, and application type, which are affected by these costs.
  • the current data corresponding to the factor includes: the current power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the target schedulable unit At least one type of data in the type of program that needs to be run.
  • the resource scheduling device 102 combines the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the target schedulable unit At least one data of the program types that need to be run is input into the cost prediction model corresponding to the target schedulable unit to perform cost cost prediction to obtain the cost of the target schedulable unit.
  • the cost prediction model shown in Figure 2b mainly reflects the power consumption of the infrastructure on which the schedulable unit depends, the price of electricity, the types of applications running on the schedulable unit, and the physical location of the schedulable unit.
  • the influence relationship can be expressed as the following formula (2), but it is not limited to this.
  • the weighting system corresponding to the power consumption data of the infrastructure can reflect the contribution of the power consumption of the i-th infrastructure to the cost of the schedulable unit, which belongs to the first type of weighting system;
  • P 0 represents the power consumption of the schedulable unit Data;
  • P v represents the cost of the schedulable unit;
  • represents the second type of weight system.
  • the first type of weight coefficient ⁇ i reflects the impact of the cost of infrastructure power consumption on the cost of schedulable units
  • the second type of weight coefficient ⁇ reflects at least one of the physical location, electricity price, and program type. The impact of cost impact factor on the cost of schedulable units.
  • the resource scheduling device 102 calculates the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and Data of at least one of the types of programs to be run on the target schedulable unit is input into the cost prediction model corresponding to the target schedulable unit.
  • the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the first type of weight coefficients that have been trained, and the weighted sum is the result Add the current power consumption data of the target schedulable unit to obtain the initial cost of the target schedulable unit; and use the second type of weight coefficient that has been trained to correct the initial cost to obtain the cost of the target schedulable unit .
  • the method of using the second type of weight coefficient to modify the initial cost is to calculate the product of the second type of weight coefficient and the initial cost as the cost of the target schedulable unit.
  • the method of using the second type of weight coefficient to modify the initial cost is not limited to the formula (2), which is not limited in the embodiment of the present application.
  • the resource scheduling device 102 combines the prediction of cost and resource scheduling. By predicting the cost of schedulable units, resource scheduling based on cost can be realized. Priority scheduling of resources with lower cost costs can also reduce the probability of local hot spots and help reduce overall power consumption; in addition, in the cost cost prediction process, the power consumption of the infrastructure on which the schedulable unit depends is considered in the schedulable The contribution in the cost of the unit can make the predicted cost more reasonable and accurate, and thus can improve the rationality of resource scheduling based on the cost.
  • resource scheduling scheme that combines cost prediction and resource scheduling provided by the embodiments of the present application is not only used for computer room systems, but also other systems with resource scheduling requirements, such as data center systems.
  • FIG. 3 is a schematic structural diagram of a data center system provided by an exemplary embodiment of this application.
  • the data center system 300 includes: at least one computer room 301 and a resource scheduling device 302.
  • the data center system 300 can be built separately, or placed in other buildings, or distributed in different geographical locations.
  • each computer room 301 includes at least one physical device 303.
  • the number of physical devices contained in each computer room 301 may be one or multiple.
  • the computer room 301 in this embodiment is similar to the computer room in the embodiment shown in FIG. 1.
  • the physical equipment 303 in each computer room 301 is divided into several schedulable units and several infrastructures.
  • “several” means an indeterminate number, which may mean one or more.
  • the schedulable unit refers to the resource equipment, module or unit that can provide a certain service, function or resource (for example, computing, storage or network) in the computer room.
  • the schedulable unit can be a physical device such as a server, a printer, or a switch in the computer room, or a hardware module such as a CPU, GPU, memory, network card, or hard disk on the server, or a virtual device running on a physical device.
  • Infrastructure refers to the facilities in the computer room that provide basic services for dispatchable units. According to the different schedulable units, the infrastructure will be different, which is not limited. Taking the server as the schedulable unit as an example, the infrastructure may include cabinets that provide support services for the servers, air-conditioning equipment or water-cooling equipment for cooling the servers, power equipment for supplying power to the servers, and so on.
  • the resource scheduling device 302 does not belong to a certain computer room, but belongs to the entire data center system 300, and resource scheduling of schedulable units in each computer room 301 is required.
  • the resource scheduling device 302 does not belong to any computer room, in terms of physical deployment, it can be deployed in a certain computer room or independently deployed outside each computer room.
  • the resource scheduling device 302 in this embodiment simultaneously considers the cost of the schedulable unit during resource scheduling of the schedulable unit.
  • at least one schedulable unit can be determined from the schedulable units included in the data center system 300 during each resource scheduling process.
  • the at least one schedulable unit may be part of the schedulable unit included in the data center system 300, or may be all schedulable units included in the data center system 300.
  • at least one schedulable unit can be from the same computer room 301 or from a different computer room 301.
  • the resource scheduling device 302 obtains the current data corresponding to the cost impact factor of at least one schedulable unit.
  • the cost impact factor used includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit depends.
  • the current data includes: at least one schedulable unit and its dependent Current power consumption data for your infrastructure.
  • the resource scheduling device 302 may predict at least one schedulable unit and the current power consumption data of the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price. The cost of the dispatch unit.
  • the resource scheduling device 302 may perform resource scheduling on at least one schedulable unit according to the cost of the at least one schedulable unit.
  • the cost prediction process and the resource scheduling process of the schedulable unit are deployed on the resource scheduling device, but it is not limited to this.
  • a distributed deployment method may also be adopted, and the cost prediction process and the resource scheduling process of the schedulable unit may be separately deployed on different devices for implementation.
  • a computer room system and a data center system will be used as examples to illustrate the implementation of distributed deployment.
  • Fig. 4 is a schematic structural diagram of another computer room system provided by an exemplary embodiment of this application.
  • the computer room system 400 includes: a computer room.
  • the computer room refers to a physical place where machinery and equipment are stored, for example, a room or a factory building.
  • the computer room system 400 can be constructed separately or placed in other buildings.
  • the computer room system 400 further includes: at least one physical device 401, a resource scheduling device 402, and an information prediction device 403 located in the computer room. This embodiment does not limit the number of physical devices 401, and it may be one or multiple.
  • the device form of the physical device 401 is not limited.
  • the physical device 401 may be an IT-type device in a computer room and a refrigeration device for cooling the IT-type device, such as an air-conditioning device.
  • the at least one physical device 401 may include, but is not limited to: cabinet equipment, server equipment, computer equipment, printers, hubs, power supply equipment, storage equipment, network switching equipment, air conditioning equipment, and the like.
  • the server device may include, but is not limited to, a conventional server, a server array, or a cloud server.
  • the power supply equipment can be storage battery equipment, dry battery equipment, or uninterruptible power supply (UPS).
  • Storage devices may include, but are not limited to: disks, disk arrays, hard disks, network storage devices (NAS), and so on.
  • the resource scheduling device 402 can be any computer device with certain resource scheduling capabilities, for example, it can be a terminal device such as a smart phone, a notebook computer, a desktop computer, a tablet computer, or a smart watch, or a server such as a conventional server, a cloud server, or a server array. equipment.
  • the information prediction device 403 can be any computer device with cost prediction capability, for example, it can be a terminal device such as a smart phone, a notebook computer, a desktop computer, a tablet computer, or a smart watch, or a server such as a conventional server, a cloud server, or a server array. equipment.
  • the physical device 401 in the computer room is divided into several schedulable units and several infrastructures.
  • "several” means an indeterminate number, which may mean one or more.
  • a schedulable unit refers to a resource device, module, or unit that can provide a certain service, function, or resource (for example, computing, storage, or network) to the outside in the computer room.
  • the schedulable unit can be a physical device such as a server, a printer, or a switch in the computer room, or a hardware module such as a CPU, GPU, memory, network card, or hard disk on the server, or a virtual device running on a physical device.
  • Infrastructure refers to the facilities in the computer room that provide basic services for dispatchable units. According to the different schedulable units, the infrastructure will be different, which is not limited. Taking the server as the schedulable unit as an example, the infrastructure may include cabinets that provide support services for the servers, air-conditioning equipment or water-cooling equipment for cooling the servers, power equipment for supplying power to the servers, and so on.
  • the schedulable unit is used as an available resource in the computer room system 400, and the schedulable unit can be reasonably scheduled for resources through the resource scheduling device 402.
  • Reasonable resource scheduling is of great significance to improving the resource utilization efficiency of the computer room system 400, saving energy, improving resource sharing, and reducing operating costs.
  • resource scheduling is a process of allocating schedulable units to users who need resources. For scenarios where resources are overloaded (demand is greater than system capacity), or scenarios where demand and capacity will dynamically change over time, the resource scheduling device 402 can dynamically reallocate resources so as to use available resources more efficiently. For example, the resource scheduling device 402 may allocate the application programs of users with certain resource requirements to certain schedulable units or units to run.
  • the resource scheduling device 402 may allocate resources such as CPU, storage, or network bandwidth provided by one or some schedulable units to certain resource demand users, and the resource demand users use these resources according to actual conditions.
  • the "application program" in the embodiments of the present application refers to various programs, codes, or software in a broad sense.
  • the resource scheduling device 402 simultaneously considers the cost of the schedulable unit during resource scheduling of the schedulable unit.
  • Resource scheduling based on cost can not only prioritize resources with lower cost, but also reduce the probability of local hot spots, which is beneficial to reducing the overall power consumption of the computer room system 400.
  • the computer room system 400 of this embodiment further includes: an information prediction device 403 with cost-cost prediction capabilities, which is mainly used to predict the cost of the schedulable unit and provide it to the resource scheduling device 402, For the resource scheduling device 402 to perform resource scheduling on the schedulable resource according to the cost of the schedulable unit.
  • the physical meaning represented by the "cost of the schedulable unit" can be flexibly defined according to application requirements, which is not limited in this embodiment.
  • the cost of the schedulable unit may be the cost of power consumption, or the cost of maintenance, or the cost of configuration, and so on.
  • the cost in terms of power consumption is taken as an example for description.
  • the direct factor that has an impact on the cost is the power consumption of the schedulable unit itself, in addition to many other factors.
  • the main consideration is the power consumption of the infrastructure on which the schedulable unit depends (referred to as infrastructure power consumption), and the power consumption of the infrastructure on which the schedulable unit depends is converted to the cost of the schedulable unit.
  • the cost impact factor the factors that have an impact on the cost of the schedulable unit are collectively referred to as the cost impact factor.
  • the cost impact factor includes at least two.
  • the power consumption of the schedulable unit itself is a cost impact factor
  • the power consumption of the infrastructure on which the schedulable unit depends is another cost impact factor.
  • the value of some impact factors changes dynamically, and the value of some impact factors may not change.
  • the value of the cost impact factor at the current moment or the current time period is referred to as the current data corresponding to the cost impact factor; the cost impact factor is in the history
  • the value in the time or historical period is called the historical data corresponding to the cost impact factor.
  • the data content contained in current data and historical data will also be different.
  • At least one schedulable unit can be determined from the schedulable units included in the computer room system 400 during each resource scheduling process.
  • the at least one schedulable unit may be part of the schedulable unit included in the computer room system 400, or may be all schedulable units included in the computer room system 400.
  • at least one schedulable unit comes from several schedulable units included in the computer room system 400.
  • the resource scheduling device 402 may notify the information prediction device 403 for the information prediction device 403 to predict the cost of at least one schedulable unit.
  • the current data corresponding to the cost impact factor of at least one schedulable unit can be obtained.
  • the cost impact factor used includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit depends.
  • the current data corresponding to these cost impact factors include: at least one The current power consumption data of the schedulable unit and the infrastructure on which it depends.
  • the information prediction device 403 can predict at least one schedulable unit and the current power consumption data of the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price.
  • the cost of the scheduling unit; the cost of at least one schedulable unit is provided to the resource scheduling device 402.
  • the resource scheduling device 402 receives the cost price of the at least one schedulable unit provided by the information prediction device 403, and performs resource scheduling on the at least one schedulable unit according to the cost price of the at least one schedulable unit.
  • the manner in which the resource scheduling device 402 determines at least one schedulable unit from the schedulable units included in the computer room system 400 is not limited.
  • the resource scheduling device 402 may determine at least one schedulable unit that can be scheduled this time from the schedulable units included in the computer room system 400 according to the resource demand corresponding to this resource scheduling.
  • the resource requirements corresponding to this resource scheduling may include some requirements for the schedulable unit of this resource scheduling, such as type, location, or capacity, etc.
  • the schedulable unit that meets these requirements can participate in this resource scheduling.
  • At least one schedulable unit that can be scheduled this time can be determined from the schedulable units included in the computer room system 400 in combination with the device topology relationship of the computer room system 400.
  • the device topology relationship of the computer room system 400 describes the topology relationship between the physical devices 401 in the computer room system 400, and the distance between each schedulable unit and the resource scheduling device 402 can be clearly known through the topology relationship.
  • at least one schedulable unit whose distance from the resource scheduling device performing this resource scheduling meets the set requirements can be determined from among the schedulable units included in the computer room system 400.
  • the distance here can be a physical distance or a network transmission distance. This embodiment does not limit the "setting requirements", and can be flexibly set according to application requirements. The following example illustrates:
  • Example 1 The setting requirement refers to being located in the same computer room. According to the device topology relationship of the computer room system 400, from the schedulable units included in the computer room system 400, at least one of the schedulable units located in the same computer room as the resource scheduling device 402 can be determined. Scheduling unit. To put it simply, it is to obtain a schedulable unit that meets the resource demand corresponding to this resource scheduling from each schedulable unit included in the computer room system 400.
  • Example 2 The setting requirement refers to being located in the same channel, then according to the device topology relationship of the computer room system 400, from the schedulable units included in the computer room system 400, at least one of the schedulable units located in the same channel as the resource scheduling device 402 can be determined.
  • Scheduling unit The computer room system 400 includes a number of channels, each channel includes a number of cabinets, and each cabinet includes a number of servers.
  • the resource scheduling device 402 is deployed in a certain channel. To put it simply, it is to obtain a schedulable unit that meets the resource requirements corresponding to this resource scheduling in the schedulable unit in the channel where the resource scheduling device 402 is located.
  • Example 3 The setting requirement refers to being located in the same cabinet, then according to the equipment topology of the computer room system 400, from the schedulable units included in the computer room system 400, at least one of the schedulable units that is located in the same cabinet as the resource scheduling device 402 can be determined.
  • Scheduling unit The computer room system 400 includes a number of channels, each channel includes a number of cabinets, and each cabinet includes a number of servers.
  • the resource scheduling device 402 is deployed in a certain cabinet. To put it simply, it is deployed in the schedulable unit in the cabinet where the resource scheduling device 402 is located, and obtains the schedulable unit that meets the resource requirements corresponding to this resource scheduling.
  • Example 4 The setting requirement means that the physical distance is less than the set distance threshold, and the physical distance to the resource scheduling device 402 can be determined from the schedulable units included in the computer room system 400 according to the device topology of the computer room system 400 At least one schedulable unit less than the set distance threshold.
  • the information prediction device 403 may obtain the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends.
  • the information prediction device 403 may obtain the current power consumption data of each physical device 401 in the computer room system 400, and analyze the current power consumption data of each schedulable unit in the computer room system 400 and the current power consumption data of each infrastructure; Then, the current power consumption data of at least one schedulable unit that can be schedulable this time is selected from the current power consumption data of each schedulable unit, and combined with the device topology relationship of the computer room system 400, the current power consumption data of each infrastructure Select the current power consumption data of the infrastructure on which at least one schedulable unit each depends.
  • the cost prediction model corresponding to each schedulable unit can be pre-trained offline, and the cost prediction model corresponding to each schedulable unit can reflect the cost and cost impact factor corresponding to the schedulable unit itself.
  • the relationship between the cost and the cost; based on this, the cost prediction model corresponding to at least one schedulable unit can be used online to predict the cost, and the cost of at least one schedulable unit can be obtained.
  • FIG. 5a shows a block diagram of a working principle of the information prediction device 403.
  • the information prediction device 403 may obtain historical data corresponding to the cost impact factor of at least one schedulable unit, and the historical data includes historical power consumption data of the at least one schedulable unit and the infrastructure on which it depends.
  • the historical power consumption data here includes power consumption data at multiple historical moments or historical time periods; model training is performed according to the historical power consumption data of at least one schedulable unit and the infrastructure on which it depends to obtain at least one schedulable unit Each corresponding cost price prediction model. Further, referring to FIG.
  • the information prediction device 403 obtains the current power consumption data of at least one schedulable unit and the infrastructure on which it depends, and compares the current power consumption data of at least one schedulable unit and the infrastructure on which it depends.
  • the current power consumption data of each is input into respective cost cost prediction models to perform cost cost prediction to obtain the cost cost of at least one schedulable unit; and then the cost cost of at least one schedulable unit is provided to the resource scheduling device 402 for resources
  • the scheduling device 402 performs resource scheduling on at least one schedulable unit in combination with the cost of the at least one schedulable unit.
  • the cost cost prediction model shown in FIG. 5a mainly reflects the influence of the cost cost influencing factor of infrastructure power consumption on the cost cost of schedulable units.
  • the influence relationship can be expressed as the aforementioned formula (1), but it is not limited to this.
  • formula (1) please refer to the foregoing embodiment.
  • the target schedulable unit is any schedulable unit among at least one schedulable unit.
  • the information prediction device 403 inputs the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model corresponding to the target schedulable unit; the cost prediction model corresponding to the target schedulable unit Inside the model, the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the trained weight coefficients of the first type, and the result of the weighted summation is combined with the current power consumption data of the target schedulable unit Add them to get the cost of the target schedulable unit.
  • the first type of weight coefficient reflects the impact of the cost impact factor of infrastructure power consumption on the cost of schedulable units.
  • the factors that affect the cost of the schedulable unit that is, the cost impact factor, in addition to the power consumption data of the schedulable unit itself and the power consumption data of the infrastructure on which the schedulable unit depends, there are also Many others, such as the price of electricity, the types of applications running on the dispatchable unit, and the physical location of the dispatchable unit. Among them, different types of applications have different power consumption usage patterns, which are generally required in advance in the SLA.
  • the schedulable unit in addition to considering the two cost impact factors of the power consumption data of the schedulable unit itself and the power consumption data of the infrastructure on which the schedulable unit depends, the schedulable unit can also be considered. At least one of the physical location of the unit, the price of electricity in the area where the schedulable unit is located, and the type of programs running on the schedulable unit, and other cost impact factors.
  • FIG. 5b it is a block diagram of another working principle of the information prediction device 403. To simplify the illustration, the working principle of the information prediction device 403 is described by taking the target schedulable unit as an example in FIG. 5b.
  • the information prediction device 403 may obtain historical data corresponding to the cost impact factor of the target schedulable unit.
  • the cost impact factor includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit is based, as well as at least one of physical location, electricity price, and application type, which are affected by these costs.
  • the historical data corresponding to the factor includes: historical power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and the target schedulable unit At least one type of data from the type of historical program running on.
  • the information prediction device 403 runs on the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and the target schedulable unit.
  • Model training is performed on at least one data of the historical program types to obtain a cost prediction model corresponding to the target schedulable unit.
  • the information prediction device 403 can obtain the current data corresponding to the cost impact factor of the target schedulable unit.
  • the cost impact factor includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit is based, as well as at least one of physical location, electricity price, and application type, which are affected by these costs.
  • the current data corresponding to the factor includes: the current power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the target schedulable unit At least one type of data in the type of program that needs to be run.
  • the information prediction device 403 combines the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the target schedulable unit At least one of the types of programs that need to be run is input into the cost cost prediction model corresponding to the target schedulable unit to perform cost cost prediction to obtain the cost cost of the target schedulable unit; and then provide the cost cost of at least one schedulable unit to
  • the resource scheduling device 402 is used for the resource scheduling device 402 to perform resource scheduling on at least one schedulable unit in combination with the cost of the at least one schedulable unit.
  • the cost prediction model shown in Figure 5b mainly reflects the influence of multiple cost influencing factors such as infrastructure power consumption, electricity price, application type, and physical location of schedulable units on the cost of schedulable units.
  • the influence relationship can be expressed as the following formula (2), but it is not limited to this.
  • formula (2) please refer to the foregoing embodiment.
  • the information prediction device 403 will calculate the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and Data of at least one of the types of programs that need to be run on the target schedulable unit is input into the cost prediction model corresponding to the target schedulable unit.
  • the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the first type of weight coefficients that have been trained, and the weighted sum is the result Add the current power consumption data of the target schedulable unit to obtain the initial cost of the target schedulable unit; and use the second type of weight coefficient that has been trained to correct the initial cost to obtain the cost of the target schedulable unit .
  • the method of using the second type of weight coefficient to modify the initial cost is to calculate the product of the second type of weight coefficient and the initial cost as the cost of the target schedulable unit.
  • the method of using the second type of weight coefficient to modify the initial cost is not limited to the formula (2), which is not limited in the embodiment of the present application.
  • Fig. 6a is a schematic structural diagram of another data center system provided by an exemplary embodiment of this application.
  • the data center system 600 includes: at least one computer room 601, a resource scheduling device 602, and an information prediction device 604.
  • the data center system 600 can be built separately, or placed in other buildings, or distributed in different geographical locations.
  • each computer room 601 includes at least one physical device 603.
  • the number of physical devices contained in each computer room 601 may be one or multiple.
  • the computer room 601 in this embodiment is similar to the computer room in the embodiment shown in FIG. 4.
  • the physical equipment 603 and the computer room 601 please refer to the description in the embodiment shown in FIG. 4, which will not be repeated here.
  • a schedulable unit refers to a resource device, module, or unit that can provide a certain service, function, or resource (for example, computing, storage, or network) to the outside in the computer room.
  • the schedulable unit can be a physical device such as a server, a printer, or a switch in the computer room, or a hardware module such as a CPU, GPU, memory, network card, or hard disk on the server, or a virtual device running on a physical device.
  • Infrastructure refers to the facilities in the computer room that provide basic services for dispatchable units. According to the different schedulable units, the infrastructure will be different, which is not limited. Taking the server as the schedulable unit as an example, the infrastructure may include cabinets that provide support services for the servers, air-conditioning equipment or water-cooling equipment for cooling the servers, power equipment for supplying power to the servers, and so on.
  • the information prediction device 604 and the resource scheduling device 602 do not belong to a certain computer room, but belong to the entire data center system 600, and the schedulable units in each computer room 601 Perform cost prediction and resource scheduling.
  • the information prediction device 604 and the resource scheduling device 602 do not belong to any computer room, in terms of physical deployment, they can be deployed in a certain computer room or independently deployed outside each computer room.
  • the information prediction device 604 and the resource scheduling device 602 of this embodiment can cooperate with each other, and the cost of the schedulable unit is considered in the process of resource scheduling for the schedulable unit.
  • the resource scheduling device 602 at least one schedulable unit can be determined from the schedulable units included in the data center system 600 during each resource scheduling process.
  • the at least one schedulable unit may be part of the schedulable unit included in the data center system 600, or may be all schedulable units included in the data center system 600.
  • at least one schedulable unit may come from the same computer room 601 or different computer rooms 601.
  • the information prediction device 604 obtains the current data corresponding to the cost impact factor of at least one schedulable unit.
  • the cost impact factor used includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit depends.
  • the current data corresponding to these cost impact factors include: at least one The current power consumption data of the schedulable unit and the infrastructure on which it depends.
  • the information prediction device 604 can predict at least one schedulable unit and the current power consumption data of the infrastructure on which it depends, and the pre-trained cost impact factor and the impact relationship between the cost price.
  • the cost of the scheduling unit; and then the cost of at least one schedulable unit is provided to the resource scheduling device 602. Finally, the resource scheduling device 602 may perform resource scheduling on at least one schedulable unit according to the cost of the at least one schedulable unit.
  • the resource scheduling equipment and the information prediction equipment cooperate with each other, so that the prediction of the cost and the resource scheduling are combined, and the cost of the schedulable unit is predicted to achieve Resource scheduling based on cost cost can prioritize resources with lower cost cost and reduce the probability of local hot spots, which is conducive to reducing overall power consumption.
  • the cost cost prediction process the schedulable unit depends on at the same time. The contribution of the power consumption of the infrastructure to the cost of the schedulable unit can make the predicted cost more reasonable and accurate, and thus can improve the rationality of resource scheduling based on the cost.
  • resource scheduling can be performed on at least one schedulable unit based on the cost of at least one schedulable unit.
  • resource scheduling may be performed on at least one schedulable unit based solely on the cost of the at least one schedulable unit.
  • resource scheduling methods for at least one schedulable unit include but are not limited to the following:
  • Manner 1 According to the cost of all at least one schedulable unit, resource scheduling is performed on the at least one schedulable unit in the descending order of the cost. In method 1, resource scheduling can be performed on at least one schedulable unit in the order of ascending cost.
  • Manner 2 According to the cost of at least one schedulable unit, the schedulable unit with the smallest cost is prioritized for resource scheduling. In method 2, in each resource scheduling, resource scheduling is allowed for the schedulable unit with the least cost.
  • Manner 3 According to the cost price of all at least one schedulable unit, priority is given to resource scheduling for the schedulable unit whose cost cost is less than the set threshold. In mode 3, a threshold is set, and each resource scheduling allows resource scheduling of schedulable units whose cost is lower than the threshold.
  • resource scheduling may be performed on at least one schedulable unit according to the service requirements corresponding to this resource scheduling and the cost of at least one schedulable unit.
  • the business requirements are not limited.
  • the service requirements corresponding to this resource scheduling include service performance requirements.
  • a schedulable unit that meets the service performance requirements can be selected from at least one schedulable unit according to the service performance requirements corresponding to this resource scheduling;
  • resource scheduling is performed on the schedulable unit that meets the service performance requirement.
  • the method of combining service performance requirements and cost for resource scheduling is not limited to the one listed here.
  • the schedulable unit that meets the service performance requirement may include: a schedulable unit (such as a server) with a performance level greater than a set level, or may include a newer batch of schedulable units (such as a server), and so on.
  • the newer batch can be understood as the relatively short time to put into use.
  • the resource scheduling solution that combines power consumption cost cost prediction and resource scheduling provided by the embodiments of the present application can also be applied to cluster systems or edge computing systems that have other resource scheduling requirements. In the system.
  • Fig. 6b is a schematic structural diagram of an edge computing system provided by an exemplary embodiment of this application.
  • the edge computing system includes several edge computing nodes, several infrastructures and servers.
  • "several” means an indeterminate number, and it may mean one or more.
  • an edge computing node refers to a node device at the edge of the network logic, and usually includes hardware modules, drivers for hardware modules, operating systems, and related application programs. Hardware modules include but are not limited to: CPU, network card, memory, etc.
  • Several infrastructures provide basic services for several edge computing nodes. The equipment forms of edge computing nodes are different, and the infrastructure that provides basic services for edge computing nodes will also be different.
  • the edge computing node may be a personal computer in the home, and the infrastructure that can provide basic services for the personal computer includes, but is not limited to: household power supplies, routers, and so on.
  • the infrastructure that can provide basic services for the street lamp includes, but is not limited to: solar panels, solar batteries, or urban power supply systems.
  • the infrastructure that can provide basic services for the traffic signal light includes, but is not limited to: power supply systems (such as solar cells, storage batteries, or urban power supply systems), controllers, and so on.
  • the edge computing node is an electronic eye or camera
  • the infrastructure that can provide basic services for the electronic eye or camera includes, but is not limited to: power supply system (such as solar cells, batteries or urban power supply systems), signal transmission lines, installation poles, control System and so on.
  • the server communicates with the edge computing node through the network, and the server can respond to the request of the edge computing node and provide related cloud services for the edge computing node.
  • the server can also control, operate and maintain edge computing nodes.
  • the edge computing node is a schedulable unit, and the server can also perform resource scheduling on it.
  • the server performs resource scheduling on the edge computing node, and can perform operations such as some applications, data and services from the network center node (such as the server) to the edge computing node on the network logic for processing, thereby realizing a distributed operation Architecture.
  • the server performs resource scheduling on the edge computing node in combination with the cost of the edge computing node.
  • Cost-based resource scheduling can prioritize low-cost edge computing nodes and reduce the probability of local hot spots, which is beneficial to improve the overall resource utilization of the edge computing system and reduce the overall power consumption of the edge computing system.
  • the physical meaning represented by the "cost of edge computing node" can be flexibly defined according to application requirements, which is not limited in this embodiment.
  • the cost of edge computing nodes may be the cost of power consumption, or the cost of maintenance, or the cost of configuration, and so on.
  • the description is focused on the cost of power consumption as an example.
  • the direct factor that has an impact on the cost is the power consumption of the edge computing node itself.
  • the power consumption of the infrastructure on which the edge computing node depends is mainly considered, and the power consumption of the infrastructure on which the edge computing node depends is converted to the cost of the edge computing node, which can improve resource scheduling. rationality.
  • the factors that have an impact on the cost of the edge computing node are collectively referred to as the cost impact factor.
  • the cost impact factor includes at least two.
  • the power consumption of the edge computing node itself is a cost impact factor
  • the power consumption of the infrastructure on which the edge computing node depends is another cost impact factor. .
  • the value of some impact factors changes dynamically, and the value of some impact factors may not change.
  • the value of the cost impact factor at the current moment or the current time period is referred to as the current data corresponding to the cost impact factor; the cost impact factor is in the history
  • the value in the time or historical period is called the historical data corresponding to the cost impact factor. According to the different cost impact factors, the data content contained in current data and historical data will also be different.
  • At least one schedulable edge computing node can be determined from a number of edge computing nodes included in the edge computing system.
  • the at least one edge computing node may be part of the edge computing node included in the edge computing system, or may be all edge computing nodes included in the edge computing system.
  • the server obtains the current data corresponding to the cost impact factor of the at least one edge computing node, and the current data includes the current power consumption data of the at least one edge computing node and the infrastructure on which it depends.
  • the server predicts the cost of at least one edge computing node based on the current power consumption data of at least one edge computing node and the infrastructure on which it depends, and the pre-trained cost impact factor and the impact relationship between the cost price. . Finally, according to the cost of at least one edge computing node, resource scheduling is performed on at least one edge computing node.
  • the manner in which the server determines at least one schedulable edge computing node from the edge computing nodes included in the edge computing system is not limited.
  • the server may determine at least one schedulable edge computing node from each edge computing node included in the edge computing system according to resource requirements corresponding to this resource scheduling.
  • the resource requirements corresponding to this resource scheduling include some requirements for edge computing nodes of this resource scheduling, such as type, location, or capacity, and edge computing nodes that meet these requirements can participate in this resource scheduling.
  • the server can select an edge computing node of the type required for this resource scheduling according to the resource requirements corresponding to this resource scheduling, or select an edge computing node located in the geographical area required by this resource scheduling, or choose to meet this time.
  • the edge computing node with computing capability required for resource scheduling is used as the schedulable edge computing node this time.
  • the resource requirements corresponding to this resource scheduling can also include two or more conditions, and the server can also combine two or more conditions to determine the edge computing nodes that can be scheduled this time.
  • the device topology of the edge computing system can also be combined to determine at least one edge computing node that can be scheduled this time from the edge computing nodes included in the edge computing system. For example, according to the device topology of the edge computing system, from among the edge computing nodes included in the edge computing system, at least one edge computing node whose physical distance to the server or network transmission distance is less than a set distance threshold can be determined.
  • the schedulable unit is specifically an edge computing node.
  • the server predicting the cost of the edge computing node and the detailed process of the server performing resource scheduling on the edge computing node in combination with the cost of the edge computing node, refer to the foregoing embodiment, and will not be repeated here.
  • the server combines cost cost prediction with resource scheduling, and by predicting the cost cost of edge computing nodes, it realizes cost cost-based resource scheduling, which can prioritize resources with lower costs. It can also reduce the probability of local hot spots and help reduce overall power consumption.
  • the cost prediction process the power consumption of the infrastructure on which the edge computing node depends is considered at the same time as the contribution to the cost of the edge computing node. The predicted cost is more reasonable and accurate, and the rationality of resource scheduling based on cost can be improved.
  • Fig. 7a is a schematic flowchart of a resource scheduling method provided by an exemplary embodiment of this application. This method is described from the perspective of resource scheduling equipment. As shown in Figure 7a, the method includes:
  • the cost prediction model corresponding to each schedulable unit can be pre-trained offline, and the cost cost prediction model corresponding to each schedulable unit can reflect the cost impact factor and cost corresponding to the schedulable unit itself. Based on this, the cost prediction model corresponding to at least one schedulable unit is used to predict the cost on the line to obtain the cost of at least one schedulable unit.
  • an implementation manner of step 72a includes: inputting the current power consumption data of at least one schedulable unit and the infrastructure on which it depends, respectively, into their respective cost prediction models for cost cost prediction, so as to obtain at least one schedulable unit.
  • the cost of the scheduling unit; wherein, the cost prediction model corresponding to each schedulable unit reflects the influence relationship existing between the corresponding cost cost influencing factor and the cost cost.
  • a model training process is also included.
  • the process of a model training method includes the following steps:
  • the model training process is not limited.
  • a supervised model training method can be used, or an unsupervised model training method can also be used.
  • the embodiments of the present application do not limit the algorithm used for model training, for example, linear regression, logistic regression, or various deep learning algorithms can be used.
  • the cost cost prediction model mainly reflects the influence relationship of the cost cost influencing factor of the power consumption of the infrastructure on the cost cost of the schedulable unit.
  • the influence relationship can be expressed as the aforementioned formula (1), but it is not limited to this.
  • the relevant description of the formula (1) please refer to the foregoing embodiment, which will not be repeated here.
  • step 72a the influence relationship of the cost impact factor of the power consumption of the infrastructure on which the schedulable unit depends on the cost of the schedulable unit.
  • an implementation process of step 72a includes: for the target schedulable unit, input the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model corresponding to the target schedulable unit; Within the cost prediction model corresponding to the scheduling unit, the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is performed using the first-type weight coefficients that have been trained, and the result of the weighted sum is combined with the target achievable value. The current power consumption data of the scheduling unit is added to obtain the cost of the target schedulable unit.
  • the factors that affect the cost of the schedulable unit that is, the cost impact factor, in addition to the power consumption of the schedulable unit itself and the power consumption of the infrastructure on which the schedulable unit depends, there are many other factors. , Such as the price of electricity, the types of applications running on the schedulable unit, and the physical location of the schedulable unit. Among them, different types of applications have different power consumption usage patterns, which are generally required in advance in the SLA.
  • the physical location of the schedulable unit and the location of the schedulable unit can also be considered. At least one of the regional electricity price and the type of program running on the schedulable unit, and other cost impact factors.
  • step 71b in addition to obtaining the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, the historical physical location, At least one of the historical electricity price of the area where the target schedulable unit is located and the historical program type running on the target schedulable unit; accordingly, in step 72b, the target schedulable unit and the infrastructure on which it depends Historical power consumption data, and at least one of the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and the historical program type running on the target schedulable unit for model training to obtain the target schedulable unit Corresponding cost prediction model.
  • step 71a in addition to obtaining the current power consumption data of the target schedulable unit and the infrastructure on which it depends, the current physical location of the target schedulable unit and the current electricity bill of the area where the target schedulable unit is located can also be obtained.
  • the above cost prediction model mainly reflects the power consumption of the infrastructure on which the schedulable unit depends, the price of electricity, the types of applications running on the schedulable unit, and the physical location of the schedulable unit.
  • the impact of cost can be expressed as the aforementioned formula (2), but it is not limited to this.
  • formula (2) please refer to the foregoing embodiment, which will not be repeated here.
  • an implementation process of step 72a includes: for the target schedulable unit, the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, and the target schedulable unit At least one of the current price of electricity in the area and the type of program that needs to be run on the target schedulable unit is input into the cost prediction model corresponding to the target schedulable unit.
  • the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the first type of weight coefficients that have been trained, and the weighted sum is the result Add the current power consumption data of the target schedulable unit to obtain the initial cost of the target schedulable unit; and use the second type of weight coefficient that has been trained to correct the initial cost to obtain the cost of the target schedulable unit .
  • the method of using the second type of weight coefficient to modify the initial cost is to calculate the product of the second type of weight coefficient and the initial cost as the cost of the target schedulable unit.
  • the method of using the second type of weight coefficient to modify the initial cost is not limited to the formula (2), which is not limited in the embodiment of the present application.
  • step 71a before step 71a, it further includes: determining the schedulable unit from the schedulable units included in the computer room system, data center system, or edge computing system according to the resource demand corresponding to this resource scheduling. At least one schedulable unit.
  • determining at least one schedulable unit that can be schedulable this time from the schedulable units included in the computer room system, data center system, or edge computing system according to the resource requirements corresponding to this resource scheduling includes: according to the computer room system , The device topology relationship of the data center system or edge computing system, from the schedulable units included in the computer room system, data center system or edge computing system, determine that the distance to the resource scheduling device performing this resource scheduling satisfies the setting At least one schedulable unit required.
  • an implementation manner for determining at least one schedulable unit whose distance from the resource scheduling device performing this resource scheduling meets the set requirement includes any one of the following:
  • the device topology relationship of the computer room system or the data center system determine at least one schedulable unit located in the same computer room as the resource scheduling device from among the schedulable units included in the computer room system or the data center system;
  • the device topology relationship of the computer room system or the data center system determine at least one schedulable unit that is located in the same channel as the resource scheduling device from each schedulable unit included in the computer room system or the data center system;
  • the device topology relationship of the computer room system or the data center system from each schedulable unit included in the computer room system or the data center system, it is determined that the physical distance to the resource scheduling device is less than at least a set distance threshold.
  • a schedulable unit is determined that the physical distance to the resource scheduling device is less than at least a set distance threshold.
  • the schedulable unit included in the computer room system or the data center system is a server in the computer room system or the data center system, but it is not limited to this.
  • the schedulable unit included in the edge computing system is the edge computing node in the edge computing system, but it is not limited to this.
  • resource scheduling may be performed on at least one schedulable unit based on the power consumption cost of the at least one schedulable unit alone.
  • the implementation manners for resource scheduling on at least one schedulable unit include but are not limited to the following:
  • the schedulable unit with the lowest cost is prioritized for resource scheduling;
  • priority is given to resource scheduling for schedulable units whose cost cost is less than the set threshold.
  • resource scheduling may be performed on at least one schedulable unit according to the service requirements corresponding to this resource scheduling and the cost of at least one schedulable unit.
  • the service requirements corresponding to this resource scheduling include service performance requirements.
  • a schedulable unit that meets the service performance requirements can be selected from at least one schedulable unit according to the service performance requirements corresponding to this resource scheduling;
  • resource scheduling is performed on the schedulable unit that meets the service performance requirement. It should be noted that the method of combining service performance requirements and cost for resource scheduling is not limited to the one listed here.
  • the schedulable unit that meets the service performance requirement may include: a schedulable unit (such as a server) with a performance level greater than a set level, or may include a newer batch of schedulable units (such as a server), and so on.
  • the newer batch can be understood as the relatively short time to put into use.
  • the cost cost prediction is combined with resource scheduling.
  • cost cost-based resource scheduling can be realized, which can prioritize resources with lower cost costs and also It can reduce the probability of local hot spots and help reduce overall power consumption; in addition, in the cost prediction process, the power consumption of the infrastructure on which the schedulable unit depends on the schedulable unit is considered to contribute to the cost of the schedulable unit.
  • the predicted cost is more reasonable and accurate, and the rationality of resource scheduling based on cost can be improved.
  • FIG. 7c is a schematic flowchart of an information prediction method provided by an exemplary embodiment of this application. This method is described from the perspective of the information prediction device or the server in Figure 6b. As shown in Figure 7c, the method includes:
  • the cost prediction model corresponding to the target schedulable unit can be pre-trained offline, and the cost cost prediction model corresponding to the target schedulable unit can reflect the cost impact factor and cost cost corresponding to the target schedulable unit.
  • an implementation manner of step 72c includes: inputting the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model to perform cost cost prediction, so as to obtain the cost cost of the target schedulable unit.
  • a model training process is also included.
  • the process of a model training method includes: obtaining historical data of the target schedulable unit corresponding to the cost impact factor, the historical data including historical power consumption data of the target schedulable unit and the infrastructure on which it depends; schedulable according to the target Model training is performed on the historical power consumption data of the unit and the infrastructure on which it depends, and the cost prediction model is obtained.
  • the cost cost prediction model mainly reflects the influence relationship of the cost cost influence factor of the power consumption of the infrastructure on which the target schedulable unit depends on the cost cost of the target schedulable unit.
  • the influence relationship can be expressed as the aforementioned formula (1), but it is not limited to this.
  • the relevant description of the formula (1) please refer to the foregoing embodiment, which will not be repeated here.
  • an implementation of step 72c includes: inputting the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model; inside the cost prediction model , Use the first-type weight coefficients that have been trained to perform a weighted summation of the current power consumption data of the infrastructure on which the target schedulable unit depends, and add the result of the weighted summation to the current power consumption data of the target schedulable unit , In order to get the cost of the target schedulable unit.
  • the first type of weight coefficient reflects the impact of the cost impact factor of the power consumption of the infrastructure on which the target schedulable unit depends on the cost of the target schedulable unit.
  • the cost impact factor is in addition to the power consumption data of the target schedulable unit itself and the power consumption data of the infrastructure on which the target schedulable unit depends.
  • the cost impact factor is in addition to the power consumption data of the target schedulable unit itself and the power consumption data of the infrastructure on which the target schedulable unit depends.
  • different types of applications have different power consumption usage patterns, which are generally required in advance in the SLA.
  • the target schedulable unit in addition to considering the two cost impact factors of the target schedulable unit's own power consumption and the power consumption of the infrastructure on which the target schedulable unit depends, the target schedulable unit can also be considered. At least one of the physical location of the dispatching unit, the price of electricity in the area where the target dispatchable unit is located, and the type of program running on the target dispatchable unit, and other cost influencing factors. Based on this, in the model training process, in addition to obtaining the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, the historical physical location of the target schedulable unit and the area where the target schedulable unit is located can also be obtained.
  • At least one of the historical electricity price and the historical program type running on the target schedulable unit accordingly, it can be based on the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, and the history of the target schedulable unit Model training is performed on at least one of the physical location, the historical electricity price price of the area where the target schedulable unit is located, and the historical program type running on the target schedulable unit to obtain a cost prediction model corresponding to the target schedulable unit.
  • step 71c in addition to obtaining the current power consumption data of the target schedulable unit and the infrastructure on which it depends, the current physical location of the target schedulable unit and the current electricity bill of the area where the target schedulable unit is located can also be obtained.
  • At least one of the price and the type of program that needs to be run on the target schedulable unit At least one of the price and the type of program that needs to be run on the target schedulable unit; accordingly, in step 72c, the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the target schedulable unit At least one of the current physical location of the unit, the current price of electricity in the area where the target schedulable unit is located, and the type of program that needs to be run on the target schedulable unit are input into the cost and price prediction model corresponding to the target schedulable unit to predict the cost and price. Get the cost of the target schedulable unit.
  • the above cost prediction model mainly reflects the power consumption of the infrastructure on which the target schedulable unit depends, the price of electricity, the type of application running on the target schedulable unit, and the physical location of the target schedulable unit.
  • the impact of the cost of schedulable units can be expressed as the aforementioned formula (2), but it is not limited to this.
  • formula (2) please refer to the foregoing embodiment, which will not be repeated here.
  • an implementation process of step 72c includes: the current status of the target schedulable unit and the infrastructure on which it depends Power consumption data, together with at least one of the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the type of program that needs to be run on the target schedulable unit, enter the cost of the target schedulable unit Forecast model.
  • the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the first type of weight coefficients that have been trained, and the weighted sum is the result Add the current power consumption data of the target schedulable unit to obtain the initial cost of the target schedulable unit; and use the second type of weight coefficient that has been trained to correct the initial cost to obtain the cost of the target schedulable unit .
  • the weight coefficient of the first type reflects the impact of the cost impact factor of the power consumption of the infrastructure on which the target schedulable unit depends on the cost of the target schedulable unit;
  • the weight coefficient of the second type reflects the physical location of the schedulable unit, The impact of at least one cost factor in the price of electricity and the program type on the cost of the target schedulable unit.
  • the method of using the second type of weight coefficient to modify the initial cost is to calculate the product of the second type of weight coefficient and the initial cost as the cost of the target schedulable unit.
  • the method of using the second type of weight coefficient to modify the initial cost is not limited to the formula (2), which is not limited in the embodiment of the present application.
  • an implementation manner of step 71c includes: determining the current power consumption data of the target schedulable unit from the current power consumption data of each schedulable unit in the computer room system or the data center system; According to the device topology relationship of the computer room system or data center system, from the current power consumption data of each infrastructure of the computer room system or data center system, the current power of the infrastructure on which the target schedulable unit depends is filtered out. Consumption data.
  • the implementation form of the target schedulable unit is not limited, and it may be any device, module, or unit that can provide a certain service, function, or capability to the outside.
  • the target schedulable unit is a server in a computer room system or a data center system, and a CPU, GPU, memory, or network card on the server.
  • the cost cost prediction is combined with resource scheduling.
  • cost cost-based resource scheduling can be realized, which can prioritize resources with lower cost costs and also It can reduce the probability of local hot spots and help reduce overall power consumption; in addition, in the cost prediction process, the power consumption of the infrastructure on which the schedulable unit depends on the schedulable unit is considered to contribute to the cost of the schedulable unit.
  • the predicted cost is more reasonable and accurate, and the rationality of resource scheduling based on cost can be improved.
  • the execution subject of each step of the method provided in the foregoing embodiment may be the same device, or different devices may also be the execution subject of the method.
  • the execution subject of steps 71a to 73a may be device A; for another example, the execution subject of steps 71a and 72a may be an information prediction device, and the execution subject of step 73a may be a resource scheduling device; and so on.
  • FIG. 8 is a schematic structural diagram of a resource scheduling device provided by an exemplary embodiment of this application.
  • the resource scheduling device includes: a memory 81 and a processor 82.
  • the memory 81 is used to store computer programs, and can be configured to store various other data to support operations on the resource scheduling device. Examples of these data include instructions, messages, pictures, videos, etc. for any application or method operating on the resource scheduling device.
  • the processor 82 is coupled with the memory 81, and is configured to execute a computer program in the memory 81 to obtain current data corresponding to the cost impact factor of at least one schedulable unit, and the current data includes the data of at least one schedulable unit and The current power consumption data of the infrastructure on which it depends; the current power consumption data of at least one schedulable unit and the infrastructure on which it depends, and the pre-trained cost impact factor and the impact relationship between the cost price , Predict the cost of at least one schedulable unit; according to the cost of the at least one schedulable unit, perform resource scheduling on the at least one schedulable unit.
  • the physical meaning represented by the "cost of the schedulable unit" can be flexibly defined according to application requirements, which is not limited in this embodiment.
  • the cost of the schedulable unit may be the cost of power consumption, or the cost of maintenance, or the cost of configuration, and so on.
  • the description is focused on the cost of power consumption as an example.
  • the processor 82 when predicting the cost of at least one schedulable unit, is specifically configured to: input the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, respectively, into the respective corresponding
  • the cost cost prediction model of the schedulable unit performs cost cost prediction to obtain the cost cost of at least one schedulable unit; among them, the cost cost prediction model corresponding to each schedulable unit reflects the impact between the corresponding cost cost influencing factor and the cost cost relationship.
  • the processor 82 is further configured to obtain historical data corresponding to the cost impact factor of at least one schedulable unit, the historical data including the history of the at least one schedulable unit and the infrastructure on which it depends Power consumption data; model training is performed according to the historical power consumption data of at least one schedulable unit and the infrastructure on which it depends, respectively, to obtain a cost prediction model corresponding to each of the at least one schedulable unit.
  • the processor 82 may specifically use linear regression, logistic regression or various deep learning algorithms to perform model training during the model training process.
  • the processor 82 when the processor 82 performs cost cost prediction, it is specifically configured to: for the target schedulable unit, input the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the target schedulable unit.
  • the cost and cost prediction model corresponding to the scheduling unit; inside the cost and cost prediction model corresponding to the target schedulable unit, the current power consumption data of the infrastructure on which the target schedulable unit depends is weighted by using the first type of weight coefficients that have been trained Sum, and add the result of the weighted summation to the current power consumption data of the target schedulable unit to obtain the cost of the target schedulable unit;
  • the weight coefficient of the first type reflects the impact of the cost impact factor of infrastructure power consumption on the cost of the schedulable unit;
  • the target schedulable unit is any schedulable unit among at least one schedulable unit.
  • the historical data acquired by the processor 82 further includes at least one of the following: the historical physical location of the at least one schedulable unit, the historical electricity price of the area where the at least one schedulable unit is located, and the historical data on the at least one schedulable unit. Types of historical programs run.
  • the processor 82 when the processor 82 performs model training, it is specifically used to: for the target schedulable unit, according to the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, and the historical physical location of the target schedulable unit , Model training is performed on at least one of the historical electricity price price of the area where the target schedulable unit is located and the historical program type running on the target schedulable unit to obtain the cost prediction model corresponding to the target schedulable unit; where the target schedulable unit is Any schedulable unit in at least one schedulable unit.
  • the current data acquired by the processor 82 also includes at least one of the following: the current physical location of the at least one schedulable unit, the current electricity price of the area where the at least one schedulable unit is located, and the type of program that needs to be run on the at least one schedulable unit . Based on this, when the processor 82 predicts the cost, it is specifically used to: for the target schedulable unit, combine the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical value of the target schedulable unit.
  • At least one of the location, the current electricity price of the area where the target schedulable unit is located, and the type of program that needs to be run on the target schedulable unit is input into the cost prediction model corresponding to the target schedulable unit to predict the cost to obtain the target schedulable unit The cost of the unit.
  • the processor 82 is specifically configured to: compare the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, and the target schedulable unit. At least one of the current price of electricity in the area where the dispatch unit is located and the type of program that needs to be run on the target schedulable unit is input into the cost prediction model corresponding to the target schedulable unit;
  • the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the first type of weight coefficients that have been trained, and the weighted sum is the result Add the current power consumption data of the target schedulable unit to obtain the initial cost of the target schedulable unit; and use the second type of weight coefficient that has been trained to correct the initial cost to obtain the cost of the target schedulable unit ;
  • the first type of weight coefficient reflects the impact of the cost of infrastructure power consumption on the cost of schedulable units
  • the second type of weight coefficient reflects at least one of the cost of physical location, electricity price, and program type. The impact of the impact factor on the cost of schedulable units.
  • the processor 82 is further configured to: according to the resource requirements corresponding to this resource scheduling, determine from the schedulable units included in the computer room system, data center system or edge computing system at least A schedulable unit.
  • the processor 82 determines at least one schedulable unit that can be schedulable this time, it is specifically configured to: according to the device topology relationship of the computer room system, data center system, or edge computing system, from the computer room system, data center system, or Among the schedulable units included in the edge computing system, determine at least one schedulable unit whose distance from the resource scheduling device performing this resource scheduling meets the set requirement.
  • processor 82 is specifically configured to perform any one of the following operations when determining at least one schedulable unit that is schedulable this time:
  • the resource scheduling device unit determines at least one schedulable unit located in the same computer room as the resource scheduling device unit;
  • each schedulable unit included in the computer room system or data center system determines at least one schedulable unit located in the same channel as the resource scheduling device unit;
  • each schedulable unit included in the computer room system or data center system determines at least one schedulable unit that is located in the same cabinet as the resource scheduling device unit;
  • the resource scheduling device determines that the physical distance to the resource scheduling device is less than the set distance At least one schedulable unit of the threshold.
  • the schedulable unit included in the computer room system or the data center system is a server in the computer room system or the data center system, but it is not limited to this.
  • the schedulable unit included in the edge computing system is the edge computing node in the edge computing system, but it is not limited to this.
  • the processor 82 when the processor 82 performs resource scheduling, it is specifically configured to: perform resource scheduling on the at least one schedulable unit according to the cost of the at least one schedulable unit in a descending order of the cost; Or, based on the cost of at least one schedulable unit, priority is given to the schedulable unit with the lowest cost to perform resource scheduling; or, based on the cost of at least one schedulable unit, priority is given to the schedulable unit whose cost is less than the set threshold.
  • Resource Scheduling when the processor 82 performs resource scheduling, it is specifically configured to: perform resource scheduling on the at least one schedulable unit according to the cost of the at least one schedulable unit in a descending order of the cost; Or, based on the cost of at least one schedulable unit, priority is given to the schedulable unit with the lowest cost to perform resource scheduling; or, based on the cost of at least one schedulable unit, priority
  • the processor 82 when the processor 82 performs resource scheduling, it is specifically configured to: according to the service requirements corresponding to the resource scheduling this time, and in combination with the cost of the at least one schedulable unit, compare the cost of the at least one schedulable unit. The unit performs resource scheduling.
  • the processor 82 when the processor 82 is performing resource scheduling, it is specifically configured to: according to the service performance requirements corresponding to this resource scheduling, select a schedulable unit that meets the service performance requirements from the at least one schedulable unit; According to the cost of the schedulable unit required by the service performance, resource scheduling is performed on the schedulable unit meeting the service performance requirement.
  • the resource scheduling device further includes: a communication component 83, a display 84, a power supply component 85, an audio component 85 and other components. Only some of the components are schematically shown in FIG. 8, which does not mean that the resource scheduling device only includes the components shown in FIG. 8. In addition, according to the different implementation forms of the resource scheduling device, the components in the dashed box in FIG. 8 are optional components, not mandatory components.
  • the resource scheduling device when the resource scheduling device is implemented as a terminal device such as a smart phone, a tablet computer, or a desktop computer, it can include the components in the dashed box in Figure 8; when the resource scheduling device is implemented as a server device such as a conventional server, a cloud server, or a server array , The components in the dashed box in Figure 8 may not be included.
  • an embodiment of the present application also provides a computer-readable storage medium storing a computer program, which can implement each step in the method embodiment shown in FIG. 7a and FIG. 7b when the computer program is executed.
  • FIG. 9 is a schematic structural diagram of an information prediction device provided by an exemplary embodiment of this application. As shown in FIG. 9, the information prediction device includes: a memory 91 and a processor 92.
  • the memory 91 is used to store computer programs, and can be configured to store various other data to support operations on the information prediction device. Examples of these data include instructions, messages, pictures, videos, etc. for any application or method operating on the information prediction device.
  • the processor 92 is coupled with the memory 91, and is configured to execute a computer program in the memory 91 to obtain current data of the target schedulable unit corresponding to the cost impact factor, and the current data includes the target schedulable unit and all the data of the target schedulable unit.
  • the current power consumption data of the dependent infrastructure according to the current power consumption data of the target schedulable unit and the dependent infrastructure, as well as the influence relationship between the pre-trained cost cost influencing factor and the cost, the target is predicted The cost of schedulable units.
  • the processor 92 when the processor 92 predicts the cost of the target schedulable unit, it is specifically configured to: input the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost and cost prediction model. Cost cost prediction to obtain the cost cost of the target schedulable unit; among them, the cost cost prediction model reflects the impact relationship between the cost cost influencing factor and the cost cost.
  • the processor 92 is further configured to: obtain historical data corresponding to the cost impact factor of the target schedulable unit, the historical data including historical power consumption data of the target schedulable unit and the infrastructure on which it depends; schedulable according to the target Model training is performed on the historical power consumption data of the unit and the infrastructure on which it depends, and the cost prediction model is obtained.
  • the processor 92 when the processor 92 performs cost cost prediction, it is specifically configured to: input current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost cost prediction model; In the cost prediction model, the weight coefficient of the first type that has been trained is used to perform a weighted summation of the current power consumption data of the infrastructure on which the target schedulable unit depends, and the result of the weighted summation is compared with the value of the target schedulable unit. The current power consumption data is added to obtain the cost price of the target schedulable unit; among them, the first type of weight coefficient reflects the impact of the cost impact factor of infrastructure power consumption on the cost of the schedulable unit.
  • the historical data acquired by the processor 92 further includes at least one of the following data: the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and the data running on the target schedulable unit. History program type.
  • the processor 92 is specifically used for model training according to the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the historical physical location of the target schedulable unit, and the location of the target schedulable unit. Model training is performed on at least one of the historical electricity price price of the area and the historical program type running on the target schedulable unit to obtain a cost prediction model.
  • the current data acquired by the processor 92 also includes at least one of the following data: the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the type of program that needs to be run on the target schedulable unit.
  • the processor 92 predicts the cost, it is specifically configured to: combine the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, and the target schedulable unit.
  • At least one of the current electricity price in the area and the type of program that needs to be run on the target schedulable unit is input into a cost prediction model to perform cost cost prediction to obtain the cost of the target schedulable unit.
  • the processor 92 when the processor 92 performs cost cost prediction, it is specifically configured to: combine the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, and the target schedulable unit.
  • At least one of the current electricity price in the area where the dispatching unit is located and the type of program that needs to be run on the target schedulable unit are input into the cost prediction model; inside the cost prediction model, the first type of weight coefficient pair that has been trained is used Perform a weighted summation of the current power consumption data of the infrastructure on which the target schedulable unit depends, and add the result of the weighted summation to the current power consumption data of the target schedulable unit to obtain the initial cost of the target schedulable unit; And use the second type of weight coefficients that have been trained to modify the initial cost cost to obtain the cost cost of the target schedulable unit;
  • the first type of weight coefficient reflects the impact of the cost of infrastructure power consumption on the cost of schedulable units
  • the second type of weight coefficient reflects at least one of the cost of physical location, electricity price, and program type. Impact on the cost of schedulable units.
  • the processor 92 modifies the initial cost cost, it is specifically configured to calculate the product of the second type of weight coefficient and the initial cost cost as the cost cost of the target schedulable unit.
  • the processor 92 when the processor 92 obtains the current data corresponding to the cost impact factor of the target schedulable unit, it is specifically used to: from the current power consumption of each schedulable unit in the computer room system or the data center system In the data, determine the current power consumption data of the target schedulable unit; according to the equipment topological relationship of the computer room system or data center system, filter out the target schedulable unit from the current power consumption data of each infrastructure of the computer room system or data center system Current power consumption data of the infrastructure on which it depends.
  • the implementation form of the target schedulable unit is not limited, and it may be any device, module, or unit that can provide a certain service, function, or capability to the outside.
  • the target schedulable unit is a server in a computer room system or a data center system, and a CPU, GPU, memory, or network card on the server.
  • the resource scheduling device further includes: a communication component 93, a display 94, a power supply component 95, an audio component 95 and other components. Only some components are schematically shown in FIG. 9, which does not mean that the resource scheduling device only includes the components shown in FIG. 9. In addition, according to the different implementation forms of the resource scheduling device, the components in the dashed box in FIG. 9 are optional components, not mandatory components.
  • the resource scheduling device when the resource scheduling device is implemented as a terminal device such as a smart phone, a tablet computer, or a desktop computer, it can include the components in the dashed box in Figure 9; when the resource scheduling device is implemented as a server device such as a conventional server, a cloud server, or a server array , The components in the dashed box in Figure 9 may not be included.
  • the embodiment of the present application also provides a computer-readable storage medium storing a computer program, which can implement each step in the method embodiment shown in FIG. 7c when the computer program is executed.
  • the communication components in Figs. 8 and 9 described above are configured to facilitate wired or wireless communication between the device where the communication component is located and other devices.
  • the device where the communication component is located can access wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G/LTE, 5G and other mobile communication networks, or a combination of them.
  • the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component may further include a near field communication (NFC) module, radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology Wait.
  • NFC near field communication
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the above-mentioned display in Figs. 8 and 9 includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
  • the power supply components in Figures 8 and 9 above provide power for various components of the equipment where the power supply components are located.
  • the power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device where the power supply component is located.
  • the audio components in Figs. 8 and 9 described above may be configured to output and/or input audio signals.
  • the audio component includes a microphone (MIC).
  • the microphone When the device where the audio component is located is in an operating mode, such as call mode, recording mode, and voice recognition mode, the microphone is configured to receive external audio signals.
  • the received audio signal can be further stored in a memory or sent via a communication component.
  • the audio component further includes a speaker for outputting audio signals.
  • the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in a computer readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Software Systems (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Embodiments of the present application provide a resource scheduling method and an information prediction method, a device, a system, and a storage medium. In the embodiments of the present application, the prediction of costs is combined with resource scheduling, the resource scheduling based on the costs is achieved by predicting the costs of a schedulable unit, priority scheduling of resources having low costs can be achieved, and the probability of occurrence of local hot spots can also be reduced, facilitating reducing the overall power consumption. In addition, during prediction of the costs, the contribution of the power consumption of an infrastructure on which the schedulable unit depends in the costs of the schedulable unit is considered, the predicted costs can be more reasonable and accurate, thereby improving the reasonability of the resource scheduling based on the costs.

Description

资源调度与信息预测方法、设备、系统及存储介质Resource scheduling and information prediction method, equipment, system and storage medium 技术领域Technical field
本申请涉及机房系统或数据中心系统技术领域,尤其涉及一种资源调度与信息预测方法、设备、系统及存储介质。This application relates to the technical field of computer room systems or data center systems, and in particular to a method, equipment, system and storage medium for resource scheduling and information prediction.
背景技术Background technique
随着云计算技术的发展,各类机房系统或数据中心系统(Data Center,DC)不断被部署,机房系统或数据中心系统承载的压力不断增加,对服务的质量要求也越来越高,随之而来的,机房系统或数据中心系统的能耗问题也日益突出。With the development of cloud computing technology, various computer room systems or data center systems (DC) are constantly being deployed. The pressure on computer room systems or data center systems continues to increase, and the requirements for service quality are getting higher and higher. As a result, the energy consumption of computer room systems or data center systems has become increasingly prominent.
在如何降低机房系统或数据中心系统能耗的问题上,一种方案是为机房系统或数据中心系统的服务器配置功耗控制策略。在功耗控制策略已经普遍化的基础上,有必要提供新的解决方案。On the issue of how to reduce the energy consumption of the computer room system or data center system, one solution is to configure a power consumption control strategy for the server of the computer room system or data center system. Based on the generalization of power consumption control strategies, it is necessary to provide new solutions.
发明内容Summary of the invention
本申请的多个方面提供一种资源调度与信息预测方法、设备、系统及存储介质,用以降低数据中心系统或机房系统的功耗。Various aspects of the present application provide a resource scheduling and information prediction method, equipment, system, and storage medium to reduce the power consumption of a data center system or a computer room system.
本申请实施例提供一种资源调度方法,包括:获取至少一个可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据;根据所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个可调度单元的成本代价;根据所述至少一个可调度单元的成本代价,对所述至少一个可 调度单元进行资源调度。An embodiment of the present application provides a resource scheduling method, including: acquiring current data corresponding to a cost impact factor of at least one schedulable unit, the current data including the at least one schedulable unit and the infrastructure on which it depends According to the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price, predict the The cost of at least one schedulable unit; and perform resource scheduling on the at least one schedulable unit according to the cost of the at least one schedulable unit.
本申请实施例还提供一种信息预测方法,包括:获取目标可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述目标可调度单元的及其所依赖的基础设施的当前功耗数据;根据所述目标可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述目标可调度单元的成本代价。An embodiment of the present application also provides an information prediction method, including: acquiring current data corresponding to a cost impact factor of a target schedulable unit, the current data including information about the target schedulable unit and the infrastructure on which it depends Current power consumption data; according to the current power consumption data of the target schedulable unit and the infrastructure on which it depends, and the influence relationship between the pre-trained cost cost influencing factor and the cost cost, predict that the target can be The cost of the dispatch unit.
本申请实施例还提供一种资源调度设备,包括:存储器和处理器;所述存储器,用于存储计算机程序;所述处理器,与所述存储器耦合,用于执行与所述计算机程序以用于:获取至少一个可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据;根据所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个可调度单元的成本代价;根据所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度。An embodiment of the present application also provides a resource scheduling device, including: a memory and a processor; the memory is used to store a computer program; the processor is coupled to the memory and is used to execute the computer program for use For: acquiring current data corresponding to the cost impact factor of at least one schedulable unit, where the current data includes current power consumption data of the at least one schedulable unit and the infrastructure on which it depends; according to the at least one schedulable unit; The current power consumption data of the schedulable unit and the infrastructure on which it depends, as well as the influence relationship between the pre-trained cost cost influencing factor and the cost cost, predict the cost cost of the at least one schedulable unit; According to the cost of the at least one schedulable unit, resource scheduling is performed on the at least one schedulable unit.
本申请实施例还提供一种信息预测设备,包括:存储器和处理器;所述存储器,用于存储计算机程序;所述处理器,与所述存储器耦合,用于执行与所述计算机程序以用于:获取目标可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述目标可调度单元的及其所依赖的基础设施的当前功耗数据;根据所述目标可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述目标可调度单元的成本代价。An embodiment of the present application also provides an information prediction device, including: a memory and a processor; the memory is used to store a computer program; the processor is coupled to the memory and is used to execute the computer program for use In: obtaining current data corresponding to the cost impact factor of the target schedulable unit, the current data including current power consumption data of the target schedulable unit and the infrastructure on which it depends; according to the target schedulable unit The current power consumption data of the infrastructure and the infrastructure on which it depends, as well as the impact relationship between the pre-trained cost cost influencing factor and the cost cost, predict the cost cost of the target schedulable unit.
本申请实施例还提供一种机房系统,包括:若干个可调度单元、若干个基础设施以及资源调度设备;所述若干个基础设施为所述若干个可调度单元提供基础服务;所述资源调度设备,用于获取至少一个可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据;根据所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因 子与成本代价之间存在的影响关系,预测所述至少一个可调度单元的成本代价;根据所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度;其中,所述至少一个可调度单元来自于所述若干个可调度单元。The embodiment of the present application also provides a computer room system, including: several schedulable units, several infrastructures, and resource scheduling equipment; the several infrastructures provide basic services for the several schedulable units; the resource scheduling A device for acquiring current data corresponding to the cost impact factor of at least one schedulable unit, where the current data includes current power consumption data of the at least one schedulable unit and the infrastructure on which it depends; according to the Current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, and the pre-trained cost impact factor and the impact relationship between the cost price, and predict the cost price of the at least one schedulable unit; Perform resource scheduling on the at least one schedulable unit according to the cost of the at least one schedulable unit; wherein the at least one schedulable unit comes from the several schedulable units.
本申请实施例还提供另一种机房系统,包括:若干个可调度单元、若干个基础设施、信息预测设备以及资源调度设备;所述若干个基础设施为所述若干个可调度单元提供基础服务;所述信息预测设备,用于获取至少一个可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据;根据所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个可调度单元的成本代价;将所述至少一个可调度单元的成本代价提供给所述资源调度设备;所述资源调度设备,用于根据所述信息预测设备提供的所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度;其中,所述至少一个可调度单元来自于所述若干个可调度单元。The embodiment of the present application also provides another computer room system, including: several schedulable units, several infrastructures, information prediction equipment, and resource scheduling equipment; the several infrastructures provide basic services for the several schedulable units The information prediction device is used to obtain current data corresponding to the cost impact factor of at least one schedulable unit, the current data including the current power consumption of the at least one schedulable unit and the infrastructure on which it depends Data; predict the at least one schedulable unit based on the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price The cost of the unit; the cost of the at least one schedulable unit is provided to the resource scheduling device; the resource scheduling device is used to predict the cost of the at least one schedulable unit provided by the device according to the information , Perform resource scheduling on the at least one schedulable unit; wherein the at least one schedulable unit comes from the several schedulable units.
本申请实施例还提供一种数据中心系统,包括:至少一个机房以及资源调度设备;每个机房包括若干个可调度单元和若干个基础设施,所述若干个基础设施为所述若干个可调度单元提供基础服务;所述资源调度设备,用于获取至少一个可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据;根据所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个可调度单元的成本代价;根据所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度;其中,所述至少一个可调度单元来自于所述至少一个机房中的可调度单元。The embodiment of the present application also provides a data center system, including: at least one computer room and resource scheduling equipment; each computer room includes a number of schedulable units and a number of infrastructures, and the number of infrastructures is the number of schedulable The unit provides basic services; the resource scheduling device is used to obtain current data corresponding to the cost impact factor of at least one schedulable unit, and the current data includes the at least one schedulable unit and the infrastructure on which it depends According to the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price, predict the The cost of at least one schedulable unit; according to the cost of the at least one schedulable unit, perform resource scheduling on the at least one schedulable unit; wherein the at least one schedulable unit comes from the at least one computer room The schedulable unit.
本申请实施例还提供另一种数据中心系统,包括:至少一个机房、信息预测设备以及资源调度设备;每个机房包括若干个可调度单元和若干个基础 设施,所述若干个基础设施为所述若干个可调度单元提供基础服务;所述信息预测设备,用于获取至少一个可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据;根据所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个可调度单元的成本代价;将所述至少一个可调度单元的成本代价提供给所述资源调度设备;所述资源调度设备,用于根据所述信息预测设备提供的所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度;其中,所述至少一个可调度单元来自于所述至少一个机房中的可调度单元。The embodiment of the present application also provides another data center system, including: at least one computer room, information prediction equipment, and resource scheduling equipment; each computer room includes a number of schedulable units and a number of infrastructures. The several schedulable units provide basic services; the information prediction device is used to obtain the current data corresponding to the cost impact factor of at least one schedulable unit, and the current data includes the at least one schedulable unit and its Current power consumption data of the dependent infrastructure; according to the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, and the pre-trained cost impact factor and the impact of the cost price Relationship, predict the cost of the at least one schedulable unit; provide the cost of the at least one schedulable unit to the resource scheduling device; the resource scheduling device is used to predict the cost of the at least one schedulable unit based on the information According to the cost of the at least one schedulable unit, resource scheduling is performed on the at least one schedulable unit; wherein the at least one schedulable unit comes from the schedulable unit in the at least one schedulable unit.
本申请实施例还提供一种边缘计算系统,包括:若干个边缘计算节点、若干个基础设施和服务器;所述若干个基础设施为所述若干个边缘计算节点提供基础服务;An embodiment of the present application also provides an edge computing system, including: several edge computing nodes, several infrastructures and servers; the several infrastructures provide basic services for the several edge computing nodes;
所述服务器,用于获取至少一个边缘计算节点的与成本代价影响因子对应的当前数据,所述当前数据包括所述至少一个边缘计算节点及其所依赖的基础设施的当前功耗数据;根据所述至少一个边缘计算节点及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个边缘计算节点的成本代价;根据所述至少一个边缘计算节点的成本代价,对所述至少一个边缘计算节点进行资源调度;其中,所述至少一个边缘计算节点来自于所述若干个边缘计算节点。The server is configured to obtain current data corresponding to the cost impact factor of at least one edge computing node, where the current data includes current power consumption data of the at least one edge computing node and the infrastructure on which it depends; Describe the current power consumption data of the at least one edge computing node and the infrastructure on which it depends, and the pre-trained cost impact factor and the impact relationship between the cost price, and predict the cost price of the at least one edge computing node; According to the cost of the at least one edge computing node, resource scheduling is performed on the at least one edge computing node; wherein the at least one edge computing node comes from the plurality of edge computing nodes.
本申请实施例还提供一种存储有计算机程序的计算机可读存储介质,当所述计算机程序被处理器执行时,致使所述处理器实现本申请各方法实施例中的步骤。The embodiments of the present application also provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the processor is caused to implement the steps in the method embodiments of the present application.
在本申请实施例中,将成本代价的预测与资源调度相结合,通过预测可调度单元的成本代价,实现基于成本代价的资源调度,既可以优先调度成本代价较低的资源,又可以降低出现局部热点的概率,有利于降低整体功耗;另外,在成本代价预测过程中,同时考虑可调度单元所依赖的基础设施的功 耗在可调度单元的成本代价中的贡献,可使预测出的成本代价更加合理和准确,进而可提高基于成本代价的资源调度的合理性。In the embodiment of the present application, the cost cost prediction is combined with resource scheduling. By predicting the cost cost of the schedulable unit, the cost cost-based resource scheduling is realized, which can prioritize the scheduling of resources with lower cost costs and reduce occurrences. The probability of local hotspots is conducive to reducing the overall power consumption; in addition, in the cost cost prediction process, the contribution of the power consumption of the infrastructure on which the schedulable unit depends on the cost of the schedulable unit can be considered to make the predicted cost The cost price is more reasonable and accurate, and the rationality of resource scheduling based on the cost price can be improved.
附图说明Description of the drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The exemplary embodiments and descriptions of the application are used to explain the application, and do not constitute an improper limitation of the application. In the attached picture:
图1为本申请示例性实施例提供的一种机房系统的结构示意图;FIG. 1 is a schematic structural diagram of a computer room system provided by an exemplary embodiment of this application;
图2a为本申请示例性实施例提供的资源调度设备的一种工作原理框图;FIG. 2a is a block diagram of a working principle of a resource scheduling device provided by an exemplary embodiment of this application;
图2b为本申请示例性实施例提供的资源调度设备的另一种工作原理框图;2b is a block diagram of another working principle of the resource scheduling device provided by an exemplary embodiment of this application;
图3为本申请示例性实施例提供的一种数据中心系统的结构示意图;FIG. 3 is a schematic structural diagram of a data center system provided by an exemplary embodiment of this application;
图4为本申请示例性实施例提供的另一种机房系统的结构示意图;4 is a schematic structural diagram of another computer room system provided by an exemplary embodiment of this application;
图5a为本申请示例性实施例提供的信息预测设备的一种工作原理框图;Fig. 5a is a block diagram of a working principle of an information prediction device provided by an exemplary embodiment of this application;
图5b为本申请示例性实施例提供的信息预测设备的另一种工作原理框图;FIG. 5b is a block diagram of another working principle of the information prediction device provided by an exemplary embodiment of this application;
图6a为本申请示例性实施例提供的另一种数据中心系统的结构示意图;Fig. 6a is a schematic structural diagram of another data center system provided by an exemplary embodiment of this application;
图6b为本申请示例性实施例提供的一种边缘计算系统的结构示意图;FIG. 6b is a schematic structural diagram of an edge computing system provided by an exemplary embodiment of this application;
图7a为本申请示例性实施例提供的一种资源调度方法的流程示意图;FIG. 7a is a schematic flowchart of a resource scheduling method provided by an exemplary embodiment of this application;
图7b为本申请示例性实施例提供的一种模型训练方法的流程示意图;FIG. 7b is a schematic flowchart of a model training method provided by an exemplary embodiment of this application;
图7c为本申请示例性实施例提供的一种信息预测方法的流程示意图;FIG. 7c is a schematic flowchart of an information prediction method provided by an exemplary embodiment of this application;
图8为本申请示例性实施例提供的一种资源调度设备的结构示意图;FIG. 8 is a schematic structural diagram of a resource scheduling device provided by an exemplary embodiment of this application;
图9为本申请示例性实施例提供的一种信息预测设备的结构示意图。FIG. 9 is a schematic structural diagram of an information prediction device provided by an exemplary embodiment of this application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体 实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described clearly and completely in conjunction with specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
针对如何降低机房系统或数据中心系统能耗的技术问题,在本申请一些实施例中,将成本代价的预测与资源调度相结合,通过预测可调度单元的成本代价,实现基于成本代价的资源调度,既可以优先调度成本代价较低的资源,又可以降低出现局部热点的概率,有利于降低整体功耗;在成本代价预测过程中,同时考虑可调度单元所依赖的基础设施的功耗在可调度单元的成本代价中的贡献,可使预测出的成本代价更加合理和准确,进而可提高基于成本代价的资源调度的合理性。In view of the technical problem of how to reduce the energy consumption of the computer room system or the data center system, in some embodiments of the present application, the prediction of the cost price is combined with the resource scheduling, and the cost price of the schedulable unit is predicted to realize the resource scheduling based on the cost price. , It can prioritize resources with lower cost, and can reduce the probability of local hot spots, which is helpful to reduce the overall power consumption. In the cost prediction process, the power consumption of the infrastructure on which the schedulable unit depends can be considered at the same time. The contribution of the cost cost of the scheduling unit can make the predicted cost cost more reasonable and accurate, and further can improve the rationality of resource scheduling based on the cost cost.
以下结合附图,详细说明本申请各实施例提供的技术方案。The technical solutions provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
图1为本申请示例性实施例提供的一种机房系统的结构及工作原理示意图。如图1所示,本实施例的机房系统100包括:机房,机房是指存放机器设备的物理场所,例如可以是一个房间或厂房等。机房系统100可以单独建设,也可以置于其他建筑之内。进一步,如图1所示,机房系统100还包括:位于机房内的至少一个物理设备101和资源调度设备102。本实施例并不限定物理设备101的数量,可以是一台,也可以是多台。FIG. 1 is a schematic diagram of the structure and working principle of a computer room system provided by an exemplary embodiment of this application. As shown in FIG. 1, the computer room system 100 of this embodiment includes: a computer room. The computer room refers to a physical place where machinery and equipment are stored, for example, a room or a factory building. The computer room system 100 can be built separately or placed in other buildings. Further, as shown in FIG. 1, the computer room system 100 further includes: at least one physical device 101 and a resource scheduling device 102 located in the computer room. This embodiment does not limit the number of physical devices 101, and it may be one or multiple.
在本实施例中,并不限定物理设备101的设备形态。如图1所示,物理设备101可以是机房内的IT类设备和为IT类设备降温的制冷设备,例如空调设备。举例说明,至少一个物理设备101可以包括但不限于:机柜设备、服务器设备、终端设备、打印机、集线器、电源设备、存储设备、网络交换设备以及空调设备等。服务器设备可以是包括但不限于:常规服务器、服务器阵列或云服务器等。电源设备可以是蓄电池设备、干电池设备、或不间断电源(UPS)等。存储设备可以包括但不限于:磁盘、磁盘阵列、硬盘、网络存储设备(NAS)等。In this embodiment, the device form of the physical device 101 is not limited. As shown in FIG. 1, the physical device 101 may be an IT-type device in a computer room and a refrigeration device for cooling the IT-type device, such as an air-conditioning device. For example, the at least one physical device 101 may include, but is not limited to: cabinet equipment, server equipment, terminal equipment, printers, hubs, power supply equipment, storage equipment, network switching equipment, air conditioning equipment, and so on. The server device may include, but is not limited to, a conventional server, a server array, or a cloud server. The power supply equipment can be storage battery equipment, dry battery equipment, or uninterruptible power supply (UPS). Storage devices may include, but are not limited to: disks, disk arrays, hard disks, network storage devices (NAS), and so on.
同理,本实施例也不限定资源调度设备102的设备形态。资源调度设备 可以是任何具有一定资源调度能力的计算机设备,例如可以是智能手机、笔记本电脑、台式电脑、平板电脑或智能手表等终端设备,也可以是常规服务器、云服务器或服务器阵列等服务器设备。Similarly, this embodiment does not limit the device form of the resource scheduling device 102 either. The resource scheduling device can be any computer device with certain resource scheduling capabilities, such as terminal devices such as smart phones, laptops, desktop computers, tablets, or smart watches, or server devices such as conventional servers, cloud servers, or server arrays .
在本实施例中,从资源调度的角度,将机房内的物理设备101划分为若干个可调度单元和若干个基础设施。在本申请实施例中,“若干个”表示不确定的数量,可以表示一个,也可以表示多个。其中,可调度单元是指机房内可对外提供某种服务、功能或资源(例如计算、存储或网络)的资源设备、模块或单元。举例说明,可调度单元可以是机房内的服务器或打印机等物理设备,或者可以是服务器上的CPU、GPU、内存、网卡或硬盘等硬件模块,或者也可以是运行于物理设备上的虚拟机、云服务等软件模块或单元。通常来讲,物理服务器为最常见的可调度单元。基础设施是指机房内为可调度单元提供基础服务的设施。根据可调度单元的不同,基础设施也会有所区别,对此不做限定。以可调度单元是服务器为例,基础设施可以包括为服务器提供支撑服务的机柜,为服务器降温的空调设备、风扇或水冷设备,为服务器供电的电力设备,为服务器提供网络连接的交换机,等等。In this embodiment, from the perspective of resource scheduling, the physical device 101 in the computer room is divided into several schedulable units and several infrastructures. In the embodiments of the present application, "several" means an indeterminate number, which may mean one or more. Among them, a schedulable unit refers to a resource device, module, or unit that can provide a certain service, function, or resource (for example, computing, storage, or network) to the outside in the computer room. For example, the schedulable unit may be a physical device such as a server or printer in the computer room, or a hardware module such as a CPU, GPU, memory, network card, or hard disk on the server, or a virtual machine running on a physical device, Software modules or units such as cloud services. Generally speaking, physical servers are the most common schedulable unit. Infrastructure refers to the facilities in the computer room that provide basic services for dispatchable units. According to the different schedulable units, the infrastructure will be different, which is not limited. Take the server as an example. The schedulable unit is a server. The infrastructure can include cabinets that provide support services for the servers, air-conditioning equipment, fans or water-cooling equipment for cooling the servers, power equipment for powering the servers, switches that provide network connections for the servers, etc. .
其中,可调度单元作为机房系统100中的可用资源,通过资源调度设备102可对可调度单元进行合理地资源调度。合理地资源调度,对提高机房系统100的资源利用效率,节约能源,提高资源共享和降低运营成本都具有极大意义。在本实施例中,资源调度是一个将可调度单元分配给资源需求用户的过程。对于资源过载(需求大于系统容量)的场景,或者需求与容量会随着时间的推移而动态变化的场景,资源调度设备102可以动态地重新分配资源,以便更高效地使用可用资源。例如,资源调度设备102可以将某些资源需求用户的应用程序分配到某个或某些可调度单元上运行。又例如,资源调度设备102可以将某个或某些可调度单元所能提供的CPU、存储或网络带宽等资源分配给某些资源需求用户,资源需求用户依据实际情况使用这些资源。本申请实施例中的“应用程序”是指广泛意义上的各类程序、代码、软件、业务系统或应用系统等。Among them, the schedulable unit is used as an available resource in the computer room system 100, and the schedulable unit can be reasonably scheduled for resources through the resource scheduling device 102. Reasonable resource scheduling is of great significance for improving the resource utilization efficiency of the computer room system 100, saving energy, improving resource sharing, and reducing operating costs. In this embodiment, resource scheduling is a process of allocating schedulable units to users who need resources. For scenarios where resource overload (demand is greater than system capacity) or scenarios where demand and capacity change dynamically over time, the resource scheduling device 102 may dynamically reallocate resources so as to use available resources more efficiently. For example, the resource scheduling device 102 may allocate certain resource-demanding user applications to certain schedulable units or units to run. For another example, the resource scheduling device 102 may allocate resources such as CPU, storage, or network bandwidth provided by a certain schedulable unit or units to certain resource demand users, and the resource demand users use these resources according to actual conditions. The "application program" in the embodiments of the present application refers to various programs, codes, software, business systems, or application systems in a broad sense.
在本实施例中,资源调度设备102在对可调度单元进行资源调度的过程中,同时考虑可调度单元的成本代价。基于成本代价的资源调度,既可以优先调度成本代价较低的资源,又可以降低出现局部热点的概率,有利于降低机房系统100的整体功耗。其中,为了使用可调度单元的成本代价,资源调度设备102还具有成本代价预测能力,用于预测可调度单元的成本代价。其中,可根据应用需求,灵活定义“可调度单元的成本代价”所代表的物理意义,本实施例对此不做限定。例如,可调度单元的成本代价可以是功耗方面的成本代价,或者是维护方面的成本代价,或者是配置方面的成本代价,等等。在本实施例中,重点以功耗方面的成本代价为例进行说明。In this embodiment, the resource scheduling device 102 simultaneously considers the cost of the schedulable unit during resource scheduling of the schedulable unit. Resource scheduling based on cost can not only prioritize resources with lower cost, but also reduce the probability of local hot spots, which is beneficial to reducing the overall power consumption of the computer room system 100. Among them, in order to use the cost price of the schedulable unit, the resource scheduling device 102 also has a cost price prediction capability for predicting the cost price of the schedulable unit. Among them, the physical meaning represented by the "cost of the schedulable unit" can be flexibly defined according to application requirements, which is not limited in this embodiment. For example, the cost of the schedulable unit may be the cost of power consumption, or the cost of maintenance, or the cost of configuration, and so on. In this embodiment, the description is focused on the cost of power consumption as an example.
其中,对成本代价具有影响的直接因素是可调度单元自身的功耗,除此之外,还包括很多其它因素。在本实施例中,重点考虑可调度单元所依赖的基础设施的功耗这一因素,将可调度单元所依赖的基础设施的功耗折算到可调度单元的成本代价中,可提高资源调度的合理性。在本实施例中,将对可调度单元的成本代价具有影响的因素统称为成本代价影响因子。在本实施例中,成本代价影响因子至少包括两个,例如,可调度单元自身的功耗是一种成本代价影响因子,可调度单元所依赖的基础设施功耗是另一种成本代价影响因子。在这些成本代价影响因子中,有一些影响因子的取值是动态变化的,有一些影响因子的取值可能是不变的。无论影响因子的取值是否变化,在本申请实施例中,将成本代价影响因子在当前时刻或当前时段内的取值称为与成本代价影响因子对应的当前数据;将成本代价影响因子在历史时刻或历史时段内的取值称为与成本代价影响因子对应的历史数据。根据成本代价影响因子的不同,当前数据和历史数据包含的数据内容也会有所不同。Among them, the direct factor that has an impact on the cost is the power consumption of the schedulable unit itself, in addition to many other factors. In this embodiment, the factor of power consumption of the infrastructure on which the schedulable unit depends is mainly considered, and the power consumption of the infrastructure on which the schedulable unit depends is converted into the cost of the schedulable unit, which can improve resource scheduling. rationality. In this embodiment, the factors that have an impact on the cost of the schedulable unit are collectively referred to as the cost impact factor. In this embodiment, the cost impact factor includes at least two. For example, the power consumption of the schedulable unit itself is a cost impact factor, and the power consumption of the infrastructure on which the schedulable unit depends is another cost impact factor. . Among these cost impact factors, the value of some impact factors changes dynamically, and the value of some impact factors may not change. Regardless of whether the value of the impact factor changes, in the embodiments of the present application, the value of the cost impact factor at the current moment or the current time period is referred to as the current data corresponding to the cost impact factor; the cost impact factor is in the history The value in the time or historical period is called the historical data corresponding to the cost impact factor. According to the different cost impact factors, the data content contained in current data and historical data will also be different.
对资源调度设备102来说,可在每次资源调度过程中,从机房系统100包含的可调度单元中确定可调度的至少一个可调度单元。其中,至少一个可调度单元可以是机房系统100包含的部分可调度单元,也可以是机房系统100包含的全部可调度单元。然后,资源调度设备102获取至少一个可调度单元的与成本代价影响因子对应的当前数据。在本实施例中,所使用的成本代价 影响因子包括可调度单元的功耗以及可调度单元所依赖的基础设施的功耗,基于此,该当前数据包括:至少一个可调度单元的及其所依赖的基础设施的当前功耗数据。接着,资源调度设备102可根据至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测至少一个可调度单元的成本代价。最后,资源调度设备102可根据至少一个可调度单元的成本代价,对至少一个可调度单元进行资源调度。For the resource scheduling device 102, at least one schedulable unit can be determined from the schedulable units included in the computer room system 100 during each resource scheduling process. The at least one schedulable unit may be part of the schedulable unit included in the computer room system 100, or may be all schedulable units included in the computer room system 100. Then, the resource scheduling device 102 obtains the current data corresponding to the cost impact factor of at least one schedulable unit. In this embodiment, the cost impact factor used includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit depends. Based on this, the current data includes: Current power consumption data of the dependent infrastructure. Then, the resource scheduling device 102 can predict at least one schedulable unit and the current power consumption data of the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price. The cost of the dispatch unit. Finally, the resource scheduling device 102 may perform resource scheduling on at least one schedulable unit according to the cost of the at least one schedulable unit.
在本实施例中,并不限定资源调度设备102从机房系统100包含的可调度单元中确定可调度的至少一个可调度单元的方式。例如,以本次资源调度为例,资源调度设备102可根据本次资源调度对应的资源需求,从机房系统100包含的各可调度单元中确定本次可调度的至少一个可调度单元。本次资源调度对应的资源需求包含本次资源调度对可调度单元的一些要求,例如类型、位置或能力大小等,满足这些要求的可调度单元即可参与本次资源调度。In this embodiment, the manner in which the resource scheduling device 102 determines at least one schedulable unit from the schedulable units included in the computer room system 100 is not limited. For example, taking this resource scheduling as an example, the resource scheduling device 102 may determine at least one schedulable unit that is schedulable this time from the schedulable units included in the computer room system 100 according to the resource demand corresponding to this resource scheduling. The resource requirements corresponding to this resource scheduling include some requirements of this resource scheduling for schedulable units, such as type, location, or capacity, and schedulable units that meet these requirements can participate in this resource scheduling.
进一步,除了考虑本次资源调度对应的资源需求之外,还可以结合机房系统100的设备拓扑关系,从机房系统100包含的可调度单元中确定本次可调度的至少一个可调度单元。机房系统100的设备拓扑关系描述了机房系统100中各物理设备101之间的拓扑关系,通过该拓扑关系可清楚知道各可调度单元与资源调度设备102之间的距离远近。基于此,可根据机房系统100的设备拓扑关系,从机房系统100包含的各可调度单元中,确定与执行本次资源调度的资源调度设备的距离满足设定要求的至少一个可调度单元。这里的距离可以是物理距离,也可以是网络传输距离。本实施例并不对“设定要求”进行限定,可以根据应用需求灵活设定。下面举例说明:Further, in addition to considering the resource requirements corresponding to this resource scheduling, at least one schedulable unit that can be scheduled this time can be determined from the schedulable units included in the computer room system 100 in combination with the device topology relationship of the computer room system 100. The device topology relationship of the computer room system 100 describes the topology relationship between the physical devices 101 in the computer room system 100, and the distance between each schedulable unit and the resource scheduling device 102 can be clearly known through the topology relationship. Based on this, according to the device topology relationship of the computer room system 100, at least one schedulable unit whose distance to the resource scheduling device performing this resource scheduling meets the set requirement can be determined from among the schedulable units included in the computer room system 100. The distance here can be a physical distance or a network transmission distance. This embodiment does not limit the "setting requirements", and can be flexibly set according to application requirements. The following example illustrates:
示例1:设定要求是指位于同一机房内,则可根据机房系统100的设备拓扑关系,从机房系统100包含的各可调度单元中,确定与资源调度设备102位于同一机房内的至少一个可调度单元。简单来说,就是从机房系统100包含的各可调度单元中,获取满足本次资源调度对应的资源需求的可调度单元。Example 1: The setting requirement refers to being located in the same computer room. According to the device topology of the computer room system 100, at least one of the schedulable units included in the computer room system 100 can be determined to be located in the same computer room as the resource scheduling device 102. Scheduling unit. To put it simply, it is to obtain a schedulable unit that meets the resource demand corresponding to this resource scheduling from each schedulable unit included in the computer room system 100.
示例2:设定要求是指位于同一通道内,则可根据机房系统100的设备拓 扑关系,从机房系统100包含的各可调度单元中,确定与资源调度设备102位于同一通道内的至少一个可调度单元。机房系统100包括若干个通道,每个通道包含若干个机柜,每个机柜包含若干个服务器。资源调度设备102部署于某个通道内。简单来说,就是位于资源调度设备102所在通道内的可调度单元中,获取满足本次资源调度对应的资源需求的可调度单元。Example 2: The setting requirement refers to being located in the same channel. According to the device topology relationship of the computer room system 100, at least one of the schedulable units included in the computer room system 100 can be determined to be located in the same channel as the resource scheduling device 102. Scheduling unit. The computer room system 100 includes a number of channels, each channel includes a number of cabinets, and each cabinet includes a number of servers. The resource scheduling device 102 is deployed in a certain channel. To put it simply, it is to obtain a schedulable unit that meets the resource requirements corresponding to this resource scheduling in the schedulable unit located in the channel where the resource scheduling device 102 is located.
示例3:设定要求是指位于同一机柜内,则可根据机房系统100的设备拓扑关系,从机房系统100包含的各可调度单元中,确定与资源调度设备102位于同一机柜内的至少一个可调度单元。机房系统100包括若干个通道,每个通道包含若干个机柜,每个机柜包含若干个服务器。资源调度设备102部署于某个机柜内。简单来说,就是部署于资源调度设备102所在机柜内的可调度单元中,获取满足本次资源调度对应的资源需求的可调度单元。Example 3: The setting requirement refers to being located in the same cabinet. According to the device topology of the computer room system 100, it can be determined from the schedulable units included in the computer room system 100 that at least one schedulable unit is located in the same cabinet as the resource scheduling device 102. Scheduling unit. The computer room system 100 includes a number of channels, each channel includes a number of cabinets, and each cabinet includes a number of servers. The resource scheduling device 102 is deployed in a certain cabinet. To put it simply, it is deployed in the schedulable unit in the cabinet where the resource scheduling device 102 is located, and obtains the schedulable unit that meets the resource requirements corresponding to this resource scheduling.
示例4:设定要求是指物理距离小于设定距离阈值,则可根据机房系统100的设备拓扑关系,从机房系统100包含的各可调度单元中,确定与资源调度设备102之间的物理距离小于设定距离阈值的至少一个可调度单元。Example 4: The set requirement means that the physical distance is less than the set distance threshold, and the physical distance to the resource scheduling device 102 can be determined from the schedulable units included in the computer room system 100 according to the device topology relationship of the computer room system 100 At least one schedulable unit less than the set distance threshold.
无论采用何种方式,在确定至少一个可调度单元之后,资源调度设备102可获取至少一个可调度单元的及其所依赖的基础设施的当前功耗数据。可选地,资源调度设备102可以获取机房系统100中各物理设备101的当前功耗数据,从中解析出机房系统100中各可调度单元的当前功耗数据和各基础设施的当前功耗数据;然后,从各可调度单元的当前功耗数据中选择出本次可调度的至少一个可调度单元的当前功耗数据,并结合机房系统100的设备拓扑关系,从各基础设施的当前功耗数据中选择出至少一个可调度单元各自所依赖的基础设施的当前功耗数据。In any manner, after determining at least one schedulable unit, the resource scheduling device 102 may obtain the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends. Optionally, the resource scheduling device 102 may obtain the current power consumption data of each physical device 101 in the computer room system 100, and analyze the current power consumption data of each schedulable unit in the computer room system 100 and the current power consumption data of each infrastructure; Then, the current power consumption data of at least one schedulable unit that can be schedulable this time is selected from the current power consumption data of each schedulable unit, and combined with the device topology relationship of the computer room system 100, the current power consumption data of each infrastructure Select the current power consumption data of the infrastructure on which at least one schedulable unit each depends.
在本申请一些实施例中,可以在线下预先训练出各可调度单元对应的成本代价预测模型,每个可调度单元对应的成本代价预测模型可反应可调度单元自身对应的成本代价影响因子与成本代价之间存在的影响关系;基于此,在线上,利用至少一个可调度单元各自对应的成本代价预测模型进行成本代价预测,得到至少一个可调度单元的成本代价。In some embodiments of the present application, the cost prediction model corresponding to each schedulable unit can be pre-trained offline, and the cost cost prediction model corresponding to each schedulable unit can reflect the cost impact factor and cost corresponding to the schedulable unit itself. Based on this, the cost prediction model corresponding to at least one schedulable unit is used to predict the cost on the line to obtain the cost of at least one schedulable unit.
其中,图2a所示为资源调度设备102的一种工作原理框图。参见图2a,资源调度设备102可以获取至少一个可调度单元的与成本代价影响因子对应的历史数据,该历史数据包括至少一个可调度单元的及其所依赖的基础设施的历史功耗数据。这里的历史功耗数据包括多个历史时刻或历史时段内的功耗数据;根据至少一个可调度单元的及其所依赖的基础设施的历史功耗数据分别进行模型训练,得到至少一个可调度单元各自对应的成本代价预测模型。进一步,参见图2a,在资源调度过程中,资源调度设备102获取至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,将至少一个可调度单元的及其所依赖的基础设施的当前功耗数据分别输入各自对应的成本代价预测模型进行成本代价预测,以得到至少一个可调度单元的成本代价;进而根据至少一个可调度单元的成本代价,对至少一个可调度单元进行资源调度。Wherein, FIG. 2a shows a block diagram of a working principle of the resource scheduling device 102. Referring to FIG. 2a, the resource scheduling device 102 may obtain historical data corresponding to the cost impact factor of at least one schedulable unit, and the historical data includes historical power consumption data of the at least one schedulable unit and the infrastructure on which it depends. The historical power consumption data here includes power consumption data at multiple historical moments or historical time periods; model training is performed according to the historical power consumption data of at least one schedulable unit and the infrastructure on which it depends to obtain at least one schedulable unit Each corresponding cost price prediction model. Further, referring to Figure 2a, in the resource scheduling process, the resource scheduling device 102 obtains the current power consumption data of at least one schedulable unit and the infrastructure on which it depends, and compares the current power consumption data of at least one schedulable unit and the infrastructure on which it depends. The current power consumption data of each is input into the corresponding cost cost prediction model for cost cost prediction to obtain the cost cost of at least one schedulable unit; and then based on the cost cost of the at least one schedulable unit, resource scheduling is performed on at least one schedulable unit .
其中,图2a所示的成本代价预测模型主要反映可调度单元所依赖的基础设施的功耗这一成本代价影响因子对可调度单元的成本代价存在的影响关系。可选地,该影响关系可表达为下述公式(1),但并不限于此。Among them, the cost cost prediction model shown in FIG. 2a mainly reflects the influence relationship of the cost cost influence factor of the power consumption of the infrastructure on which the schedulable unit depends on the cost cost of the schedulable unit. Optionally, the influence relationship can be expressed as the following formula (1), but it is not limited to this.
Figure PCTCN2019105455-appb-000001
Figure PCTCN2019105455-appb-000001
在公式(1)中,P i表示可调度单元所依赖的第i个基础设施的功耗数据;n表示可调度单元所依赖的基础设施的总个数,n是正整数;β i表示第i个基础设施的功耗数据对应的权重系统,可反应出第i个基础设施的功耗对可调度单元的成本代价的贡献程度;P 0表示可调度单元的功耗数据;P v表示可调度单元的成本代价。 In the formula (1), P i represents the power consumption data may depend on the scheduling unit i-th infrastructure; n-represents the total number of units may depend infrastructure scheduling, n being a positive integer; beta] i represents the i The weight system corresponding to the power consumption data of each infrastructure can reflect the contribution of the power consumption of the i-th infrastructure to the cost of the schedulable unit; P 0 represents the power consumption data of the schedulable unit; P v represents the schedulable unit The cost of the unit.
基于上述公式(1)表达的基础设施功耗这一成本代价影响因子对可调度单元的成本代价的影响关系,以目标可调度单元为例,对资源调度设备102预测成本代价的过程进行说明。其中,目标可调度单元是至少一个可调度单元中任一可调度单元。Based on the influence relationship of the cost influence factor of the infrastructure power consumption expressed by the above formula (1) on the cost cost of the schedulable unit, taking the target schedulable unit as an example, the process of predicting the cost of the resource scheduling device 102 will be described. Wherein, the target schedulable unit is any schedulable unit among at least one schedulable unit.
针对目标可调度单元,资源调度设备102将目标可调度单元的及其所依 赖的基础设施的当前功耗数据输入目标可调度单元对应的成本代价预测模型;在目标可调度单元对应的成本代价预测模型内部,利用已经训练出的第一类权重系数对目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与目标可调度单元的当前功耗数据相加,以得到目标可调度单元的成本代价。为便于区分和描述,将公式(1)中的权重系统β i称为第一类权重系数;第一类权重系统反应基础设施功耗这一成本代价影响因子对可调度单元的成本代价存在的影响。 For the target schedulable unit, the resource scheduling device 102 inputs the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model corresponding to the target schedulable unit; the cost prediction model corresponding to the target schedulable unit Inside the model, the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the first type of weight coefficients that have been trained, and the result of the weighted summation is combined with the current power consumption data of the target schedulable unit Add them to get the cost of the target schedulable unit. In order to facilitate the distinction and description, the weighting system β i in formula (1) is called the first type of weighting coefficient; the first type of weighting system reflects the impact of the cost impact factor of infrastructure power consumption on the cost of schedulable units. influences.
需要说明的是,影响可调度单元的成本代价的因素,即成本代价影响因子除了可调度单元自身的功耗(简称为自身功耗)以及可调度单元所依赖的基础设施的功耗(简称为基础设施功耗)这两种之外,还有很多其它的,例如电费价格、可调度单元上运行的应用程序类型(简称为应用程序类型)以及可调度单元的物理位置(简称为物理位置)等。其中,不同类型的应用程序具有不同功耗使用模式,在SLA一般会预先要求。It should be noted that the factors that affect the cost of the schedulable unit, that is, the cost impact factor is in addition to the power consumption of the schedulable unit itself (referred to as its own power consumption) and the power consumption of the infrastructure on which the schedulable unit depends (referred to as Infrastructure power consumption) In addition to these two, there are many others, such as the price of electricity, the type of application running on the schedulable unit (referred to as the application type), and the physical location of the schedulable unit (referred to as the physical location) Wait. Among them, different types of applications have different power consumption usage patterns, which are generally required in advance in the SLA.
基于上述,在本申请另一些实施例中,除了考虑可调度单元自身的功耗以及可调度单元所依赖的基础设施的功耗这两种成本代价影响因子之外,还可以考虑可调度单元的物理位置、可调度单元所在区域的电费价格以及可调度单元上运行的程序类型等其它成本代价影响因子中的至少一种。其中,可调度单元上运行的程序类型一定程度上可以反映可调度单元的功耗量。例如,有些类型的应用程序比较耗费电量,例如使用较频繁或使用次数较多的应用程序,又例如一些音视频播放类的应用程序;有些类型的应用程序耗电量相对较少,例如使用较少的应用程序,或者一些文本处理类的应用程序。可调度单元所在区域的电费价格不同,可调度单元的成本代价也会有所不同。一些区域的电费价格相对较高,即使部署于这些区域内的可调度单元(例如服务器)的功耗不高,但结合电费价格之后,其成本代价也有可能会比较高;一些区域的电费价格较低,即使部署于这些区域内的可调度单元(例如服务器)的功耗比较高,但结合电费价格之后,其成本代价也有可能会比较低。 除了地域之外,在电费价格也可能会随时段而变化,电费价格的波动会影响可调度单元的成本代价。Based on the above, in some other embodiments of the present application, in addition to considering the two cost impact factors of the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit depends, the cost of the schedulable unit can also be considered. At least one of the physical location, the price of electricity in the area where the schedulable unit is located, and the type of program running on the schedulable unit, and other cost impact factors. Among them, the type of programs running on the schedulable unit can reflect the power consumption of the schedulable unit to a certain extent. For example, some types of applications consume more power, such as applications that are used more frequently or frequently, or some audio and video playback applications; some types of applications consume relatively less power, such as those that are more frequently used. Few applications, or some text processing applications. The electricity price of the area where the dispatchable unit is located is different, and the cost of the dispatchable unit will also be different. The price of electricity in some areas is relatively high. Even if the power consumption of schedulable units (such as servers) deployed in these areas is not high, the cost of electricity may be higher when combined with the price of electricity; the price of electricity in some areas is relatively high. Low, even if the power consumption of schedulable units (such as servers) deployed in these areas is relatively high, the cost price may be relatively low when combined with the price of electricity. In addition to regions, the price of electricity may also change over time, and fluctuations in the price of electricity will affect the cost of dispatchable units.
如图2b所示,为资源调度设备102的另一种工作原理框图。为便于简化图示,在图2b中以目标可调度单元为例对资源调度设备102的工作原理进行说明。As shown in FIG. 2b, it is a block diagram of another working principle of the resource scheduling device 102. To simplify the illustration, the working principle of the resource scheduling device 102 is described by taking the target schedulable unit as an example in FIG. 2b.
参见图2b,针对目标可调度单元,资源调度设备102可获取目标可调度单元的与成本代价影响因子对应的历史数据。在该实施例中,成本代价影响因子包括可调度单元的功耗和可调度单元依据的基础设施的功耗,以及物理位置、电费价格和应用程序类型中至少一种,则与这些成本代价影响因子对应的历史数据包括:目标可调度单元的及其所依赖的基础设施的历史功耗数据,以及目标可调度单元的历史物理位置、目标可调度单元所在区域的历史电费价格以及目标可调度单元上运行的历史程序类型中至少一种数据。Referring to FIG. 2b, for the target schedulable unit, the resource scheduling device 102 can obtain historical data corresponding to the cost impact factor of the target schedulable unit. In this embodiment, the cost impact factor includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit is based, as well as at least one of physical location, electricity price, and application type, which are affected by these costs. The historical data corresponding to the factor includes: historical power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and the target schedulable unit At least one type of data from the type of historical program running on.
进一步,资源调度设备102根据目标可调度单元的及其所依赖的基础设施的历史功耗数据,以及目标可调度单元的历史物理位置、目标可调度单元所在区域的历史电费价格以及目标可调度单元上运行的历史程序类型中至少一种数据进行模型训练,得到目标可调度单元对应的成本代价预测模型。Further, the resource scheduling device 102 is based on the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and the target schedulable unit Model training is performed on at least one type of data in the historical program type running on it, and a cost prediction model corresponding to the target schedulable unit is obtained.
进一步,参见图2b,在资源调度过程中,资源调度设备102可获取目标可调度单元的与成本代价影响因子对应的当前数据。在该实施例中,成本代价影响因子包括可调度单元的功耗和可调度单元依据的基础设施的功耗,以及物理位置、电费价格和应用程序类型中至少一种,则与这些成本代价影响因子对应的当前数据包括:目标可调度单元的及其所依赖的基础设施的当前功耗数据,以及目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中至少一种数据。之后,资源调度设备102将目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中的至少一种数据输入目标可调度单元对应的成本代价预测模型进行成本代价预测,以 得到目标可调度单元的成本代价。Further, referring to FIG. 2b, in the resource scheduling process, the resource scheduling device 102 may obtain the current data corresponding to the cost impact factor of the target schedulable unit. In this embodiment, the cost impact factor includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit is based, as well as at least one of physical location, electricity price, and application type, which are affected by these costs. The current data corresponding to the factor includes: the current power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the target schedulable unit At least one type of data in the type of program that needs to be run. After that, the resource scheduling device 102 combines the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the target schedulable unit At least one data of the program types that need to be run is input into the cost prediction model corresponding to the target schedulable unit to perform cost cost prediction to obtain the cost of the target schedulable unit.
其中,图2b所示的成本代价预测模型主要反映可调度单元所依赖的基础设施的功耗、电费价格、可调度单元上运行的应用程序类型以及可调度单元的物理位置等多个成本代价影响因子对可调度单元的成本代价存在的影响关系。可选地,该影响关系可表达为下述公式(2),但并不限于此。Among them, the cost prediction model shown in Figure 2b mainly reflects the power consumption of the infrastructure on which the schedulable unit depends, the price of electricity, the types of applications running on the schedulable unit, and the physical location of the schedulable unit. The influence of factors on the cost of schedulable units. Optionally, the influence relationship can be expressed as the following formula (2), but it is not limited to this.
Figure PCTCN2019105455-appb-000002
Figure PCTCN2019105455-appb-000002
在公式(2)中,P i表示可调度单元所依赖的第i个基础设施的功耗数据,n表示可调度单元所依赖的基础设施的总个数,n是正整数;β i表示第i个基础设施的功耗数据对应的权重系统,可反应出第i个基础设施的功耗对可调度单元的成本代价的贡献程度,属于第一类权重系统;P 0表示可调度单元的功耗数据;P v表示可调度单元的成本代价;α表示第二类权重系统。其中,第一类权重系数β i反应基础设施功耗这一成本代价影响因子对可调度单元的成本代价的影响,第二类权重系数α反应物理位置、电费价格以及程序类型中至少一种成本代价影响因子对可调度单元的成本代价的影响。 In equation (2), P i represents the power consumption data may depend on the scheduling unit infrastructure i-th, n is the total number of cells showing depends infrastructure schedulable, n being a positive integer; beta] i represents the i The weighting system corresponding to the power consumption data of the infrastructure can reflect the contribution of the power consumption of the i-th infrastructure to the cost of the schedulable unit, which belongs to the first type of weighting system; P 0 represents the power consumption of the schedulable unit Data; P v represents the cost of the schedulable unit; α represents the second type of weight system. Among them, the first type of weight coefficient β i reflects the impact of the cost of infrastructure power consumption on the cost of schedulable units, and the second type of weight coefficient α reflects at least one of the physical location, electricity price, and program type. The impact of cost impact factor on the cost of schedulable units.
基于上述公式(2)表达的多个成本代价影响因子对可调度单元的成本代价的影响关系,仍以目标可调度单元为例,对资源调度设备102预测成本代价的过程进行说明。Based on the influence relationship of multiple cost cost influencing factors on the cost cost of the schedulable unit expressed by the above formula (2), still taking the target schedulable unit as an example, the process of predicting the cost of the resource scheduling device 102 will be described.
针对目标可调度单元,资源调度设备102将目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中的至少一种数据输入目标可调度单元对应的成本代价预测模型。在目标可调度单元对应的成本代价预测模型内部,利用已经训练出的第一类权重系数对目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与目标可调度单元的当前功耗数据相加,以得到目标可调度单元的初始成本代价;以及利用已经训练出的第二类权重系数对初始成本 代价进行修正,得到目标可调度单元的成本代价。For the target schedulable unit, the resource scheduling device 102 calculates the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and Data of at least one of the types of programs to be run on the target schedulable unit is input into the cost prediction model corresponding to the target schedulable unit. In the cost prediction model corresponding to the target schedulable unit, the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the first type of weight coefficients that have been trained, and the weighted sum is the result Add the current power consumption data of the target schedulable unit to obtain the initial cost of the target schedulable unit; and use the second type of weight coefficient that has been trained to correct the initial cost to obtain the cost of the target schedulable unit .
在公式(2)所示影响关系中,利用第二类权重系数对初始成本代价进行修正的方式为:计算第二类权重系数与初始成本代价的乘积,作为目标可调度单元的成本代价。但需要说明的是,利用第二类权重系数对初始成本代价进行修正的方式并不限于公式(2)所示,本申请实施例对此不做限定。In the influence relationship shown in formula (2), the method of using the second type of weight coefficient to modify the initial cost is to calculate the product of the second type of weight coefficient and the initial cost as the cost of the target schedulable unit. However, it should be noted that the method of using the second type of weight coefficient to modify the initial cost is not limited to the formula (2), which is not limited in the embodiment of the present application.
综上可知,在本申请实施例提供的机房系统100中,资源调度设备102将成本代价的预测与资源调度相结合,通过预测可调度单元的成本代价,实现基于成本代价的资源调度,既可以优先调度成本代价较低的资源,又可以降低出现局部热点的概率,有利于降低整体功耗;另外,在成本代价预测过程中,同时考虑可调度单元所依赖的基础设施的功耗在可调度单元的成本代价中的贡献,可使预测出的成本代价更加合理和准确,进而可提高基于成本代价的资源调度的合理性。In summary, in the computer room system 100 provided by the embodiment of the present application, the resource scheduling device 102 combines the prediction of cost and resource scheduling. By predicting the cost of schedulable units, resource scheduling based on cost can be realized. Priority scheduling of resources with lower cost costs can also reduce the probability of local hot spots and help reduce overall power consumption; in addition, in the cost cost prediction process, the power consumption of the infrastructure on which the schedulable unit depends is considered in the schedulable The contribution in the cost of the unit can make the predicted cost more reasonable and accurate, and thus can improve the rationality of resource scheduling based on the cost.
需要说明的是,本申请实施例提供的将成本代价的预测与资源调度相结合的资源调度方案,不仅是用于机房系统,也可以使用其它具有资源调度需求的系统,例如数据中心系统等。It should be noted that the resource scheduling scheme that combines cost prediction and resource scheduling provided by the embodiments of the present application is not only used for computer room systems, but also other systems with resource scheduling requirements, such as data center systems.
图3为本申请示例性实施例提供的一种数据中心系统的结构示意图。如图3所示,该数据中心系统300包括:至少一个机房301和资源调度设备302。数据中心系统300可以单独建设,也可以置于其他建筑之内,还可以是分布在不同地理位置。其中,每个机房301包括至少一台物理设备303。每个机房301包含的物理设备的数量,可以是一台,也可以是多台。FIG. 3 is a schematic structural diagram of a data center system provided by an exemplary embodiment of this application. As shown in FIG. 3, the data center system 300 includes: at least one computer room 301 and a resource scheduling device 302. The data center system 300 can be built separately, or placed in other buildings, or distributed in different geographical locations. Among them, each computer room 301 includes at least one physical device 303. The number of physical devices contained in each computer room 301 may be one or multiple.
本实施例中的机房301与图1所示实施例中的机房类似,关于物理设备303以及机房301的相关描述,可参见图1所示实施例中的描述,在此不再赘述。The computer room 301 in this embodiment is similar to the computer room in the embodiment shown in FIG. 1. For the related description of the physical device 303 and the computer room 301, please refer to the description in the embodiment shown in FIG. 1, which will not be repeated here.
在本实施例中,从资源调度的角度,将每个机房301内的物理设备303划分为若干个可调度单元和若干个基础设施。在本申请实施例中,“若干个”表示不确定的数量,可以表示一个,也可以表示多个。其中,可调度单元是指机房内可对外提供某种服务、功能或资源(例如计算、存储或网络)的资 源设备、模块或单元。举例说明,可调度单元可以是机房内的服务器、打印机或交换机等物理设备,或者可以是服务器上的CPU、GPU、内存、网卡或硬盘等硬件模块,或者也可以是运行于物理设备上的虚拟机、云服务等软件模块或单元。基础设施是指机房内为可调度单元提供基础服务的设施。根据可调度单元的不同,基础设施也会有所区别,对此不做限定。以可调度单元是服务器为例,基础设施可以包括是为服务器提供支撑服务的机柜,为服务器降温的空调设备或水冷设备,为服务器供电的电力设备,等等。In this embodiment, from the perspective of resource scheduling, the physical equipment 303 in each computer room 301 is divided into several schedulable units and several infrastructures. In the embodiments of the present application, "several" means an indeterminate number, which may mean one or more. Among them, the schedulable unit refers to the resource equipment, module or unit that can provide a certain service, function or resource (for example, computing, storage or network) in the computer room. For example, the schedulable unit can be a physical device such as a server, a printer, or a switch in the computer room, or a hardware module such as a CPU, GPU, memory, network card, or hard disk on the server, or a virtual device running on a physical device. Software modules or units such as computers and cloud services. Infrastructure refers to the facilities in the computer room that provide basic services for dispatchable units. According to the different schedulable units, the infrastructure will be different, which is not limited. Taking the server as the schedulable unit as an example, the infrastructure may include cabinets that provide support services for the servers, air-conditioning equipment or water-cooling equipment for cooling the servers, power equipment for supplying power to the servers, and so on.
本实施例与图1所示实施例的区别在于:资源调度设备302不属于某个机房,而是隶属于整个数据中心系统300,需要对各机房301内的可调度单元进行资源调度。虽然资源调度设备302不属于任何机房,但是物理部署上,可以部署在某个机房内,也可以独立部署于各机房之外。The difference between this embodiment and the embodiment shown in FIG. 1 is that the resource scheduling device 302 does not belong to a certain computer room, but belongs to the entire data center system 300, and resource scheduling of schedulable units in each computer room 301 is required. Although the resource scheduling device 302 does not belong to any computer room, in terms of physical deployment, it can be deployed in a certain computer room or independently deployed outside each computer room.
同理,本实施例的资源调度设备302在对可调度单元进行资源调度的过程中,同时考虑可调度单元的成本代价。对资源调度设备302来说,可在每次资源调度过程中,从数据中心系统300包含的可调度单元中确定可调度的至少一个可调度单元。其中,至少一个可调度单元可以是数据中心系统300包含的部分可调度单元,也可以是数据中心系统300包含的全部可调度单元。另外,需要说明的是,至少一个可调度单元可以来自于同一机房301,也可以来自于不同机房301。然后,资源调度设备302获取至少一个可调度单元的与成本代价影响因子对应的当前数据。在本实施例中,所使用的成本代价影响因子包括可调度单元的功耗与可调度单元所依赖的基础设施的功耗,基于此,当前数据包括:至少一个可调度单元的及其所依赖的基础设施的当前功耗数据。接着,资源调度设备302可根据至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测至少一个可调度单元的成本代价。最后,资源调度设备302可根据至少一个可调度单元的成本代价,对至少一个可调度单元进行资源调度。In the same way, the resource scheduling device 302 in this embodiment simultaneously considers the cost of the schedulable unit during resource scheduling of the schedulable unit. For the resource scheduling device 302, at least one schedulable unit can be determined from the schedulable units included in the data center system 300 during each resource scheduling process. The at least one schedulable unit may be part of the schedulable unit included in the data center system 300, or may be all schedulable units included in the data center system 300. In addition, it should be noted that at least one schedulable unit can be from the same computer room 301 or from a different computer room 301. Then, the resource scheduling device 302 obtains the current data corresponding to the cost impact factor of at least one schedulable unit. In this embodiment, the cost impact factor used includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit depends. Based on this, the current data includes: at least one schedulable unit and its dependent Current power consumption data for your infrastructure. Then, the resource scheduling device 302 may predict at least one schedulable unit and the current power consumption data of the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price. The cost of the dispatch unit. Finally, the resource scheduling device 302 may perform resource scheduling on at least one schedulable unit according to the cost of the at least one schedulable unit.
关于资源调度设备302结合可调度单元的成本代价对可调度单元进行资 源调度的详细过程,可参见前述实施例,在此不再赘述。Regarding the detailed process of resource scheduling of the schedulable unit by the resource scheduling device 302 in combination with the cost of the schedulable unit, refer to the foregoing embodiment, which will not be repeated here.
在本申请上述实施例中,可调度单元的成本代价的预测过程与资源调度过程均部署在资源调度设备上实施,但并不限于此。例如,还可以采用分布式部署方式,将可调度单元的成本代价的预测过程与资源调度过程分别部署在不同设备上实施。在下面实施例中,将以机房系统和数据中心系统为例对分布式部署实施的方案进行示例性说明。In the above-mentioned embodiment of the present application, the cost prediction process and the resource scheduling process of the schedulable unit are deployed on the resource scheduling device, but it is not limited to this. For example, a distributed deployment method may also be adopted, and the cost prediction process and the resource scheduling process of the schedulable unit may be separately deployed on different devices for implementation. In the following embodiments, a computer room system and a data center system will be used as examples to illustrate the implementation of distributed deployment.
图4为本申请示例性实施例提供的另一种机房系统的结构示意图。如图4所示,该机房系统400包括:机房,机房是指存放机器设备的物理场所,例如可以是一个房间或厂房等。机房系统400可以单独建设,也可以置于其他建筑之内。进一步,如图4所示,机房系统400还包括:位于机房内的至少一个物理设备401、资源调度设备402以及信息预测设备403。本实施例并不限定物理设备401的数量,可以是一台,也可以是多台。Fig. 4 is a schematic structural diagram of another computer room system provided by an exemplary embodiment of this application. As shown in FIG. 4, the computer room system 400 includes: a computer room. The computer room refers to a physical place where machinery and equipment are stored, for example, a room or a factory building. The computer room system 400 can be constructed separately or placed in other buildings. Further, as shown in FIG. 4, the computer room system 400 further includes: at least one physical device 401, a resource scheduling device 402, and an information prediction device 403 located in the computer room. This embodiment does not limit the number of physical devices 401, and it may be one or multiple.
在本实施例中,并不限定物理设备401的设备形态。如图4所示,物理设备401可以是机房内的IT类设备和为IT类设备降温的制冷设备,例如空调设备。举例说明,至少一个物理设备401可以包括但不限于:机柜设备、服务器设备、计算机设备、打印机、集线器、电源设备、存储设备、网络交换设备以及空调设备等。服务器设备可以是包括但不限于:常规服务器、服务器阵列或云服务器等。电源设备可以是蓄电池设备、干电池设备、或不间断电源(UPS)等。存储设备可以包括但不限于:磁盘、磁盘阵列、硬盘、网络存储设备(NAS)等。In this embodiment, the device form of the physical device 401 is not limited. As shown in FIG. 4, the physical device 401 may be an IT-type device in a computer room and a refrigeration device for cooling the IT-type device, such as an air-conditioning device. For example, the at least one physical device 401 may include, but is not limited to: cabinet equipment, server equipment, computer equipment, printers, hubs, power supply equipment, storage equipment, network switching equipment, air conditioning equipment, and the like. The server device may include, but is not limited to, a conventional server, a server array, or a cloud server. The power supply equipment can be storage battery equipment, dry battery equipment, or uninterruptible power supply (UPS). Storage devices may include, but are not limited to: disks, disk arrays, hard disks, network storage devices (NAS), and so on.
同理,本实施例也不限定资源调度设备402和信息预测设备403的设备形态。资源调度设备402可以是任何具有一定资源调度能力的计算机设备,例如可以是智能手机、笔记本电脑、台式电脑、平板电脑或智能手表等终端设备,也可以是常规服务器、云服务器或服务器阵列等服务器设备。信息预测设备403可以是任何具有成本代价预测能力的计算机设备,例如可以是智能手机、笔记本电脑、台式电脑、平板电脑或智能手表等终端设备,也可以是常规服务器、云服务器或服务器阵列等服务器设备。Similarly, this embodiment does not limit the device form of the resource scheduling device 402 and the information prediction device 403 either. The resource scheduling device 402 can be any computer device with certain resource scheduling capabilities, for example, it can be a terminal device such as a smart phone, a notebook computer, a desktop computer, a tablet computer, or a smart watch, or a server such as a conventional server, a cloud server, or a server array. equipment. The information prediction device 403 can be any computer device with cost prediction capability, for example, it can be a terminal device such as a smart phone, a notebook computer, a desktop computer, a tablet computer, or a smart watch, or a server such as a conventional server, a cloud server, or a server array. equipment.
在本实施例中,从资源调度的角度,将机房内的物理设备401划分为若干个可调度单元和若干个基础设施。在本申请实施例中,“若干个”表示不确定的数量,可以表示一个,也可以表示多个。其中,可调度单元是指机房内可对外提供某种服务、功能或资源(例如计算、存储或网络)的资源设备、模块或单元。举例说明,可调度单元可以是机房内的服务器、打印机或交换机等物理设备,或者可以是服务器上的CPU、GPU、内存、网卡或硬盘等硬件模块,或者也可以是运行于物理设备上的虚拟机、云服务等软件模块或单元。基础设施是指机房内为可调度单元提供基础服务的设施。根据可调度单元的不同,基础设施也会有所区别,对此不做限定。以可调度单元是服务器为例,基础设施可以包括是为服务器提供支撑服务的机柜,为服务器降温的空调设备或水冷设备,为服务器供电的电力设备,等等。In this embodiment, from the perspective of resource scheduling, the physical device 401 in the computer room is divided into several schedulable units and several infrastructures. In the embodiments of the present application, "several" means an indeterminate number, which may mean one or more. Among them, a schedulable unit refers to a resource device, module, or unit that can provide a certain service, function, or resource (for example, computing, storage, or network) to the outside in the computer room. For example, the schedulable unit can be a physical device such as a server, a printer, or a switch in the computer room, or a hardware module such as a CPU, GPU, memory, network card, or hard disk on the server, or a virtual device running on a physical device. Software modules or units such as computers and cloud services. Infrastructure refers to the facilities in the computer room that provide basic services for dispatchable units. According to the different schedulable units, the infrastructure will be different, which is not limited. Taking the server as the schedulable unit as an example, the infrastructure may include cabinets that provide support services for the servers, air-conditioning equipment or water-cooling equipment for cooling the servers, power equipment for supplying power to the servers, and so on.
其中,可调度单元作为机房系统400中的可用资源,通过资源调度设备402可对可调度单元进行合理地资源调度。合理地资源调度,对提高机房系统400的资源利用效率,节约能源,提高资源共享和降低运营成本都具有极大意义。在本实施例中,资源调度是一个将可调度单元分配给资源需求用户的过程。对于资源过载(需求大于系统容量)的场景,或者需求与容量会随着时间的推移而动态变化的场景,资源调度设备402可以动态地重新分配资源,以便更高效地使用可用资源。例如,资源调度设备402可以将某些资源需求用户的应用程序分配到某个或某些可调度单元上运行。又例如,资源调度设备402可以将某个或某些可调度单元所能提供的CPU、存储或网络带宽等资源分配给某些资源需求用户,资源需求用户依据实际情况使用这些资源。本申请实施例中的“应用程序”是指广泛意义上的各类程序、代码或软件。Among them, the schedulable unit is used as an available resource in the computer room system 400, and the schedulable unit can be reasonably scheduled for resources through the resource scheduling device 402. Reasonable resource scheduling is of great significance to improving the resource utilization efficiency of the computer room system 400, saving energy, improving resource sharing, and reducing operating costs. In this embodiment, resource scheduling is a process of allocating schedulable units to users who need resources. For scenarios where resources are overloaded (demand is greater than system capacity), or scenarios where demand and capacity will dynamically change over time, the resource scheduling device 402 can dynamically reallocate resources so as to use available resources more efficiently. For example, the resource scheduling device 402 may allocate the application programs of users with certain resource requirements to certain schedulable units or units to run. For another example, the resource scheduling device 402 may allocate resources such as CPU, storage, or network bandwidth provided by one or some schedulable units to certain resource demand users, and the resource demand users use these resources according to actual conditions. The "application program" in the embodiments of the present application refers to various programs, codes, or software in a broad sense.
在本实施例中,资源调度设备402在对可调度单元进行资源调度的过程中,同时考虑可调度单元的成本代价。基于成本代价的资源调度,既可以优先调度成本代价较低的资源,又可以降低出现局部热点的概率,有利于降低机房系统400的整体功耗。其中,为了使用可调度单元的成本代价,本实施例的机房系统400还包括:具有成本代价预测能力的信息预测设备403,主要 用于预测可调度单元的成本代价并提供给资源调度设备402,以供资源调度设备402根据可调度单元的成本代价对可调度资源进行资源调度。其中,可根据应用需求,灵活定义“可调度单元的成本代价”所代表的物理意义,本实施例对此不做限定。例如,可调度单元的成本代价可以是功耗方面的成本代价,或者是维护方面的成本代价,或者是配置方面的成本代价,等等。在本申请各实施例中,重点以功耗方面的成本代价为例进行说明。In this embodiment, the resource scheduling device 402 simultaneously considers the cost of the schedulable unit during resource scheduling of the schedulable unit. Resource scheduling based on cost can not only prioritize resources with lower cost, but also reduce the probability of local hot spots, which is beneficial to reducing the overall power consumption of the computer room system 400. Among them, in order to use the cost of the schedulable unit, the computer room system 400 of this embodiment further includes: an information prediction device 403 with cost-cost prediction capabilities, which is mainly used to predict the cost of the schedulable unit and provide it to the resource scheduling device 402, For the resource scheduling device 402 to perform resource scheduling on the schedulable resource according to the cost of the schedulable unit. Among them, the physical meaning represented by the "cost of the schedulable unit" can be flexibly defined according to application requirements, which is not limited in this embodiment. For example, the cost of the schedulable unit may be the cost of power consumption, or the cost of maintenance, or the cost of configuration, and so on. In the embodiments of the present application, the cost in terms of power consumption is taken as an example for description.
其中,对成本代价具有影响的直接因素是可调度单元自身的功耗,除此之外,还包括很多其它因素。在本实施例中,重点考虑可调度单元所依赖的基础设施的功耗(简称为基础设施功耗)这一因素,将可调度单元所依赖的基础设施的功耗折算到可调度单元的成本代价中,可提高资源调度的合理性。在本实施例中,将对可调度单元的成本代价具有影响的因素统称为成本代价影响因子。在本实施例中,成本代价影响因子至少包括两个,例如,可调度单元自身的功耗是一种成本代价影响因子,可调度单元所依赖的基础设施功耗是另一种成本代价影响因子。在这些成本代价影响因子中,有一些影响因子的取值是动态变化的,有一些影响因子的取值可能是不变的。无论影响因子的取值是否变化,在本申请实施例中,将成本代价影响因子在当前时刻或当前时段内的取值称为与成本代价影响因子对应的当前数据;将成本代价影响因子在历史时刻或历史时段内的取值称为与成本代价影响因子对应的历史数据。根据成本代价影响因子的不同,当前数据和历史数据包含的数据内容也会有所不同。Among them, the direct factor that has an impact on the cost is the power consumption of the schedulable unit itself, in addition to many other factors. In this embodiment, the main consideration is the power consumption of the infrastructure on which the schedulable unit depends (referred to as infrastructure power consumption), and the power consumption of the infrastructure on which the schedulable unit depends is converted to the cost of the schedulable unit. In the cost, the rationality of resource scheduling can be improved. In this embodiment, the factors that have an impact on the cost of the schedulable unit are collectively referred to as the cost impact factor. In this embodiment, the cost impact factor includes at least two. For example, the power consumption of the schedulable unit itself is a cost impact factor, and the power consumption of the infrastructure on which the schedulable unit depends is another cost impact factor. . Among these cost impact factors, the value of some impact factors changes dynamically, and the value of some impact factors may not change. Regardless of whether the value of the impact factor changes, in the embodiments of the present application, the value of the cost impact factor at the current moment or the current time period is referred to as the current data corresponding to the cost impact factor; the cost impact factor is in the history The value in the time or historical period is called the historical data corresponding to the cost impact factor. According to the different cost impact factors, the data content contained in current data and historical data will also be different.
对资源调度设备402来说,可在每次资源调度过程中,从机房系统400包含的可调度单元中确定可调度的至少一个可调度单元。其中,至少一个可调度单元可以是机房系统400包含的部分可调度单元,也可以是机房系统400包含的全部可调度单元。换句话说,至少一个可调度单元来自于机房系统400包含的若干个可调度单元。可选地,资源调度设备402可通知信息预测设备403,供信息预测设备403预测至少一个可调度单元的成本代价。For the resource scheduling device 402, at least one schedulable unit can be determined from the schedulable units included in the computer room system 400 during each resource scheduling process. Among them, the at least one schedulable unit may be part of the schedulable unit included in the computer room system 400, or may be all schedulable units included in the computer room system 400. In other words, at least one schedulable unit comes from several schedulable units included in the computer room system 400. Optionally, the resource scheduling device 402 may notify the information prediction device 403 for the information prediction device 403 to predict the cost of at least one schedulable unit.
对信息预测设备403来说,可获取至少一个可调度单元的与成本代价影 响因子对应的当前数据。在本实施例中,所使用的成本代价影响因子包括可调度单元的功耗以及可调度单元所依赖的基础设施的功耗,基于此,与这些成本代价影响因子对应的当前数据包括:至少一个可调度单元的及其所依赖的基础设施的当前功耗数据。接着,信息预测设备403可根据至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测至少一个可调度单元的成本代价;将至少一个可调度单元的成本代价提供给资源调度设备402。资源调度设备402接收信息预测设备403提供的至少一个可调度单元的成本代价,根据至少一个可调度单元的成本代价,对至少一个可调度单元进行资源调度。For the information prediction device 403, the current data corresponding to the cost impact factor of at least one schedulable unit can be obtained. In this embodiment, the cost impact factor used includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit depends. Based on this, the current data corresponding to these cost impact factors include: at least one The current power consumption data of the schedulable unit and the infrastructure on which it depends. Then, the information prediction device 403 can predict at least one schedulable unit and the current power consumption data of the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price. The cost of the scheduling unit; the cost of at least one schedulable unit is provided to the resource scheduling device 402. The resource scheduling device 402 receives the cost price of the at least one schedulable unit provided by the information prediction device 403, and performs resource scheduling on the at least one schedulable unit according to the cost price of the at least one schedulable unit.
在本实施例中,并不限定资源调度设备402从机房系统400包含的可调度单元中确定可调度的至少一个可调度单元的方式。例如,以本次资源调度为例,资源调度设备402可根据本次资源调度对应的资源需求,从机房系统400包含的各可调度单元中确定本次可调度的至少一个可调度单元。本次资源调度对应的资源需求可以包含本次资源调度对可调度单元的一些要求,例如类型、位置或能力大小等,满足这些要求的可调度单元即可参与本次资源调度。In this embodiment, the manner in which the resource scheduling device 402 determines at least one schedulable unit from the schedulable units included in the computer room system 400 is not limited. For example, taking this resource scheduling as an example, the resource scheduling device 402 may determine at least one schedulable unit that can be scheduled this time from the schedulable units included in the computer room system 400 according to the resource demand corresponding to this resource scheduling. The resource requirements corresponding to this resource scheduling may include some requirements for the schedulable unit of this resource scheduling, such as type, location, or capacity, etc. The schedulable unit that meets these requirements can participate in this resource scheduling.
进一步,除了考虑本次资源调度对应的资源需求之外,还可以结合机房系统400的设备拓扑关系,从机房系统400包含的可调度单元中确定本次可调度的至少一个可调度单元。机房系统400的设备拓扑关系描述了机房系统400中各物理设备401之间的拓扑关系,通过该拓扑关系可清楚知道各可调度单元与资源调度设备402之间的距离远近。基于此,可根据机房系统400的设备拓扑关系,从机房系统400包含的各可调度单元中,确定与执行本次资源调度的资源调度设备的距离满足设定要求的至少一个可调度单元。这里的距离可以是物理距离,也可以是网络传输距离。本实施例并不对“设定要求”进行限定,可以根据应用需求灵活设定。下面举例说明:Further, in addition to considering the resource requirements corresponding to this resource scheduling, at least one schedulable unit that can be scheduled this time can be determined from the schedulable units included in the computer room system 400 in combination with the device topology relationship of the computer room system 400. The device topology relationship of the computer room system 400 describes the topology relationship between the physical devices 401 in the computer room system 400, and the distance between each schedulable unit and the resource scheduling device 402 can be clearly known through the topology relationship. Based on this, according to the device topology relationship of the computer room system 400, at least one schedulable unit whose distance from the resource scheduling device performing this resource scheduling meets the set requirements can be determined from among the schedulable units included in the computer room system 400. The distance here can be a physical distance or a network transmission distance. This embodiment does not limit the "setting requirements", and can be flexibly set according to application requirements. The following example illustrates:
示例1:设定要求是指位于同一机房内,则可根据机房系统400的设备拓扑关系,从机房系统400包含的各可调度单元中,确定与资源调度设备402 位于同一机房内的至少一个可调度单元。简单来说,就是从机房系统400包含的各可调度单元中,获取满足本次资源调度对应的资源需求的可调度单元。Example 1: The setting requirement refers to being located in the same computer room. According to the device topology relationship of the computer room system 400, from the schedulable units included in the computer room system 400, at least one of the schedulable units located in the same computer room as the resource scheduling device 402 can be determined. Scheduling unit. To put it simply, it is to obtain a schedulable unit that meets the resource demand corresponding to this resource scheduling from each schedulable unit included in the computer room system 400.
示例2:设定要求是指位于同一通道内,则可根据机房系统400的设备拓扑关系,从机房系统400包含的各可调度单元中,确定与资源调度设备402位于同一通道内的至少一个可调度单元。机房系统400包括若干个通道,每个通道包含若干个机柜,每个机柜包含若干个服务器。资源调度设备402部署于某个通道内。简单来说,就是位于资源调度设备402所在通道内的可调度单元中,获取满足本次资源调度对应的资源需求的可调度单元。Example 2: The setting requirement refers to being located in the same channel, then according to the device topology relationship of the computer room system 400, from the schedulable units included in the computer room system 400, at least one of the schedulable units located in the same channel as the resource scheduling device 402 can be determined. Scheduling unit. The computer room system 400 includes a number of channels, each channel includes a number of cabinets, and each cabinet includes a number of servers. The resource scheduling device 402 is deployed in a certain channel. To put it simply, it is to obtain a schedulable unit that meets the resource requirements corresponding to this resource scheduling in the schedulable unit in the channel where the resource scheduling device 402 is located.
示例3:设定要求是指位于同一机柜内,则可根据机房系统400的设备拓扑关系,从机房系统400包含的各可调度单元中,确定与资源调度设备402位于同一机柜内的至少一个可调度单元。机房系统400包括若干个通道,每个通道包含若干个机柜,每个机柜包含若干个服务器。资源调度设备402部署于某个机柜内。简单来说,就是部署于资源调度设备402所在机柜内的可调度单元中,获取满足本次资源调度对应的资源需求的可调度单元。Example 3: The setting requirement refers to being located in the same cabinet, then according to the equipment topology of the computer room system 400, from the schedulable units included in the computer room system 400, at least one of the schedulable units that is located in the same cabinet as the resource scheduling device 402 can be determined. Scheduling unit. The computer room system 400 includes a number of channels, each channel includes a number of cabinets, and each cabinet includes a number of servers. The resource scheduling device 402 is deployed in a certain cabinet. To put it simply, it is deployed in the schedulable unit in the cabinet where the resource scheduling device 402 is located, and obtains the schedulable unit that meets the resource requirements corresponding to this resource scheduling.
示例4:设定要求是指物理距离小于设定距离阈值,则可根据机房系统400的设备拓扑关系,从机房系统400包含的各可调度单元中,确定与资源调度设备402之间的物理距离小于设定距离阈值的至少一个可调度单元。Example 4: The setting requirement means that the physical distance is less than the set distance threshold, and the physical distance to the resource scheduling device 402 can be determined from the schedulable units included in the computer room system 400 according to the device topology of the computer room system 400 At least one schedulable unit less than the set distance threshold.
无论采用何种方式,在确定至少一个可调度单元之后,信息预测设备403可获取至少一个可调度单元的及其所依赖的基础设施的当前功耗数据。可选地,信息预测设备403可以获取机房系统400中各物理设备401的当前功耗数据,从中解析出机房系统400中各可调度单元的当前功耗数据和各基础设施的当前功耗数据;然后,从各可调度单元的当前功耗数据中选择出本次可调度的至少一个可调度单元的当前功耗数据,并结合机房系统400的设备拓扑关系,从各基础设施的当前功耗数据中选择出至少一个可调度单元各自所依赖的基础设施的当前功耗数据。In any manner, after determining at least one schedulable unit, the information prediction device 403 may obtain the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends. Optionally, the information prediction device 403 may obtain the current power consumption data of each physical device 401 in the computer room system 400, and analyze the current power consumption data of each schedulable unit in the computer room system 400 and the current power consumption data of each infrastructure; Then, the current power consumption data of at least one schedulable unit that can be schedulable this time is selected from the current power consumption data of each schedulable unit, and combined with the device topology relationship of the computer room system 400, the current power consumption data of each infrastructure Select the current power consumption data of the infrastructure on which at least one schedulable unit each depends.
在本申请一些实施例中,可以在线下预先训练出各可调度单元对应的成本代价预测模型,每个可调度单元对应的成本代价预测模型可反应该可调度 单元自身对应的成本代价影响因子与成本代价之间存在的影响关系;基于此,在线上可利用至少一个可调度单元各自对应的成本代价预测模型进行成本代价预测,得到至少一个可调度单元的成本代价。In some embodiments of the present application, the cost prediction model corresponding to each schedulable unit can be pre-trained offline, and the cost prediction model corresponding to each schedulable unit can reflect the cost and cost impact factor corresponding to the schedulable unit itself. The relationship between the cost and the cost; based on this, the cost prediction model corresponding to at least one schedulable unit can be used online to predict the cost, and the cost of at least one schedulable unit can be obtained.
其中,图5a所示为信息预测设备403的一种工作原理框图。参见图5a,信息预测设备403可以获取至少一个可调度单元的与成本代价影响因子对应的历史数据,该历史数据包括至少一个可调度单元的及其所依赖的基础设施的历史功耗数据。这里的历史功耗数据包括多个历史时刻或历史时段内的功耗数据;根据至少一个可调度单元的及其所依赖的基础设施的历史功耗数据分别进行模型训练,得到至少一个可调度单元各自对应的成本代价预测模型。进一步,参见图5a,在资源调度过程中,信息预测设备403获取至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,将至少一个可调度单元的及其所依赖的基础设施的当前功耗数据分别输入各自对应的成本代价预测模型进行成本代价预测,以得到至少一个可调度单元的成本代价;进而将至少一个可调度单元的成本代价提供给资源调度设备402,以供资源调度设备402结合至少一个可调度单元的成本代价对至少一个可调度单元进行资源调度。Wherein, FIG. 5a shows a block diagram of a working principle of the information prediction device 403. Referring to FIG. 5a, the information prediction device 403 may obtain historical data corresponding to the cost impact factor of at least one schedulable unit, and the historical data includes historical power consumption data of the at least one schedulable unit and the infrastructure on which it depends. The historical power consumption data here includes power consumption data at multiple historical moments or historical time periods; model training is performed according to the historical power consumption data of at least one schedulable unit and the infrastructure on which it depends to obtain at least one schedulable unit Each corresponding cost price prediction model. Further, referring to FIG. 5a, in the resource scheduling process, the information prediction device 403 obtains the current power consumption data of at least one schedulable unit and the infrastructure on which it depends, and compares the current power consumption data of at least one schedulable unit and the infrastructure on which it depends. The current power consumption data of each is input into respective cost cost prediction models to perform cost cost prediction to obtain the cost cost of at least one schedulable unit; and then the cost cost of at least one schedulable unit is provided to the resource scheduling device 402 for resources The scheduling device 402 performs resource scheduling on at least one schedulable unit in combination with the cost of the at least one schedulable unit.
其中,图5a所示的成本代价预测模型主要反映基础设施功耗这一成本代价影响因子对可调度单元的成本代价存在的影响关系。可选地,该影响关系可表达为前述公式(1),但并不限于此。关于公式(1)的相关描述可参见前述实施例。Among them, the cost cost prediction model shown in FIG. 5a mainly reflects the influence of the cost cost influencing factor of infrastructure power consumption on the cost cost of schedulable units. Optionally, the influence relationship can be expressed as the aforementioned formula (1), but it is not limited to this. For the related description of formula (1), please refer to the foregoing embodiment.
基于上述公式(1)表达的基础设施功耗这一成本代价影响因子对可调度单元的成本代价的影响关系,以目标可调度单元为例,对信息预测设备403预测成本代价的过程进行说明。其中,目标可调度单元是至少一个可调度单元中任一可调度单元。Based on the influence relationship of the cost influence factor of the infrastructure power consumption expressed by the above formula (1) on the cost cost of the schedulable unit, taking the target schedulable unit as an example, the process of predicting the cost of the information prediction device 403 will be described. Wherein, the target schedulable unit is any schedulable unit among at least one schedulable unit.
针对目标可调度单元,信息预测设备403将目标可调度单元的及其所依赖的基础设施的当前功耗数据输入目标可调度单元对应的成本代价预测模型;在目标可调度单元对应的成本代价预测模型内部,利用已经训练出的第 一类权重系数对目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与目标可调度单元的当前功耗数据相加,以得到目标可调度单元的成本代价。其中,第一类权重系数反应基础设施功耗这一成本代价影响因子对可调度单元的成本代价的影响。For the target schedulable unit, the information prediction device 403 inputs the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model corresponding to the target schedulable unit; the cost prediction model corresponding to the target schedulable unit Inside the model, the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the trained weight coefficients of the first type, and the result of the weighted summation is combined with the current power consumption data of the target schedulable unit Add them to get the cost of the target schedulable unit. Among them, the first type of weight coefficient reflects the impact of the cost impact factor of infrastructure power consumption on the cost of schedulable units.
需要说明的是,影响可调度单元的成本代价的因素,即成本代价影响因子除了可调度单元自身的功耗数据以及可调度单元所依赖的基础设施的功耗数据这两种之外,还有很多其它的,例如电费价格、可调度单元上运行的应用程序类型以及可调度单元的物理位置等。其中,不同类型的应用程序具有不同功耗使用模式,在SLA一般会预先要求。It should be noted that the factors that affect the cost of the schedulable unit, that is, the cost impact factor, in addition to the power consumption data of the schedulable unit itself and the power consumption data of the infrastructure on which the schedulable unit depends, there are also Many others, such as the price of electricity, the types of applications running on the dispatchable unit, and the physical location of the dispatchable unit. Among them, different types of applications have different power consumption usage patterns, which are generally required in advance in the SLA.
基于上述,在本申请另一些实施例中,除了考虑可调度单元自身的功耗数据以及可调度单元所依赖的基础设施的功耗数据这两种成本代价影响因子之外,还可以考虑可调度单元的物理位置、可调度单元所在区域的电费价格以及可调度单元上运行的程序类型等其它成本代价影响因子中的至少一种。如图5b所示,为信息预测设备403的另一种工作原理框图。为便于简化图示,在图5b中以目标可调度单元为例对信息预测设备403的工作原理进行说明。Based on the foregoing, in some other embodiments of the present application, in addition to considering the two cost impact factors of the power consumption data of the schedulable unit itself and the power consumption data of the infrastructure on which the schedulable unit depends, the schedulable unit can also be considered. At least one of the physical location of the unit, the price of electricity in the area where the schedulable unit is located, and the type of programs running on the schedulable unit, and other cost impact factors. As shown in FIG. 5b, it is a block diagram of another working principle of the information prediction device 403. To simplify the illustration, the working principle of the information prediction device 403 is described by taking the target schedulable unit as an example in FIG. 5b.
参见图5b,针对目标可调度单元,信息预测设备403可获取目标可调度单元的与成本代价影响因子对应的历史数据。在该实施例中,成本代价影响因子包括可调度单元的功耗和可调度单元依据的基础设施的功耗,以及物理位置、电费价格和应用程序类型中至少一种,则与这些成本代价影响因子对应的历史数据包括:目标可调度单元的及其所依赖的基础设施的历史功耗数据,以及目标可调度单元的历史物理位置、目标可调度单元所在区域的历史电费价格以及目标可调度单元上运行的历史程序类型中至少一种数据。信息预测设备403根据目标可调度单元的及其所依赖的基础设施的历史功耗数据,以及目标可调度单元的历史物理位置、目标可调度单元所在区域的历史电费价格以及目标可调度单元上运行的历史程序类型中至少一种数据进行模型训练,得到目标可调度单元对应的成本代价预测模型。Referring to FIG. 5b, for the target schedulable unit, the information prediction device 403 may obtain historical data corresponding to the cost impact factor of the target schedulable unit. In this embodiment, the cost impact factor includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit is based, as well as at least one of physical location, electricity price, and application type, which are affected by these costs. The historical data corresponding to the factor includes: historical power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and the target schedulable unit At least one type of data from the type of historical program running on. The information prediction device 403 runs on the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and the target schedulable unit. Model training is performed on at least one data of the historical program types to obtain a cost prediction model corresponding to the target schedulable unit.
进一步,参见图5b,在资源调度过程中,信息预测设备403可获取目标 可调度单元的与成本代价影响因子对应的当前数据。在该实施例中,成本代价影响因子包括可调度单元的功耗和可调度单元依据的基础设施的功耗,以及物理位置、电费价格和应用程序类型中至少一种,则与这些成本代价影响因子对应的当前数据包括:目标可调度单元的及其所依赖的基础设施的当前功耗数据,以及目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中至少一种数据。之后,信息预测设备403将目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中的至少一种数据输入目标可调度单元对应的成本代价预测模型进行成本代价预测,以得到目标可调度单元的成本代价;进而将至少一个可调度单元的成本代价提供给资源调度设备402,以供资源调度设备402结合至少一个可调度单元的成本代价对至少一个可调度单元进行资源调度。Further, referring to Fig. 5b, in the resource scheduling process, the information prediction device 403 can obtain the current data corresponding to the cost impact factor of the target schedulable unit. In this embodiment, the cost impact factor includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit is based, as well as at least one of physical location, electricity price, and application type, which are affected by these costs. The current data corresponding to the factor includes: the current power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the target schedulable unit At least one type of data in the type of program that needs to be run. After that, the information prediction device 403 combines the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the target schedulable unit At least one of the types of programs that need to be run is input into the cost cost prediction model corresponding to the target schedulable unit to perform cost cost prediction to obtain the cost cost of the target schedulable unit; and then provide the cost cost of at least one schedulable unit to The resource scheduling device 402 is used for the resource scheduling device 402 to perform resource scheduling on at least one schedulable unit in combination with the cost of the at least one schedulable unit.
其中,图5b所示的成本代价预测模型主要反映基础设施功耗、电费价格、应用程序类型以及可调度单元的物理位置等多个成本代价影响因子对可调度单元的成本代价存在的影响关系。可选地,该影响关系可表达为下述公式(2),但并不限于此。关于公式(2)的相关描述可参见前述实施例。Among them, the cost prediction model shown in Figure 5b mainly reflects the influence of multiple cost influencing factors such as infrastructure power consumption, electricity price, application type, and physical location of schedulable units on the cost of schedulable units. Optionally, the influence relationship can be expressed as the following formula (2), but it is not limited to this. For the related description of formula (2), please refer to the foregoing embodiment.
基于上述公式(2)表达的多个成本代价影响因子对可调度单元的成本代价的影响关系,仍以目标可调度单元为例,对信息预测设备403预测成本代价的过程进行说明。Based on the influence relationship of multiple cost cost influencing factors on the cost cost of the schedulable unit expressed by the above formula (2), still taking the target schedulable unit as an example, the process of predicting the cost cost of the information prediction device 403 will be described.
针对目标可调度单元,信息预测设备403将目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中的至少一种数据输入目标可调度单元对应的成本代价预测模型。在目标可调度单元对应的成本代价预测模型内部,利用已经训练出的第一类权重系数对目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与目标可调度单元的当前功耗数据相加,以得到目标可调 度单元的初始成本代价;以及利用已经训练出的第二类权重系数对初始成本代价进行修正,得到目标可调度单元的成本代价。For the target schedulable unit, the information prediction device 403 will calculate the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and Data of at least one of the types of programs that need to be run on the target schedulable unit is input into the cost prediction model corresponding to the target schedulable unit. In the cost prediction model corresponding to the target schedulable unit, the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the first type of weight coefficients that have been trained, and the weighted sum is the result Add the current power consumption data of the target schedulable unit to obtain the initial cost of the target schedulable unit; and use the second type of weight coefficient that has been trained to correct the initial cost to obtain the cost of the target schedulable unit .
在公式(2)所示影响关系中,利用第二类权重系数对初始成本代价进行修正的方式为:计算第二类权重系数与初始成本代价的乘积,作为目标可调度单元的成本代价。但需要说明的是,利用第二类权重系数对初始成本代价进行修正的方式并不限于公式(2)所示,本申请实施例对此不做限定。In the influence relationship shown in formula (2), the method of using the second type of weight coefficient to modify the initial cost is to calculate the product of the second type of weight coefficient and the initial cost as the cost of the target schedulable unit. However, it should be noted that the method of using the second type of weight coefficient to modify the initial cost is not limited to the formula (2), which is not limited in the embodiment of the present application.
图6a为本申请示例性实施例提供的另一种数据中心系统的结构示意图。如图6a所示,该数据中心系统600包括:至少一个机房601、资源调度设备602以及信息预测设备604。数据中心系统600可以单独建设,也可以置于其他建筑之内,还可以是分布在不同地理位置。其中,每个机房601包括至少一台物理设备603。每个机房601包含的物理设备的数量,可以是一台,也可以是多台。Fig. 6a is a schematic structural diagram of another data center system provided by an exemplary embodiment of this application. As shown in FIG. 6a, the data center system 600 includes: at least one computer room 601, a resource scheduling device 602, and an information prediction device 604. The data center system 600 can be built separately, or placed in other buildings, or distributed in different geographical locations. Among them, each computer room 601 includes at least one physical device 603. The number of physical devices contained in each computer room 601 may be one or multiple.
本实施例中的机房601与图4所示实施例中的机房类似,关于物理设备603以及机房601的相关描述,可参见图4所示实施例中的描述,在此不再赘述。The computer room 601 in this embodiment is similar to the computer room in the embodiment shown in FIG. 4. For related descriptions of the physical equipment 603 and the computer room 601, please refer to the description in the embodiment shown in FIG. 4, which will not be repeated here.
在本实施例中,从资源调度的角度,将每个机房601内的物理设备603划分为若干个可调度单元和若干个基础设施。在本申请实施例中,“若干个”表示不确定的数量,可以表示一个,也可以表示多个。其中,可调度单元是指机房内可对外提供某种服务、功能或资源(例如计算、存储或网络)的资源设备、模块或单元。举例说明,可调度单元可以是机房内的服务器、打印机或交换机等物理设备,或者可以是服务器上的CPU、GPU、内存、网卡或硬盘等硬件模块,或者也可以是运行于物理设备上的虚拟机、云服务等软件模块或单元。基础设施是指机房内为可调度单元提供基础服务的设施。根据可调度单元的不同,基础设施也会有所区别,对此不做限定。以可调度单元是服务器为例,基础设施可以包括是为服务器提供支撑服务的机柜,为服务器降温的空调设备或水冷设备,为服务器供电的电力设备,等等。In this embodiment, from the perspective of resource scheduling, the physical equipment 603 in each computer room 601 is divided into several schedulable units and several infrastructures. In the embodiments of the present application, "several" means an indeterminate number, which may mean one or more. Among them, a schedulable unit refers to a resource device, module, or unit that can provide a certain service, function, or resource (for example, computing, storage, or network) to the outside in the computer room. For example, the schedulable unit can be a physical device such as a server, a printer, or a switch in the computer room, or a hardware module such as a CPU, GPU, memory, network card, or hard disk on the server, or a virtual device running on a physical device. Software modules or units such as computers and cloud services. Infrastructure refers to the facilities in the computer room that provide basic services for dispatchable units. According to the different schedulable units, the infrastructure will be different, which is not limited. Taking the server as the schedulable unit as an example, the infrastructure may include cabinets that provide support services for the servers, air-conditioning equipment or water-cooling equipment for cooling the servers, power equipment for supplying power to the servers, and so on.
本实施例与图4所示实施例的区别在于:信息预测设备604和资源调度 设备602不属于某个机房,而是隶属于整个数据中心系统600,分别需要对各机房601内的可调度单元进行成本代价预测和资源调度。虽然信息预测设备604和资源调度设备602不属于任何机房,但是物理部署上,可以部署在某个机房内,也可以独立部署于各机房之外。The difference between this embodiment and the embodiment shown in FIG. 4 is that the information prediction device 604 and the resource scheduling device 602 do not belong to a certain computer room, but belong to the entire data center system 600, and the schedulable units in each computer room 601 Perform cost prediction and resource scheduling. Although the information prediction device 604 and the resource scheduling device 602 do not belong to any computer room, in terms of physical deployment, they can be deployed in a certain computer room or independently deployed outside each computer room.
同理,本实施例的信息预测设备604和资源调度设备602可相互配合,在对可调度单元进行资源调度的过程中,同时考虑可调度单元的成本代价。对资源调度设备602来说,可在每次资源调度过程中,从数据中心系统600包含的可调度单元中确定可调度的至少一个可调度单元。其中,至少一个可调度单元可以是数据中心系统600包含的部分可调度单元,也可以是数据中心系统600包含的全部可调度单元。另外,需要说明的是,至少一个可调度单元可以来自于同一机房601,也可以来自于不同机房601。然后,信息预测设备604获取至少一个可调度单元的与成本代价影响因子对应的当前数据。在本实施例中,所使用的成本代价影响因子包括可调度单元的功耗与可调度单元所依赖的基础设施的功耗,基于此,与这些成本代价影响因子对应的当前数据包括:至少一个可调度单元的及其所依赖的基础设施的当前功耗数据。接着,信息预测设备604可根据至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测至少一个可调度单元的成本代价;进而将至少一个可调度单元的成本代价提供给资源调度设备602。最后,资源调度设备602可根据至少一个可调度单元的成本代价,对至少一个可调度单元进行资源调度。In the same way, the information prediction device 604 and the resource scheduling device 602 of this embodiment can cooperate with each other, and the cost of the schedulable unit is considered in the process of resource scheduling for the schedulable unit. For the resource scheduling device 602, at least one schedulable unit can be determined from the schedulable units included in the data center system 600 during each resource scheduling process. Among them, the at least one schedulable unit may be part of the schedulable unit included in the data center system 600, or may be all schedulable units included in the data center system 600. In addition, it should be noted that at least one schedulable unit may come from the same computer room 601 or different computer rooms 601. Then, the information prediction device 604 obtains the current data corresponding to the cost impact factor of at least one schedulable unit. In this embodiment, the cost impact factor used includes the power consumption of the schedulable unit and the power consumption of the infrastructure on which the schedulable unit depends. Based on this, the current data corresponding to these cost impact factors include: at least one The current power consumption data of the schedulable unit and the infrastructure on which it depends. Then, the information prediction device 604 can predict at least one schedulable unit and the current power consumption data of the infrastructure on which it depends, and the pre-trained cost impact factor and the impact relationship between the cost price. The cost of the scheduling unit; and then the cost of at least one schedulable unit is provided to the resource scheduling device 602. Finally, the resource scheduling device 602 may perform resource scheduling on at least one schedulable unit according to the cost of the at least one schedulable unit.
关于信息预测设备604预测可调度单元的成本代价的详细过程,以及资源调度设备602结合可调度单元的成本代价对可调度单元进行资源调度的详细过程,可参见前述实施例,在此不再赘述。For the detailed process of the information prediction device 604 predicting the cost of the schedulable unit, and the detailed process of the resource scheduling device 602 combining the cost of the schedulable unit to perform resource scheduling on the schedulable unit, please refer to the foregoing embodiment, which will not be repeated here. .
综上可知,在本申请实施例提供的机房系统或数据中心系统中,资源调度设备与信息预测设备相互配合,使得成本代价的预测与资源调度相结合,通过预测可调度单元的成本代价,实现基于成本代价的资源调度,既可以优先调度成本代价较低的资源,又可以降低出现局部热点的概率,有利于降低 整体功耗;另外,在成本代价预测过程中,同时考虑可调度单元所依赖的基础设施的功耗在可调度单元的成本代价中的贡献,可使预测出的成本代价更加合理和准确,进而可提高基于成本代价的资源调度的合理性。In summary, in the computer room system or data center system provided by the embodiments of the present application, the resource scheduling equipment and the information prediction equipment cooperate with each other, so that the prediction of the cost and the resource scheduling are combined, and the cost of the schedulable unit is predicted to achieve Resource scheduling based on cost cost can prioritize resources with lower cost cost and reduce the probability of local hot spots, which is conducive to reducing overall power consumption. In addition, in the cost cost prediction process, the schedulable unit depends on at the same time. The contribution of the power consumption of the infrastructure to the cost of the schedulable unit can make the predicted cost more reasonable and accurate, and thus can improve the rationality of resource scheduling based on the cost.
在上述各机房系统实施例或数据中心系统实施例中,在得到至少一个可调度单元的成本代价之后,均可根据至少一个可调度单元的成本代价,对至少一个可调度单元进行资源调度。In each of the foregoing computer room system embodiments or data center system embodiments, after the cost of at least one schedulable unit is obtained, resource scheduling can be performed on at least one schedulable unit based on the cost of at least one schedulable unit.
在一种可选实施例中,可以单独依据至少一个可调度单元的成本代价,对至少一个可调度单元进行资源调度。其中,单独依据至少一个可调度单元的成本代价,对至少一个可调度单元进行资源调度的方式包括但不限于以下几种:In an optional embodiment, resource scheduling may be performed on at least one schedulable unit based solely on the cost of the at least one schedulable unit. Wherein, based on the cost of at least one schedulable unit alone, resource scheduling methods for at least one schedulable unit include but are not limited to the following:
方式1:根据所至少一个可调度单元的成本代价,按照成本代价由小到大的顺序对至少一个可调度单元进行资源调度。在方式1中,可按照成本代价由小到大的顺序依次对至少一个可调度单元进行资源调度。Manner 1: According to the cost of all at least one schedulable unit, resource scheduling is performed on the at least one schedulable unit in the descending order of the cost. In method 1, resource scheduling can be performed on at least one schedulable unit in the order of ascending cost.
方式2:根据至少一个可调度单元的成本代价,优先对成本代价最小的可调度单元进行资源调度。在方式2中,每次资源调度中,允许对成本代价最小的可调度单元进行资源调度。Manner 2: According to the cost of at least one schedulable unit, the schedulable unit with the smallest cost is prioritized for resource scheduling. In method 2, in each resource scheduling, resource scheduling is allowed for the schedulable unit with the least cost.
方式3:根据所至少一个可调度单元的成本代价,优先对成本代价小于设定阈值的可调度单元进行资源调度。在方式3中,设定一个阈值,每次资源调度,允许对成本代价低于该阈值的可调度单元进行资源调度。Manner 3: According to the cost price of all at least one schedulable unit, priority is given to resource scheduling for the schedulable unit whose cost cost is less than the set threshold. In mode 3, a threshold is set, and each resource scheduling allows resource scheduling of schedulable units whose cost is lower than the threshold.
在另一种可选实施例中,可以根据本次资源调度对应的业务需求,结合至少一个可调度单元的成本代价,对至少一个可调度单元进行资源调度。在本申请实施例中,并不对业务需求进行限定。举例说明,本次资源调度对应的业务需求包括业务性能要求,基于此,可以根据本次资源调度对应的业务性能要求,从至少一个可调度单元中选择满足该业务性能要求的可调度单元;再根据满足该业务性能要求的可调度单元的成本代价,对满足该业务性能要求的可调度单元进行资源调度。需要说明的是,将业务性能要求与成本代价相结合进行资源调度的方式,并不限于这里列举出的一种。其中,满足该业 务性能要求的可调度单元可以包括:性能等级大于设定等级的可调度单元(例如服务器),也可以包括批次较新的可调度单元(例如服务器),等等。其中,批次较新可理解为投入使用的时间相对较短。In another optional embodiment, resource scheduling may be performed on at least one schedulable unit according to the service requirements corresponding to this resource scheduling and the cost of at least one schedulable unit. In the embodiments of the present application, the business requirements are not limited. For example, the service requirements corresponding to this resource scheduling include service performance requirements. Based on this, a schedulable unit that meets the service performance requirements can be selected from at least one schedulable unit according to the service performance requirements corresponding to this resource scheduling; According to the cost of the schedulable unit that meets the service performance requirement, resource scheduling is performed on the schedulable unit that meets the service performance requirement. It should be noted that the method of combining service performance requirements and cost for resource scheduling is not limited to the one listed here. Among them, the schedulable unit that meets the service performance requirement may include: a schedulable unit (such as a server) with a performance level greater than a set level, or may include a newer batch of schedulable units (such as a server), and so on. Among them, the newer batch can be understood as the relatively short time to put into use.
除上述机房系统和数据中心系统之外,本申请实施例提供的将功耗代价成本代价的预测与资源调度相结合的资源调度方案还可应用于集群系统或边缘计算系统等其它具有资源调度需求的系统中。In addition to the above-mentioned computer room system and data center system, the resource scheduling solution that combines power consumption cost cost prediction and resource scheduling provided by the embodiments of the present application can also be applied to cluster systems or edge computing systems that have other resource scheduling requirements. In the system.
图6b为本申请示例性实施例提供的一种边缘计算系统的结构示意图。如图6b所示,该边缘计算系统包括:若干个边缘计算节点、若干个基础设施和服务器。在本实施例中,“若干个”表示不确定的数量,可以表示一个,也可以表示多个。Fig. 6b is a schematic structural diagram of an edge computing system provided by an exemplary embodiment of this application. As shown in Figure 6b, the edge computing system includes several edge computing nodes, several infrastructures and servers. In this embodiment, "several" means an indeterminate number, and it may mean one or more.
其中,边缘计算节点是指在网络逻辑上处于边缘的节点设备,通常包括硬件模块、硬件模块的驱动程序、操作系统以及相关应用程序等。硬件模块包括但不限于:CPU、网卡以及存储器等。若干个基础设施为若干个边缘计算节点提供基础服务。边缘计算节点的设备形态不同,为边缘计算节点提供基础服务的基础设施也会有所不同。例如,边缘计算节点可以是家庭中的个人计算机,则可为该个人计算机提供基础服务的基础设施包括但不限于:家用电源、路由器等。又例如,边缘计算节点是路灯,则可为该路灯提供基础服务的基础设施包括但不限于:太阳能板、太阳能蓄电池或城市供电系统等。又例如,边缘计算节点是交通信号灯等,则可为交通信号灯提供基础服务的基础设施包括但不限于:电源系统(例如太阳能电池、蓄电池或城市供电系统)、控制器等。又例如,边缘计算节点是电子眼或摄像头,则可为电子眼或摄像头提供基础服务的基础设施包括但不限于:电源系统(例如太阳能电池、蓄电池或城市供电系统)、信号传输线路、安装杆、控制系统等。Among them, an edge computing node refers to a node device at the edge of the network logic, and usually includes hardware modules, drivers for hardware modules, operating systems, and related application programs. Hardware modules include but are not limited to: CPU, network card, memory, etc. Several infrastructures provide basic services for several edge computing nodes. The equipment forms of edge computing nodes are different, and the infrastructure that provides basic services for edge computing nodes will also be different. For example, the edge computing node may be a personal computer in the home, and the infrastructure that can provide basic services for the personal computer includes, but is not limited to: household power supplies, routers, and so on. For another example, if the edge computing node is a street lamp, the infrastructure that can provide basic services for the street lamp includes, but is not limited to: solar panels, solar batteries, or urban power supply systems. For another example, if the edge computing node is a traffic signal light, etc., the infrastructure that can provide basic services for the traffic signal light includes, but is not limited to: power supply systems (such as solar cells, storage batteries, or urban power supply systems), controllers, and so on. For another example, if the edge computing node is an electronic eye or camera, the infrastructure that can provide basic services for the electronic eye or camera includes, but is not limited to: power supply system (such as solar cells, batteries or urban power supply systems), signal transmission lines, installation poles, control System and so on.
其中,服务器为一台或多台,可部署在云端或客户机房中。服务器与边缘计算节点通过网络进行通信,服务器可响应边缘计算节点的请求,为边缘计算节点提供相关云服务。另外,服务器也可对边缘计算节点进行管控和运 维等。除此之外,边缘计算节点作为可调度单元,服务器还可对其进行资源调度。服务器对边缘计算节点进行资源调度,可将一些应用程序、数据资料与服务等运算,由网络中心节点(例如服务器),移往网络逻辑上的边缘计算节点来处理,从而实现一种分散式运算的架构。Among them, there are one or more servers, which can be deployed in the cloud or in the client room. The server communicates with the edge computing node through the network, and the server can respond to the request of the edge computing node and provide related cloud services for the edge computing node. In addition, the server can also control, operate and maintain edge computing nodes. In addition, the edge computing node is a schedulable unit, and the server can also perform resource scheduling on it. The server performs resource scheduling on the edge computing node, and can perform operations such as some applications, data and services from the network center node (such as the server) to the edge computing node on the network logic for processing, thereby realizing a distributed operation Architecture.
在本实施例中,服务器结合边缘计算节点的成本代价,对边缘计算节点进行资源调度。基于成本代价的资源调度,既可以优先调度成本代价较低的边缘计算节点,又可以降低出现局部热点的概率,有利于提高边缘计算系统的整体资源利用率,降低边缘计算系统的整体功耗。其中,可根据应用需求,灵活定义“边缘计算节点的成本代价”所代表的物理意义,本实施例对此不做限定。例如,边缘计算节点的成本代价可以是功耗方面的成本代价,或者是维护方面的成本代价,或者是配置方面的成本代价,等等。在本实施例中,重点以功耗方面的成本代价为例进行说明。In this embodiment, the server performs resource scheduling on the edge computing node in combination with the cost of the edge computing node. Cost-based resource scheduling can prioritize low-cost edge computing nodes and reduce the probability of local hot spots, which is beneficial to improve the overall resource utilization of the edge computing system and reduce the overall power consumption of the edge computing system. Among them, the physical meaning represented by the "cost of edge computing node" can be flexibly defined according to application requirements, which is not limited in this embodiment. For example, the cost of edge computing nodes may be the cost of power consumption, or the cost of maintenance, or the cost of configuration, and so on. In this embodiment, the description is focused on the cost of power consumption as an example.
其中,对成本代价具有影响的直接因素是边缘计算节点自身的功耗,除此之外,还包括很多其它因素。在本实施例中,重点考虑边缘计算节点所依赖的基础设施的功耗这一因素,将边缘计算节点所依赖的基础设施的功耗折算到边缘计算节点的成本代价中,可提高资源调度的合理性。在本实施例中,将对边缘计算节点的成本代价具有影响的因素统称为成本代价影响因子。在本实施例中,成本代价影响因子至少包括两个,例如,边缘计算节点自身的功耗是一种成本代价影响因子,边缘计算节点所依赖的基础设施功耗是另一种成本代价影响因子。在这些成本代价影响因子中,有一些影响因子的取值是动态变化的,有一些影响因子的取值可能是不变的。无论影响因子的取值是否变化,在本申请实施例中,将成本代价影响因子在当前时刻或当前时段内的取值称为与成本代价影响因子对应的当前数据;将成本代价影响因子在历史时刻或历史时段内的取值称为与成本代价影响因子对应的历史数据。根据成本代价影响因子的不同,当前数据和历史数据包含的数据内容也会有所不同。Among them, the direct factor that has an impact on the cost is the power consumption of the edge computing node itself. In addition, it also includes many other factors. In this embodiment, the power consumption of the infrastructure on which the edge computing node depends is mainly considered, and the power consumption of the infrastructure on which the edge computing node depends is converted to the cost of the edge computing node, which can improve resource scheduling. rationality. In this embodiment, the factors that have an impact on the cost of the edge computing node are collectively referred to as the cost impact factor. In this embodiment, the cost impact factor includes at least two. For example, the power consumption of the edge computing node itself is a cost impact factor, and the power consumption of the infrastructure on which the edge computing node depends is another cost impact factor. . Among these cost impact factors, the value of some impact factors changes dynamically, and the value of some impact factors may not change. Regardless of whether the value of the impact factor changes, in the embodiments of the present application, the value of the cost impact factor at the current moment or the current time period is referred to as the current data corresponding to the cost impact factor; the cost impact factor is in the history The value in the time or historical period is called the historical data corresponding to the cost impact factor. According to the different cost impact factors, the data content contained in current data and historical data will also be different.
对服务器来说,可在每次资源调度过程中,从边缘计算系统包含的若干 个边缘计算节点中确定可调度的至少一个边缘计算节点。其中,至少一个边缘计算节点可以是边缘计算系统包含的部分边缘计算节点,也可以是边缘计算系统包含的全部边缘计算节点。然后,服务器获取至少一个边缘计算节点的与成本代价影响因子对应的当前数据,该当前数据包括至少一个边缘计算节点及其所依赖的基础设施的当前功耗数据。接着,服务器根据至少一个边缘计算节点及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测至少一个边缘计算节点的成本代价。最后,根据至少一个边缘计算节点的成本代价,对至少一个边缘计算节点进行资源调度。For the server, in each resource scheduling process, at least one schedulable edge computing node can be determined from a number of edge computing nodes included in the edge computing system. The at least one edge computing node may be part of the edge computing node included in the edge computing system, or may be all edge computing nodes included in the edge computing system. Then, the server obtains the current data corresponding to the cost impact factor of the at least one edge computing node, and the current data includes the current power consumption data of the at least one edge computing node and the infrastructure on which it depends. Then, the server predicts the cost of at least one edge computing node based on the current power consumption data of at least one edge computing node and the infrastructure on which it depends, and the pre-trained cost impact factor and the impact relationship between the cost price. . Finally, according to the cost of at least one edge computing node, resource scheduling is performed on at least one edge computing node.
在本实施例中,并不限定服务器从边缘计算系统包含的边缘计算节点中确定可调度的至少一个边缘计算节点的方式。例如,以本次资源调度为例,服务器可根据本次资源调度对应的资源需求,从边缘计算系统包含的各边缘计算节点中确定本次可调度的至少一个边缘计算节点。本次资源调度对应的资源需求包含本次资源调度对边缘计算节点的一些要求,例如类型、位置或能力大小等,满足这些要求的边缘计算节点即可参与本次资源调度。例如,服务器可以根据本次资源调度对应的资源需求,选择本次资源调度所需类型的边缘计算节点,或者选择位于本次资源调度所要求的地理区域内的边缘计算节点,或者选择满足本次资源调度所要求的计算能力的边缘计算节点,作为本次可调度的边缘计算节点。当然,本次资源调度对应的资源需求也可以包括两种或两种以上的条件,服务器也可以结合两种或两种以上的条件,来确定本次可调度的边缘计算节点。In this embodiment, the manner in which the server determines at least one schedulable edge computing node from the edge computing nodes included in the edge computing system is not limited. For example, taking this resource scheduling as an example, the server may determine at least one schedulable edge computing node from each edge computing node included in the edge computing system according to resource requirements corresponding to this resource scheduling. The resource requirements corresponding to this resource scheduling include some requirements for edge computing nodes of this resource scheduling, such as type, location, or capacity, and edge computing nodes that meet these requirements can participate in this resource scheduling. For example, the server can select an edge computing node of the type required for this resource scheduling according to the resource requirements corresponding to this resource scheduling, or select an edge computing node located in the geographical area required by this resource scheduling, or choose to meet this time. The edge computing node with computing capability required for resource scheduling is used as the schedulable edge computing node this time. Of course, the resource requirements corresponding to this resource scheduling can also include two or more conditions, and the server can also combine two or more conditions to determine the edge computing nodes that can be scheduled this time.
进一步,除了考虑本次资源调度对应的资源需求之外,还可以结合边缘计算系统的设备拓扑关系,从边缘计算系统包含的边缘计算节点中确定本次可调度的至少一个边缘计算节点。例如,可根据边缘计算系统的设备拓扑关系,从边缘计算系统包含的各边缘计算节点中,确定与服务器之间的物理距离或网络传输距离小于设定距离阈值的至少一个边缘计算节点。Further, in addition to considering the resource requirements corresponding to this resource scheduling, the device topology of the edge computing system can also be combined to determine at least one edge computing node that can be scheduled this time from the edge computing nodes included in the edge computing system. For example, according to the device topology of the edge computing system, from among the edge computing nodes included in the edge computing system, at least one edge computing node whose physical distance to the server or network transmission distance is less than a set distance threshold can be determined.
本实施例与前述实施例的区别主要在于:可调度单元具体为边缘计算节 点。关于服务器预测边缘计算节点的成本代价的详细过程,以及服务器结合边缘计算节点的成本代价对边缘计算节点进行资源调度的详细过程,可参见前述实施例,在此不再赘述。The main difference between this embodiment and the previous embodiment is that the schedulable unit is specifically an edge computing node. For the detailed process of the server predicting the cost of the edge computing node, and the detailed process of the server performing resource scheduling on the edge computing node in combination with the cost of the edge computing node, refer to the foregoing embodiment, and will not be repeated here.
在本实施例的边缘计算系统中,服务器将成本代价的预测与资源调度相结合,通过预测边缘计算节点的成本代价,实现基于成本代价的资源调度,既可以优先调度成本代价较低的资源,又可以降低出现局部热点的概率,有利于降低整体功耗;另外,在成本代价预测过程中,同时考虑边缘计算节点所依赖的基础设施的功耗在边缘计算节点的成本代价中的贡献,可使预测出的成本代价更加合理和准确,进而可提高基于成本代价的资源调度的合理性。In the edge computing system of this embodiment, the server combines cost cost prediction with resource scheduling, and by predicting the cost cost of edge computing nodes, it realizes cost cost-based resource scheduling, which can prioritize resources with lower costs. It can also reduce the probability of local hot spots and help reduce overall power consumption. In addition, in the cost prediction process, the power consumption of the infrastructure on which the edge computing node depends is considered at the same time as the contribution to the cost of the edge computing node. The predicted cost is more reasonable and accurate, and the rationality of resource scheduling based on cost can be improved.
除上述机房系统、数据中心系统以及边缘计算系统实施例之外,本申请还提供了一些方法实施例,下面对这些方法实施例进行描述。In addition to the foregoing computer room system, data center system, and edge computing system embodiments, this application also provides some method embodiments, which are described below.
图7a为本申请示例性实施例提供的一种资源调度方法的流程示意图。该方法是从资源调度设备的角度进行的描述。如图7a所示,该方法包括:Fig. 7a is a schematic flowchart of a resource scheduling method provided by an exemplary embodiment of this application. This method is described from the perspective of resource scheduling equipment. As shown in Figure 7a, the method includes:
71a、获取至少一个可调度单元的与成本代价影响因子对应的当前数据,该当前数据包括至少一个可调度单元的及其所依赖的基础设施的当前功耗数据。71a. Acquire current data corresponding to the cost impact factor of at least one schedulable unit, where the current data includes current power consumption data of the at least one schedulable unit and the infrastructure on which it depends.
72a、根据至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测至少一个可调度单元的成本代价。72a. Predict the cost of at least one schedulable unit based on the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, and the pre-trained impact factor of the cost cost and the impact relationship between the cost cost. .
73a、根据至少一个可调度单元的成本代价,对至少一个可调度单元进行资源调度。73a. Perform resource scheduling on at least one schedulable unit according to the cost of the at least one schedulable unit.
在一可选实施例中,可以在线下预先训练出各可调度单元对应的成本代价预测模型,每个可调度单元对应的成本代价预测模型可反应可调度单元自身对应的成本代价影响因子与成本代价之间存在的影响关系;基于此,在线上,利用至少一个可调度单元各自对应的成本代价预测模型进行成本代价预测,得到至少一个可调度单元的成本代价。基于此,步骤72a的一种实施方式包括:将至少一个可调度单元的及其所依赖的基础设施的当前功耗数据分 别输入各自对应的成本代价预测模型进行成本代价预测,以得到至少一个可调度单元的成本代价;其中,每个可调度单元对应的成本代价预测模型反应自身对应的成本代价影响因子与成本代价之间存在的影响关系。In an optional embodiment, the cost prediction model corresponding to each schedulable unit can be pre-trained offline, and the cost cost prediction model corresponding to each schedulable unit can reflect the cost impact factor and cost corresponding to the schedulable unit itself. Based on this, the cost prediction model corresponding to at least one schedulable unit is used to predict the cost on the line to obtain the cost of at least one schedulable unit. Based on this, an implementation manner of step 72a includes: inputting the current power consumption data of at least one schedulable unit and the infrastructure on which it depends, respectively, into their respective cost prediction models for cost cost prediction, so as to obtain at least one schedulable unit. The cost of the scheduling unit; wherein, the cost prediction model corresponding to each schedulable unit reflects the influence relationship existing between the corresponding cost cost influencing factor and the cost cost.
进一步可选地,在使用成本代价预测模型之前,还包括模型训练过程。其中,如图7b所示,一种模型训练方法的流程包括以下步骤:Further optionally, before using the cost prediction model, a model training process is also included. Among them, as shown in Figure 7b, the process of a model training method includes the following steps:
71b、获取至少一个可调度单元的与成本代价影响因子对应的历史数据,该历史数据包括所述至少一个可调度单元的及其所依赖的基础设施的历史功耗数据。71b. Acquire historical data corresponding to the cost impact factor of at least one schedulable unit, where the historical data includes historical power consumption data of the at least one schedulable unit and the infrastructure on which it depends.
72b、根据至少一个可调度单元的及其所依赖的基础设施的历史功耗数据分别进行模型训练,得到至少一个可调度单元各自对应的成本代价预测模型。72b. Perform model training according to the historical power consumption data of the at least one schedulable unit and the infrastructure on which it depends, respectively, to obtain a cost prediction model corresponding to each of the at least one schedulable unit.
在本申请各实施例中,并不对模型训练过程进行限定,例如可以采用有监督的模型训练方式,也可以采用无监督的模型训练方式。同理,本申请实施例也不限定模型训练采用的算法,例如可以采用线性回归、罗辑回归或各种深度学习算法等。In the embodiments of the present application, the model training process is not limited. For example, a supervised model training method can be used, or an unsupervised model training method can also be used. Similarly, the embodiments of the present application do not limit the algorithm used for model training, for example, linear regression, logistic regression, or various deep learning algorithms can be used.
在一可选实施例中,成本代价预测模型主要反映基础设施功耗这一成本代价影响因子对可调度单元的成本代价存在的影响关系。可选地,该影响关系可表达为前述公式(1),但并不限于此。关于公式(1)的相关描述可参见前述实施例,在此不再赘述。In an optional embodiment, the cost cost prediction model mainly reflects the influence relationship of the cost cost influencing factor of the power consumption of the infrastructure on the cost cost of the schedulable unit. Optionally, the influence relationship can be expressed as the aforementioned formula (1), but it is not limited to this. For the relevant description of the formula (1), please refer to the foregoing embodiment, which will not be repeated here.
基于上述公式(1)表达的可调度单元所依赖的基础设施的功耗这一成本代价影响因子对可调度单元的成本代价的影响关系,以至少一个可调度单元中任一可调度单元为例,对步骤72a的实施过程进行说明。为便于描述,将任一可调度单元称为目标可调度单元。其中,步骤72a的一种实施过程包括:针对目标可调度单元,将目标可调度单元的及其所依赖的基础设施的当前功耗数据输入目标可调度单元对应的成本代价预测模型;在目标可调度单元对应的成本代价预测模型内部,利用已经训练出的第一类权重系数对目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与目标可调度单元的当前功耗数据相加,以得到目标可调度单元的成本代 价。Based on the above formula (1), the influence relationship of the cost impact factor of the power consumption of the infrastructure on which the schedulable unit depends on the cost of the schedulable unit, take any schedulable unit in at least one schedulable unit as an example , The implementation process of step 72a is described. For ease of description, any schedulable unit is referred to as a target schedulable unit. Among them, an implementation process of step 72a includes: for the target schedulable unit, input the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model corresponding to the target schedulable unit; Within the cost prediction model corresponding to the scheduling unit, the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is performed using the first-type weight coefficients that have been trained, and the result of the weighted sum is combined with the target achievable value. The current power consumption data of the scheduling unit is added to obtain the cost of the target schedulable unit.
需要说明的是,影响可调度单元的成本代价的因素,即成本代价影响因子除了可调度单元自身的功耗以及可调度单元所依赖的基础设施的功耗这两种之外,还有很多其它的,例如电费价格、可调度单元上运行的应用程序类型以及可调度单元的物理位置等。其中,不同类型的应用程序具有不同功耗使用模式,在SLA一般会预先要求。It should be noted that the factors that affect the cost of the schedulable unit, that is, the cost impact factor, in addition to the power consumption of the schedulable unit itself and the power consumption of the infrastructure on which the schedulable unit depends, there are many other factors. , Such as the price of electricity, the types of applications running on the schedulable unit, and the physical location of the schedulable unit. Among them, different types of applications have different power consumption usage patterns, which are generally required in advance in the SLA.
基于上述,在本申请另一些实施例中,除了考虑可调度单元自身的功耗以及基础设施功耗这两种成本代价影响因子之外,还可以考虑可调度单元的物理位置、可调度单元所在区域的电费价格以及可调度单元上运行的程序类型等其它成本代价影响因子中的至少一种。基于此,以目标可调度单元为例,在步骤71b中,除了获取目标可调度单元的及其所依赖的基础设施的历史功耗数据之外,还可以获取目标可调度单元的历史物理位置、目标可调度单元所在区域的历史电费价格以及目标可调度单元上运行的历史程序类型中至少一种数据;相应地,在步骤72b中,可根据目标可调度单元的及其所依赖的基础设施的历史功耗数据,以及目标可调度单元的历史物理位置、目标可调度单元所在区域的历史电费价格以及目标可调度单元上运行的历史程序类型中至少一种数据进行模型训练,得到目标可调度单元对应的成本代价预测模型。Based on the foregoing, in other embodiments of the present application, in addition to considering the two cost impact factors of the power consumption of the schedulable unit itself and the power consumption of the infrastructure, the physical location of the schedulable unit and the location of the schedulable unit can also be considered. At least one of the regional electricity price and the type of program running on the schedulable unit, and other cost impact factors. Based on this, taking the target schedulable unit as an example, in step 71b, in addition to obtaining the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, the historical physical location, At least one of the historical electricity price of the area where the target schedulable unit is located and the historical program type running on the target schedulable unit; accordingly, in step 72b, the target schedulable unit and the infrastructure on which it depends Historical power consumption data, and at least one of the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and the historical program type running on the target schedulable unit for model training to obtain the target schedulable unit Corresponding cost prediction model.
进一步,在步骤71a中,除了获取目标可调度单元的及其所依赖的基础设施的当前功耗数据之外,还可以获取目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中至少一种数据;相应地,在步骤72a中,可将目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中的至少一种数据输入目标可调度单元对应的成本代价预测模型进行成本代价预测,以得到目标可调度单元的成本代价。Further, in step 71a, in addition to obtaining the current power consumption data of the target schedulable unit and the infrastructure on which it depends, the current physical location of the target schedulable unit and the current electricity bill of the area where the target schedulable unit is located can also be obtained. At least one of the price and the type of program that needs to be run on the target schedulable unit; correspondingly, in step 72a, the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the target schedulable unit At least one of the current physical location of the unit, the current price of electricity in the area where the target schedulable unit is located, and the type of program that needs to be run on the target schedulable unit are input into the cost and price prediction model corresponding to the target schedulable unit to predict the cost and price. Get the cost of the target schedulable unit.
上述成本代价预测模型主要反映可调度单元所依赖的基础设施的功耗、 电费价格、可调度单元上运行的应用程序类型以及可调度单元的物理位置等多个成本代价影响因子对可调度单元的成本代价存在的影响关系。可选地,该影响关系可表达为前述公式(2),但并不限于此。关于公式(2)的相关描述可参见前述实施例,在此不再赘述。The above cost prediction model mainly reflects the power consumption of the infrastructure on which the schedulable unit depends, the price of electricity, the types of applications running on the schedulable unit, and the physical location of the schedulable unit. The impact of cost. Optionally, the influence relationship can be expressed as the aforementioned formula (2), but it is not limited to this. For the related description of formula (2), please refer to the foregoing embodiment, which will not be repeated here.
基于上述公式(2)表达的多个成本代价影响因子对可调度单元的成本代价的影响关系,仍以目标可调度单元为例,对步骤72a的实施过程进行说明。其中,步骤72a的一种实施过程包括:针对目标可调度单元,将目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中的至少一种数据输入目标可调度单元对应的成本代价预测模型。在目标可调度单元对应的成本代价预测模型内部,利用已经训练出的第一类权重系数对目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与目标可调度单元的当前功耗数据相加,以得到目标可调度单元的初始成本代价;以及利用已经训练出的第二类权重系数对初始成本代价进行修正,得到目标可调度单元的成本代价。Based on the influence relationship of multiple cost cost influencing factors on the cost cost of the schedulable unit expressed by the above formula (2), the target schedulable unit is still taken as an example to illustrate the implementation process of step 72a. Among them, an implementation process of step 72a includes: for the target schedulable unit, the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, and the target schedulable unit At least one of the current price of electricity in the area and the type of program that needs to be run on the target schedulable unit is input into the cost prediction model corresponding to the target schedulable unit. In the cost prediction model corresponding to the target schedulable unit, the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the first type of weight coefficients that have been trained, and the weighted sum is the result Add the current power consumption data of the target schedulable unit to obtain the initial cost of the target schedulable unit; and use the second type of weight coefficient that has been trained to correct the initial cost to obtain the cost of the target schedulable unit .
在公式(2)所示影响关系中,利用第二类权重系数对初始成本代价进行修正的方式为:计算第二类权重系数与初始成本代价的乘积,作为目标可调度单元的成本代价。但需要说明的是,利用第二类权重系数对初始成本代价进行修正的方式并不限于公式(2)所示,本申请实施例对此不做限定。In the influence relationship shown in formula (2), the method of using the second type of weight coefficient to modify the initial cost is to calculate the product of the second type of weight coefficient and the initial cost as the cost of the target schedulable unit. However, it should be noted that the method of using the second type of weight coefficient to modify the initial cost is not limited to the formula (2), which is not limited in the embodiment of the present application.
在一可选实施例中,在步骤71a之前,还包括:根据本次资源调度对应的资源需求,从机房系统、数据中心系统或边缘计算系统包含的各可调度单元中确定本次可调度的至少一个可调度单元。In an optional embodiment, before step 71a, it further includes: determining the schedulable unit from the schedulable units included in the computer room system, data center system, or edge computing system according to the resource demand corresponding to this resource scheduling. At least one schedulable unit.
进一步可选地,根据本次资源调度对应的资源需求,从机房系统、数据中心系统或边缘计算系统包含的各可调度单元中确定本次可调度的至少一个可调度单元,包括:根据机房系统、数据中心系统或边缘计算系统的设备拓扑关系,从所述机房系统、数据中心系统或边缘计算系统包含的各可调度单元中,确定与执行本次资源调度的资源调度设备的距离满足设定要求的至少 一个可调度单元。Further optionally, determining at least one schedulable unit that can be schedulable this time from the schedulable units included in the computer room system, data center system, or edge computing system according to the resource requirements corresponding to this resource scheduling includes: according to the computer room system , The device topology relationship of the data center system or edge computing system, from the schedulable units included in the computer room system, data center system or edge computing system, determine that the distance to the resource scheduling device performing this resource scheduling satisfies the setting At least one schedulable unit required.
其中,确定与执行本次资源调度的资源调度设备的距离满足设定要求的至少一个可调度单元的实施方式包括以下任一种:Wherein, an implementation manner for determining at least one schedulable unit whose distance from the resource scheduling device performing this resource scheduling meets the set requirement includes any one of the following:
根据机房系统或数据中心系统的设备拓扑关系,从所述机房系统或数据中心系统包含的各可调度单元中,确定与所述资源调度设备位于同一机房内的至少一个可调度单元;According to the device topology relationship of the computer room system or the data center system, determine at least one schedulable unit located in the same computer room as the resource scheduling device from among the schedulable units included in the computer room system or the data center system;
根据所述机房系统或数据中心系统的设备拓扑关系,从所述机房系统或数据中心系统包含的各可调度单元中,确定与所述资源调度设备位于同一通道内的至少一个可调度单元;According to the device topology relationship of the computer room system or the data center system, determine at least one schedulable unit that is located in the same channel as the resource scheduling device from each schedulable unit included in the computer room system or the data center system;
根据所述机房系统或数据中心系统的设备拓扑关系,从所述机房系统或数据中心系统包含的各可调度单元中,确定与所述资源调度设备位于同一机柜内的至少一个可调度单元;Determine at least one schedulable unit located in the same cabinet as the resource scheduling device from each schedulable unit included in the computer room system or the data center system according to the device topology relationship of the computer room system or the data center system;
根据所述机房系统或数据中心系统的设备拓扑关系,从所述机房系统或数据中心系统包含的各可调度单元中,确定与所述资源调度设备之间的物理距离小于设定距离阈值的至少一个可调度单元。According to the device topology relationship of the computer room system or the data center system, from each schedulable unit included in the computer room system or the data center system, it is determined that the physical distance to the resource scheduling device is less than at least a set distance threshold. A schedulable unit.
在一可选实施例中,对机房系统或数据中心系统来说,其包含的可调度单元为机房系统或数据中心系统中的服务器,但并不限于此。相应地,对于边缘计算系统来说,其包含的可调度单元为边缘计算系统中的边缘计算节点,但并不限于此。In an optional embodiment, for the computer room system or the data center system, the schedulable unit included in the computer room system or the data center system is a server in the computer room system or the data center system, but it is not limited to this. Correspondingly, for the edge computing system, the schedulable unit included in the edge computing system is the edge computing node in the edge computing system, but it is not limited to this.
在一可选实施例中,在步骤73a中,可以单独依据至少一个可调度单元的功耗代价成本代价,对至少一个可调度单元进行资源调度。其中,对至少一个可调度单元进行资源调度的实施方式包括但不限于下述几种:In an optional embodiment, in step 73a, resource scheduling may be performed on at least one schedulable unit based on the power consumption cost of the at least one schedulable unit alone. Among them, the implementation manners for resource scheduling on at least one schedulable unit include but are not limited to the following:
根据至少一个可调度单元的成本代价,按照成本代价由小到大的顺序对至少一个可调度单元进行资源调度;或者According to the cost of at least one schedulable unit, perform resource scheduling on at least one schedulable unit in the descending order of cost; or
根据至少一个可调度单元的成本代价,优先对成本代价最小的可调度单元进行资源调度;或者According to the cost of at least one schedulable unit, the schedulable unit with the lowest cost is prioritized for resource scheduling; or
根据至少一个可调度单元的成本代价,优先对成本代价小于设定阈值的 可调度单元进行资源调度。Based on the cost of at least one schedulable unit, priority is given to resource scheduling for schedulable units whose cost cost is less than the set threshold.
在另一可选实施例中,在步骤73a中,可以根据本次资源调度对应的业务需求,结合至少一个可调度单元的成本代价,对至少一个可调度单元进行资源调度。例如,本次资源调度对应的业务需求包括业务性能要求,基于此,可以根据本次资源调度对应的业务性能要求,从至少一个可调度单元中选择满足该业务性能要求的可调度单元;再根据满足该业务性能要求的可调度单元的成本代价,对满足该业务性能要求的可调度单元进行资源调度。需要说明的是,将业务性能要求与成本代价相结合进行资源调度的方式,并不限于这里列举出的一种。其中,满足该业务性能要求的可调度单元可以包括:性能等级大于设定等级的可调度单元(例如服务器),也可以包括批次较新的可调度单元(例如服务器),等等。其中,批次较新可理解为投入使用的时间相对较短。In another optional embodiment, in step 73a, resource scheduling may be performed on at least one schedulable unit according to the service requirements corresponding to this resource scheduling and the cost of at least one schedulable unit. For example, the service requirements corresponding to this resource scheduling include service performance requirements. Based on this, a schedulable unit that meets the service performance requirements can be selected from at least one schedulable unit according to the service performance requirements corresponding to this resource scheduling; To meet the cost of the schedulable unit that meets the service performance requirement, resource scheduling is performed on the schedulable unit that meets the service performance requirement. It should be noted that the method of combining service performance requirements and cost for resource scheduling is not limited to the one listed here. Among them, the schedulable unit that meets the service performance requirement may include: a schedulable unit (such as a server) with a performance level greater than a set level, or may include a newer batch of schedulable units (such as a server), and so on. Among them, the newer batch can be understood as the relatively short time to put into use.
关于本实施例中各步骤的详细描述,可参见前述系统实施例,在此不再赘述。For a detailed description of each step in this embodiment, please refer to the foregoing system embodiment, which will not be repeated here.
综上可知,在本实施例中,将成本代价的预测与资源调度相结合,通过预测可调度单元的成本代价,实现基于成本代价的资源调度,既可以优先调度成本代价较低的资源,又可以降低出现局部热点的概率,有利于降低整体功耗;另外,在成本代价预测过程中,同时考虑可调度单元所依赖的基础设施的功耗在可调度单元的成本代价中的贡献,可使预测出的成本代价更加合理和准确,进而可提高基于成本代价的资源调度的合理性。In summary, in this embodiment, the cost cost prediction is combined with resource scheduling. By predicting the cost cost of schedulable units, cost cost-based resource scheduling can be realized, which can prioritize resources with lower cost costs and also It can reduce the probability of local hot spots and help reduce overall power consumption; in addition, in the cost prediction process, the power consumption of the infrastructure on which the schedulable unit depends on the schedulable unit is considered to contribute to the cost of the schedulable unit. The predicted cost is more reasonable and accurate, and the rationality of resource scheduling based on cost can be improved.
图7c为本申请示例性实施例提供的一种信息预测方法的流程示意图。该方法是从信息预测设备或图6b中服务器的角度进行的描述。如图7c所示,该方法包括:FIG. 7c is a schematic flowchart of an information prediction method provided by an exemplary embodiment of this application. This method is described from the perspective of the information prediction device or the server in Figure 6b. As shown in Figure 7c, the method includes:
71c、获取目标可调度单元的与成本代价影响因子对应的当前数据,该当前数据包括目标可调度单元的及其所依赖的基础设施的当前功耗数据。71c. Acquire current data corresponding to the cost impact factor of the target schedulable unit, where the current data includes current power consumption data of the target schedulable unit and the infrastructure on which it depends.
72c、根据目标可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测目 标可调度单元的成本代价。72c. Predict the cost of the target schedulable unit based on the current power consumption data of the target schedulable unit and the infrastructure on which it depends, and the pre-trained impact factor of the cost cost and the impact relationship between the cost cost.
在一可选实施例中,可以在线下预先训练出目标可调度单元对应的成本代价预测模型,目标可调度单元对应的成本代价预测模型可反应目标可调度单元对应的成本代价影响因子与成本代价之间存在的影响关系。基于此,步骤72c的一种实施方式包括:将目标可调度单元的及其所依赖的基础设施的当前功耗数据输入成本代价预测模型进行成本代价预测,以得到目标可调度单元的成本代价。In an optional embodiment, the cost prediction model corresponding to the target schedulable unit can be pre-trained offline, and the cost cost prediction model corresponding to the target schedulable unit can reflect the cost impact factor and cost cost corresponding to the target schedulable unit. The influence relationship exists between. Based on this, an implementation manner of step 72c includes: inputting the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model to perform cost cost prediction, so as to obtain the cost cost of the target schedulable unit.
进一步可选地,在使用成本代价预测模型之前,还包括模型训练过程。一种模型训练方法的流程包括:获取目标可调度单元的与成本代价影响因子对应的历史数据,历史数据包括目标可调度单元的及其所依赖的基础设施的历史功耗数据;根据目标可调度单元的及其所依赖的基础设施的历史功耗数据进行模型训练,得到成本代价预测模型。Further optionally, before using the cost prediction model, a model training process is also included. The process of a model training method includes: obtaining historical data of the target schedulable unit corresponding to the cost impact factor, the historical data including historical power consumption data of the target schedulable unit and the infrastructure on which it depends; schedulable according to the target Model training is performed on the historical power consumption data of the unit and the infrastructure on which it depends, and the cost prediction model is obtained.
在一可选实施例中,成本代价预测模型主要反映目标可调度单元所依赖的基础设施的功耗这一成本代价影响因子对目标可调度单元的成本代价存在的影响关系。可选地,该影响关系可表达为前述公式(1),但并不限于此。关于公式(1)的相关描述可参见前述实施例,在此不再赘述。In an optional embodiment, the cost cost prediction model mainly reflects the influence relationship of the cost cost influence factor of the power consumption of the infrastructure on which the target schedulable unit depends on the cost cost of the target schedulable unit. Optionally, the influence relationship can be expressed as the aforementioned formula (1), but it is not limited to this. For the relevant description of the formula (1), please refer to the foregoing embodiment, which will not be repeated here.
基于上述公式(1)表达的影响关系,步骤72c的一种实施方式包括:将目标可调度单元的及其所依赖的基础设施的当前功耗数据输入成本代价预测模型;在成本代价预测模型内部,利用已经训练出的第一类权重系数对目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与目标可调度单元的当前功耗数据相加,以得到目标可调度单元的成本代价。在本实施例中,第一类权重系数反应目标可调度单元所依赖的基础设施的功耗这一成本代价影响因子对目标可调度单元的成本代价的影响。Based on the influence relationship expressed by the above formula (1), an implementation of step 72c includes: inputting the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model; inside the cost prediction model , Use the first-type weight coefficients that have been trained to perform a weighted summation of the current power consumption data of the infrastructure on which the target schedulable unit depends, and add the result of the weighted summation to the current power consumption data of the target schedulable unit , In order to get the cost of the target schedulable unit. In this embodiment, the first type of weight coefficient reflects the impact of the cost impact factor of the power consumption of the infrastructure on which the target schedulable unit depends on the cost of the target schedulable unit.
需要说明的是,影响目标可调度单元的成本代价的因素,即成本代价影响因子除了目标可调度单元自身的功耗数据以及目标可调度单元所依赖的基础设施的功耗数据这两种之外,还有很多其它的,例如电费价格、目标可调度单元上运行的应用程序类型以及目标可调度单元的物理位置等。其中,不 同类型的应用程序具有不同功耗使用模式,在SLA一般会预先要求。It should be noted that the factors that affect the cost of the target schedulable unit, that is, the cost impact factor is in addition to the power consumption data of the target schedulable unit itself and the power consumption data of the infrastructure on which the target schedulable unit depends. , There are many others, such as the price of electricity, the type of application running on the target schedulable unit, and the physical location of the target schedulable unit. Among them, different types of applications have different power consumption usage patterns, which are generally required in advance in the SLA.
基于上述,在本申请另一些实施例中,除了考虑目标可调度单元自身的功耗以及目标可调度单元所依赖的基础设施的功耗这两种成本代价影响因子之外,还可以考虑目标可调度单元的物理位置、可目标调度单元所在区域的电费价格以及目标可调度单元上运行的程序类型等其它成本代价影响因子中的至少一种。基于此,在模型训练过程中,除了获取目标可调度单元的及其所依赖的基础设施的历史功耗数据之外,还可以获取目标可调度单元的历史物理位置、目标可调度单元所在区域的历史电费价格以及目标可调度单元上运行的历史程序类型中至少一种数据;相应地,可根据目标可调度单元的及其所依赖的基础设施的历史功耗数据,以及目标可调度单元的历史物理位置、目标可调度单元所在区域的历史电费价格以及目标可调度单元上运行的历史程序类型中至少一种数据进行模型训练,得到目标可调度单元对应的成本代价预测模型。Based on the foregoing, in other embodiments of the present application, in addition to considering the two cost impact factors of the target schedulable unit's own power consumption and the power consumption of the infrastructure on which the target schedulable unit depends, the target schedulable unit can also be considered. At least one of the physical location of the dispatching unit, the price of electricity in the area where the target dispatchable unit is located, and the type of program running on the target dispatchable unit, and other cost influencing factors. Based on this, in the model training process, in addition to obtaining the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, the historical physical location of the target schedulable unit and the area where the target schedulable unit is located can also be obtained. At least one of the historical electricity price and the historical program type running on the target schedulable unit; accordingly, it can be based on the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, and the history of the target schedulable unit Model training is performed on at least one of the physical location, the historical electricity price price of the area where the target schedulable unit is located, and the historical program type running on the target schedulable unit to obtain a cost prediction model corresponding to the target schedulable unit.
进一步,在步骤71c中,除了获取目标可调度单元的及其所依赖的基础设施的当前功耗数据之外,还可以获取目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中至少一种数据;相应地,在步骤72c中,可将目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中的至少一种数据输入目标可调度单元对应的成本代价预测模型进行成本代价预测,以得到目标可调度单元的成本代价。Further, in step 71c, in addition to obtaining the current power consumption data of the target schedulable unit and the infrastructure on which it depends, the current physical location of the target schedulable unit and the current electricity bill of the area where the target schedulable unit is located can also be obtained. At least one of the price and the type of program that needs to be run on the target schedulable unit; accordingly, in step 72c, the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the target schedulable unit At least one of the current physical location of the unit, the current price of electricity in the area where the target schedulable unit is located, and the type of program that needs to be run on the target schedulable unit are input into the cost and price prediction model corresponding to the target schedulable unit to predict the cost and price. Get the cost of the target schedulable unit.
上述成本代价预测模型主要反映目标可调度单元所依赖的基础设施的功耗、电费价格、目标可调度单元上运行的应用程序类型以及目标可调度单元的物理位置等多个成本代价影响因子对目标可调度单元的成本代价存在的影响关系。可选地,该影响关系可表达为前述公式(2),但并不限于此。关于公式(2)的相关描述可参见前述实施例,在此不再赘述。The above cost prediction model mainly reflects the power consumption of the infrastructure on which the target schedulable unit depends, the price of electricity, the type of application running on the target schedulable unit, and the physical location of the target schedulable unit. The impact of the cost of schedulable units. Optionally, the influence relationship can be expressed as the aforementioned formula (2), but it is not limited to this. For the related description of formula (2), please refer to the foregoing embodiment, which will not be repeated here.
基于上述公式(2)表达的多个成本代价影响因子对目标可调度单元的成 本代价的影响关系,步骤72c的一种实施过程包括:将目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中的至少一种数据输入目标可调度单元对应的成本代价预测模型。在目标可调度单元对应的成本代价预测模型内部,利用已经训练出的第一类权重系数对目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与目标可调度单元的当前功耗数据相加,以得到目标可调度单元的初始成本代价;以及利用已经训练出的第二类权重系数对初始成本代价进行修正,得到目标可调度单元的成本代价。其中,第一类权重系数反应目标可调度单元所依赖的基础设施的功耗这一成本代价影响因子对目标可调度单元的成本代价的影响;第二类权重系数反应可调度单元的物理位置、电费价格以及程序类型中至少一种成本代价影响因子对目标可调度单元的成本代价的影响。Based on the influence of multiple cost-cost influencing factors on the cost-cost of the target schedulable unit expressed by the above formula (2), an implementation process of step 72c includes: the current status of the target schedulable unit and the infrastructure on which it depends Power consumption data, together with at least one of the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the type of program that needs to be run on the target schedulable unit, enter the cost of the target schedulable unit Forecast model. In the cost prediction model corresponding to the target schedulable unit, the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the first type of weight coefficients that have been trained, and the weighted sum is the result Add the current power consumption data of the target schedulable unit to obtain the initial cost of the target schedulable unit; and use the second type of weight coefficient that has been trained to correct the initial cost to obtain the cost of the target schedulable unit . Among them, the weight coefficient of the first type reflects the impact of the cost impact factor of the power consumption of the infrastructure on which the target schedulable unit depends on the cost of the target schedulable unit; the weight coefficient of the second type reflects the physical location of the schedulable unit, The impact of at least one cost factor in the price of electricity and the program type on the cost of the target schedulable unit.
在公式(2)所示影响关系中,利用第二类权重系数对初始成本代价进行修正的方式为:计算第二类权重系数与初始成本代价的乘积,作为目标可调度单元的成本代价。但需要说明的是,利用第二类权重系数对初始成本代价进行修正的方式并不限于公式(2)所示,本申请实施例对此不做限定。In the influence relationship shown in formula (2), the method of using the second type of weight coefficient to modify the initial cost is to calculate the product of the second type of weight coefficient and the initial cost as the cost of the target schedulable unit. However, it should be noted that the method of using the second type of weight coefficient to modify the initial cost is not limited to the formula (2), which is not limited in the embodiment of the present application.
在一可选实施例中,步骤71c的一种实施方式包括:从机房系统或数据中心系统中的各可调度单元的当前功耗数据中,确定所述目标可调度单元的当前功耗数据;根据所述机房系统或数据中心系统的设备拓扑关系,从所述机房系统或数据中心系统的各基础设施的当前功耗数据中,筛选出所述目标可调度单元所依赖的基础设施的当前功耗数据。In an optional embodiment, an implementation manner of step 71c includes: determining the current power consumption data of the target schedulable unit from the current power consumption data of each schedulable unit in the computer room system or the data center system; According to the device topology relationship of the computer room system or data center system, from the current power consumption data of each infrastructure of the computer room system or data center system, the current power of the infrastructure on which the target schedulable unit depends is filtered out. Consumption data.
在本申请实施例中,并不限定目标可调度单元的实现形式,可以是任何可对外提供某种服务、功能或能力的设备、模块或单元。例如,目标可调度单元为机房系统或数据中心系统中的服务器,服务器上的CPU、GPU、内存或网卡等。In the embodiments of the present application, the implementation form of the target schedulable unit is not limited, and it may be any device, module, or unit that can provide a certain service, function, or capability to the outside. For example, the target schedulable unit is a server in a computer room system or a data center system, and a CPU, GPU, memory, or network card on the server.
综上可知,在本实施例中,将成本代价的预测与资源调度相结合,通过 预测可调度单元的成本代价,实现基于成本代价的资源调度,既可以优先调度成本代价较低的资源,又可以降低出现局部热点的概率,有利于降低整体功耗;另外,在成本代价预测过程中,同时考虑可调度单元所依赖的基础设施的功耗在可调度单元的成本代价中的贡献,可使预测出的成本代价更加合理和准确,进而可提高基于成本代价的资源调度的合理性。In summary, in this embodiment, the cost cost prediction is combined with resource scheduling. By predicting the cost cost of schedulable units, cost cost-based resource scheduling can be realized, which can prioritize resources with lower cost costs and also It can reduce the probability of local hot spots and help reduce overall power consumption; in addition, in the cost prediction process, the power consumption of the infrastructure on which the schedulable unit depends on the schedulable unit is considered to contribute to the cost of the schedulable unit. The predicted cost is more reasonable and accurate, and the rationality of resource scheduling based on cost can be improved.
需要说明的是,上述实施例所提供方法的各步骤的执行主体均可以是同一设备,或者,该方法也由不同设备作为执行主体。比如,步骤71a至步骤73a的执行主体可以为设备A;又比如,步骤71a和72a的执行主体可以为信息预测设备,步骤73a的执行主体可以为资源调度设备;等等。It should be noted that the execution subject of each step of the method provided in the foregoing embodiment may be the same device, or different devices may also be the execution subject of the method. For example, the execution subject of steps 71a to 73a may be device A; for another example, the execution subject of steps 71a and 72a may be an information prediction device, and the execution subject of step 73a may be a resource scheduling device; and so on.
另外,在上述实施例及附图中的描述的一些流程中,包含了按照特定顺序出现的多个操作,但是应该清楚了解,这些操作可以不按照其在本文中出现的顺序来执行或并行执行,操作的序号如71a、72a等,仅仅是用于区分开各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或并行执行。需要说明的是,本文中的“第一”、“第二”等描述,是用于区分不同的消息、设备、模块等,不代表先后顺序,也不限定“第一”和“第二”是不同的类型。In addition, in some of the processes described in the above embodiments and drawings, multiple operations appearing in a specific order are included, but it should be clearly understood that these operations may be performed out of the order in which they appear in this document or performed in parallel. The sequence numbers of operations, such as 71a, 72a, etc., are only used to distinguish different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel. It should be noted that the descriptions of "first" and "second" in this article are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, nor do they limit the "first" and "second" Are different types.
图8为本申请示例性实施例提供的一种资源调度设备的结构示意图。如图8所示,该资源调度设备包括:存储器81和处理器82。FIG. 8 is a schematic structural diagram of a resource scheduling device provided by an exemplary embodiment of this application. As shown in FIG. 8, the resource scheduling device includes: a memory 81 and a processor 82.
存储器81,用于存储计算机程序,并可被配置为存储其它各种数据以支持在资源调度设备上的操作。这些数据的示例包括用于在资源调度设备上操作的任何应用程序或方法的指令,消息,图片,视频等。The memory 81 is used to store computer programs, and can be configured to store various other data to support operations on the resource scheduling device. Examples of these data include instructions, messages, pictures, videos, etc. for any application or method operating on the resource scheduling device.
处理器82,与存储器81耦合,用于执行存储器81中的计算机程序,以用于:获取至少一个可调度单元的与成本代价影响因子对应的当前数据,当前数据包括至少一个可调度单元的及其所依赖的基础设施的当前功耗数据;根据至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测至少一个可调度单元的成本代价;根据至少一个可调度单元的成本代价,对至少一 个可调度单元进行资源调度。其中,可根据应用需求,灵活定义“可调度单元的成本代价”所代表的物理意义,本实施例对此不做限定。例如,可调度单元的成本代价可以是功耗方面的成本代价,或者是维护方面的成本代价,或者是配置方面的成本代价,等等。在本实施例中,重点以功耗方面的成本代价为例进行说明。The processor 82 is coupled with the memory 81, and is configured to execute a computer program in the memory 81 to obtain current data corresponding to the cost impact factor of at least one schedulable unit, and the current data includes the data of at least one schedulable unit and The current power consumption data of the infrastructure on which it depends; the current power consumption data of at least one schedulable unit and the infrastructure on which it depends, and the pre-trained cost impact factor and the impact relationship between the cost price , Predict the cost of at least one schedulable unit; according to the cost of the at least one schedulable unit, perform resource scheduling on the at least one schedulable unit. Among them, the physical meaning represented by the "cost of the schedulable unit" can be flexibly defined according to application requirements, which is not limited in this embodiment. For example, the cost of the schedulable unit may be the cost of power consumption, or the cost of maintenance, or the cost of configuration, and so on. In this embodiment, the description is focused on the cost of power consumption as an example.
在一可选实施例中,处理器82在预测至少一个可调度单元的成本代价时,具体用于:将至少一个可调度单元的及其所依赖的基础设施的当前功耗数据分别输入各自对应的成本代价预测模型进行成本代价预测,以得到至少一个可调度单元的成本代价;其中,每个可调度单元对应的成本代价预测模型反应自身对应的成本代价影响因子与成本代价之间存在的影响关系。In an optional embodiment, when predicting the cost of at least one schedulable unit, the processor 82 is specifically configured to: input the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, respectively, into the respective corresponding The cost cost prediction model of the schedulable unit performs cost cost prediction to obtain the cost cost of at least one schedulable unit; among them, the cost cost prediction model corresponding to each schedulable unit reflects the impact between the corresponding cost cost influencing factor and the cost cost relationship.
在一可选实施例中,处理器82还用于:获取至少一个可调度单元的与成本代价影响因子对应的历史数据,历史数据包括至少一个可调度单元的及其所依赖的基础设施的历史功耗数据;根据至少一个可调度单元的及其所依赖的基础设施的历史功耗数据分别进行模型训练,得到至少一个可调度单元各自对应的成本代价预测模型。In an optional embodiment, the processor 82 is further configured to obtain historical data corresponding to the cost impact factor of at least one schedulable unit, the historical data including the history of the at least one schedulable unit and the infrastructure on which it depends Power consumption data; model training is performed according to the historical power consumption data of at least one schedulable unit and the infrastructure on which it depends, respectively, to obtain a cost prediction model corresponding to each of the at least one schedulable unit.
可选地,处理器82在模型训练过程中,具体可以采用线性回归、逻辑回归或各种深度学习算法进行模型训练。Optionally, the processor 82 may specifically use linear regression, logistic regression or various deep learning algorithms to perform model training during the model training process.
进一步,基于上述成本代价预测模型,处理器82在进行成本代价预测时,具体用于:针对目标可调度单元,将目标可调度单元的及其所依赖的基础设施的当前功耗数据输入目标可调度单元对应的成本代价预测模型;在目标可调度单元对应的成本代价预测模型内部,利用已经训练出的第一类权重系数对目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与目标可调度单元的当前功耗数据相加,以得到目标可调度单元的成本代价;Further, based on the aforementioned cost cost prediction model, when the processor 82 performs cost cost prediction, it is specifically configured to: for the target schedulable unit, input the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the target schedulable unit. The cost and cost prediction model corresponding to the scheduling unit; inside the cost and cost prediction model corresponding to the target schedulable unit, the current power consumption data of the infrastructure on which the target schedulable unit depends is weighted by using the first type of weight coefficients that have been trained Sum, and add the result of the weighted summation to the current power consumption data of the target schedulable unit to obtain the cost of the target schedulable unit;
其中,第一类权重系数反应基础设施功耗这一成本代价影响因子对可调度单元的成本代价的影响;目标可调度单元是至少一个可调度单元中任一可调度单元。Among them, the weight coefficient of the first type reflects the impact of the cost impact factor of infrastructure power consumption on the cost of the schedulable unit; the target schedulable unit is any schedulable unit among at least one schedulable unit.
在一可选实施例中,处理器82获取的历史数据还包括以下至少一种:至少一个可调度单元的历史物理位置、至少一个可调度单元所在区域的历史电费价格以及至少一个可调度单元上运行的历史程序类型。基于此,处理器82在进行模型训练时,具体用于:针对目标可调度单元,根据目标可调度单元的及其所依赖的基础设施的历史功耗数据,以及目标可调度单元的历史物理位置、目标可调度单元所在区域的历史电费价格以及目标可调度单元上运行的历史程序类型中至少一种数据进行模型训练,得到目标可调度单元对应的成本代价预测模型;其中,目标可调度单元是至少一个可调度单元中任一可调度单元。In an optional embodiment, the historical data acquired by the processor 82 further includes at least one of the following: the historical physical location of the at least one schedulable unit, the historical electricity price of the area where the at least one schedulable unit is located, and the historical data on the at least one schedulable unit. Types of historical programs run. Based on this, when the processor 82 performs model training, it is specifically used to: for the target schedulable unit, according to the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, and the historical physical location of the target schedulable unit , Model training is performed on at least one of the historical electricity price price of the area where the target schedulable unit is located and the historical program type running on the target schedulable unit to obtain the cost prediction model corresponding to the target schedulable unit; where the target schedulable unit is Any schedulable unit in at least one schedulable unit.
相应地,处理器82获取的当前数据还包括以下至少一种:至少一个可调度单元的当前物理位置、至少一个可调度单元所在区域的当前电费价格以及至少一个可调度单元上需要运行的程序类型。基于此,处理器82在进行成本代价预测时,具体用于:针对目标可调度单元,将目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中的至少一种数据输入目标可调度单元对应的成本代价预测模型进行成本代价预测,以得到目标可调度单元的成本代价。Correspondingly, the current data acquired by the processor 82 also includes at least one of the following: the current physical location of the at least one schedulable unit, the current electricity price of the area where the at least one schedulable unit is located, and the type of program that needs to be run on the at least one schedulable unit . Based on this, when the processor 82 predicts the cost, it is specifically used to: for the target schedulable unit, combine the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical value of the target schedulable unit. At least one of the location, the current electricity price of the area where the target schedulable unit is located, and the type of program that needs to be run on the target schedulable unit is input into the cost prediction model corresponding to the target schedulable unit to predict the cost to obtain the target schedulable unit The cost of the unit.
进一步可选地,处理器82在进行成本代价预测时,具体用于:将目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中的至少一种数据输入目标可调度单元对应的成本代价预测模型;Further optionally, the processor 82 is specifically configured to: compare the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, and the target schedulable unit. At least one of the current price of electricity in the area where the dispatch unit is located and the type of program that needs to be run on the target schedulable unit is input into the cost prediction model corresponding to the target schedulable unit;
在目标可调度单元对应的成本代价预测模型内部,利用已经训练出的第一类权重系数对目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与目标可调度单元的当前功耗数据相加,以得到目标可调度单元的初始成本代价;以及利用已经训练出的第二类权重系数对初始成本代价进行修正,得到目标可调度单元的成本代价;In the cost prediction model corresponding to the target schedulable unit, the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the first type of weight coefficients that have been trained, and the weighted sum is the result Add the current power consumption data of the target schedulable unit to obtain the initial cost of the target schedulable unit; and use the second type of weight coefficient that has been trained to correct the initial cost to obtain the cost of the target schedulable unit ;
其中,其中,第一类权重系数反应基础设施功耗这一成本代价影响因子对可调度单元的成本代价的影响,第二类权重系数反应物理位置、电费价格以及程序类型中至少一种成本代价影响因子对可调度单元的成本代价的影响。Among them, the first type of weight coefficient reflects the impact of the cost of infrastructure power consumption on the cost of schedulable units, and the second type of weight coefficient reflects at least one of the cost of physical location, electricity price, and program type. The impact of the impact factor on the cost of schedulable units.
在一可选实施例中,处理器82还用于:根据本次资源调度对应的资源需求,从机房系统、数据中心系统或边缘计算系统包含的各可调度单元中确定本次可调度的至少一个可调度单元。In an optional embodiment, the processor 82 is further configured to: according to the resource requirements corresponding to this resource scheduling, determine from the schedulable units included in the computer room system, data center system or edge computing system at least A schedulable unit.
进一步可选地,处理器82在确定本次可调度的至少一个可调度单元时,具体用于:根据机房系统、数据中心系统或边缘计算系统的设备拓扑关系,从机房系统、数据中心系统或边缘计算系统包含的各可调度单元中,确定与执行本次资源调度的资源调度设备的距离满足设定要求的至少一个可调度单元。Further optionally, when the processor 82 determines at least one schedulable unit that can be schedulable this time, it is specifically configured to: according to the device topology relationship of the computer room system, data center system, or edge computing system, from the computer room system, data center system, or Among the schedulable units included in the edge computing system, determine at least one schedulable unit whose distance from the resource scheduling device performing this resource scheduling meets the set requirement.
更进一步,处理器82在确定本次可调度的至少一个可调度单元时,具体用于执行以下任一种操作:Furthermore, the processor 82 is specifically configured to perform any one of the following operations when determining at least one schedulable unit that is schedulable this time:
根据本次资源调度对应的资源需求和机房系统或数据中心系统的设备拓扑关系,从机房系统或数据中心系统包含的各可调度单元中,确定与资源调度设备位于同一机房内的至少一个可调度单元;According to the resource demand corresponding to this resource scheduling and the device topology relationship of the computer room system or data center system, from the schedulable units included in the computer room system or data center system, determine at least one schedulable unit located in the same computer room as the resource scheduling device unit;
根据本次资源调度对应的资源需求和机房系统或数据中心系统的设备拓扑关系,从机房系统或数据中心系统包含的各可调度单元中,确定与资源调度设备位于同一通道内的至少一个可调度单元;According to the resource demand corresponding to this resource scheduling and the device topology relationship of the computer room system or data center system, from each schedulable unit included in the computer room system or data center system, determine at least one schedulable unit located in the same channel as the resource scheduling device unit;
根据本次资源调度对应的资源需求和机房系统或数据中心系统的设备拓扑关系,从机房系统或数据中心系统包含的各可调度单元中,确定与资源调度设备位于同一机柜内的至少一个可调度单元;According to the resource demand corresponding to this resource scheduling and the device topology relationship of the computer room system or data center system, from each schedulable unit included in the computer room system or data center system, determine at least one schedulable unit that is located in the same cabinet as the resource scheduling device unit;
根据本次资源调度对应的资源需求和机房系统或数据中心系统的设备拓扑关系,从机房系统或数据中心系统包含的各可调度单元中,确定与资源调度设备之间的物理距离小于设定距离阈值的至少一个可调度单元。According to the resource demand corresponding to this resource scheduling and the device topology relationship of the computer room system or data center system, from the schedulable units included in the computer room system or data center system, determine that the physical distance to the resource scheduling device is less than the set distance At least one schedulable unit of the threshold.
在一可选实施例中,对机房系统或数据中心系统来说,其包含的可调度 单元为机房系统或数据中心系统中的服务器,但并不限于此。相应地,对于边缘计算系统来说,其包含的可调度单元为边缘计算系统中的边缘计算节点,但并不限于此。In an optional embodiment, for the computer room system or the data center system, the schedulable unit included in the computer room system or the data center system is a server in the computer room system or the data center system, but it is not limited to this. Correspondingly, for the edge computing system, the schedulable unit included in the edge computing system is the edge computing node in the edge computing system, but it is not limited to this.
在一可选实施例中,处理器82在进行资源调度时,具体用于:根据至少一个可调度单元的成本代价,按照成本代价由小到大的顺序对至少一个可调度单元进行资源调度;或者,根据至少一个可调度单元的成本代价,优先对成本代价最小的可调度单元进行资源调度;或者,根据至少一个可调度单元的成本代价,优先对成本代价小于设定阈值的可调度单元进行资源调度。In an optional embodiment, when the processor 82 performs resource scheduling, it is specifically configured to: perform resource scheduling on the at least one schedulable unit according to the cost of the at least one schedulable unit in a descending order of the cost; Or, based on the cost of at least one schedulable unit, priority is given to the schedulable unit with the lowest cost to perform resource scheduling; or, based on the cost of at least one schedulable unit, priority is given to the schedulable unit whose cost is less than the set threshold. Resource Scheduling.
在一可选实施例中,处理器82在进行资源调度时,具体用于:根据本次资源调度对应的业务需求,结合所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度。In an optional embodiment, when the processor 82 performs resource scheduling, it is specifically configured to: according to the service requirements corresponding to the resource scheduling this time, and in combination with the cost of the at least one schedulable unit, compare the cost of the at least one schedulable unit. The unit performs resource scheduling.
更进一步,处理器82在进行资源调度时,具体用于:根据本次资源调度对应的业务性能要求,从所述至少一个可调度单元中选择满足所述业务性能要求的可调度单元;根据满足所述业务性能要求的可调度单元的成本代价,对满足所述业务性能要求的可调度单元进行资源调度。Furthermore, when the processor 82 is performing resource scheduling, it is specifically configured to: according to the service performance requirements corresponding to this resource scheduling, select a schedulable unit that meets the service performance requirements from the at least one schedulable unit; According to the cost of the schedulable unit required by the service performance, resource scheduling is performed on the schedulable unit meeting the service performance requirement.
进一步,如图8所示,该资源调度设备还包括:通信组件83、显示器84、电源组件85、音频组件85等其它组件。图8中仅示意性给出部分组件,并不意味着资源调度设备只包括图8所示组件。另外,根据资源调度设备的实现形态的不同,图8中虚线框内的组件为可选组件,而非必选组件。例如,当资源调度设备实现为智能手机、平板电脑或台式电脑等终端设备时,可以包括图8中虚线框内的组件;当资源调度设备实现为常规服务器、云服务器或服务器阵列等服务器设备时,可以不包括图8中虚线框内的组件。Further, as shown in FIG. 8, the resource scheduling device further includes: a communication component 83, a display 84, a power supply component 85, an audio component 85 and other components. Only some of the components are schematically shown in FIG. 8, which does not mean that the resource scheduling device only includes the components shown in FIG. 8. In addition, according to the different implementation forms of the resource scheduling device, the components in the dashed box in FIG. 8 are optional components, not mandatory components. For example, when the resource scheduling device is implemented as a terminal device such as a smart phone, a tablet computer, or a desktop computer, it can include the components in the dashed box in Figure 8; when the resource scheduling device is implemented as a server device such as a conventional server, a cloud server, or a server array , The components in the dashed box in Figure 8 may not be included.
相应地,本申请实施例还提供一种存储有计算机程序的计算机可读存储介质,计算机程序被执行时能够实现上述图7a和图7b所示方法实施例中的各步骤。Correspondingly, an embodiment of the present application also provides a computer-readable storage medium storing a computer program, which can implement each step in the method embodiment shown in FIG. 7a and FIG. 7b when the computer program is executed.
图9为本申请示例性实施例提供的一种信息预测设备的结构示意图。如图9所示,该信息预测设备包括:存储器91和处理器92。FIG. 9 is a schematic structural diagram of an information prediction device provided by an exemplary embodiment of this application. As shown in FIG. 9, the information prediction device includes: a memory 91 and a processor 92.
存储器91,用于存储计算机程序,并可被配置为存储其它各种数据以支持在信息预测设备上的操作。这些数据的示例包括用于在信息预测设备上操作的任何应用程序或方法的指令,消息,图片,视频等。The memory 91 is used to store computer programs, and can be configured to store various other data to support operations on the information prediction device. Examples of these data include instructions, messages, pictures, videos, etc. for any application or method operating on the information prediction device.
处理器92,与存储器91耦合,用于执行存储器91中的计算机程序,以用于:获取目标可调度单元的与成本代价影响因子对应的当前数据,当前数据包括目标可调度单元的及其所依赖的基础设施的当前功耗数据;根据目标可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测目标可调度单元的成本代价。The processor 92 is coupled with the memory 91, and is configured to execute a computer program in the memory 91 to obtain current data of the target schedulable unit corresponding to the cost impact factor, and the current data includes the target schedulable unit and all the data of the target schedulable unit. The current power consumption data of the dependent infrastructure; according to the current power consumption data of the target schedulable unit and the dependent infrastructure, as well as the influence relationship between the pre-trained cost cost influencing factor and the cost cost, the target is predicted The cost of schedulable units.
在一可选实施例中,处理器92在预测目标可调度单元的成本代价时,具体用于:将目标可调度单元的及其所依赖的基础设施的当前功耗数据输入成本代价预测模型进行成本代价预测,以得到目标可调度单元的成本代价;其中,成本代价预测模型反应成本代价影响因子与成本代价之间存在的影响关系。In an optional embodiment, when the processor 92 predicts the cost of the target schedulable unit, it is specifically configured to: input the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost and cost prediction model. Cost cost prediction to obtain the cost cost of the target schedulable unit; among them, the cost cost prediction model reflects the impact relationship between the cost cost influencing factor and the cost cost.
进一步,处理器92还用于:获取目标可调度单元的与成本代价影响因子对应的历史数据,历史数据包括目标可调度单元的及其所依赖的基础设施的历史功耗数据;根据目标可调度单元的及其所依赖的基础设施的历史功耗数据进行模型训练,得到成本代价预测模型。Further, the processor 92 is further configured to: obtain historical data corresponding to the cost impact factor of the target schedulable unit, the historical data including historical power consumption data of the target schedulable unit and the infrastructure on which it depends; schedulable according to the target Model training is performed on the historical power consumption data of the unit and the infrastructure on which it depends, and the cost prediction model is obtained.
进一步可选地,基于上述成本代价预测模型,处理器92在进行成本代价预测时,具体用于:将目标可调度单元的及其所依赖的基础设施的当前功耗数据输入成本代价预测模型;在成本代价预测模型内部,利用已经训练出的第一类权重系数对目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与目标可调度单元的当前功耗数据相加,以得到目标可调度单元的成本代价;其中,第一类权重系数反应基础设施功耗这一成本代价影响因子对可调度单元的成本代价的影响。Further optionally, based on the aforementioned cost cost prediction model, when the processor 92 performs cost cost prediction, it is specifically configured to: input current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost cost prediction model; In the cost prediction model, the weight coefficient of the first type that has been trained is used to perform a weighted summation of the current power consumption data of the infrastructure on which the target schedulable unit depends, and the result of the weighted summation is compared with the value of the target schedulable unit. The current power consumption data is added to obtain the cost price of the target schedulable unit; among them, the first type of weight coefficient reflects the impact of the cost impact factor of infrastructure power consumption on the cost of the schedulable unit.
在一可选实施例中,处理器92获取的历史数据还包括以下至少一种数据:目标可调度单元的历史物理位置、目标可调度单元所在区域的历史电费价格 以及目标可调度单元上运行的历史程序类型。基于此,处理器92在进行模型训练时,具体用于:根据目标可调度单元的及其所依赖的基础设施的历史功耗数据,以及目标可调度单元的历史物理位置、目标可调度单元所在区域的历史电费价格以及目标可调度单元上运行的历史程序类型中至少一种数据进行模型训练,得到成本代价预测模型。In an optional embodiment, the historical data acquired by the processor 92 further includes at least one of the following data: the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and the data running on the target schedulable unit. History program type. Based on this, the processor 92 is specifically used for model training according to the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the historical physical location of the target schedulable unit, and the location of the target schedulable unit. Model training is performed on at least one of the historical electricity price price of the area and the historical program type running on the target schedulable unit to obtain a cost prediction model.
相应地,处理器92获取的当前数据还包括以下至少一种数据:目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型。基于此,处理器92在进行成本代价预测时,具体用于:将目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中的至少一种数据输入成本代价预测模型进行成本代价预测,以得到目标可调度单元的成本代价。Correspondingly, the current data acquired by the processor 92 also includes at least one of the following data: the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the type of program that needs to be run on the target schedulable unit. Based on this, when the processor 92 predicts the cost, it is specifically configured to: combine the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, and the target schedulable unit. At least one of the current electricity price in the area and the type of program that needs to be run on the target schedulable unit is input into a cost prediction model to perform cost cost prediction to obtain the cost of the target schedulable unit.
进一步可选地,处理器92在进行成本代价预测时,具体用于:将目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同目标可调度单元的当前物理位置、目标可调度单元所在区域的当前电费价格以及目标可调度单元上需要运行的程序类型中的至少一种数据一起输入成本代价预测模型;在成本代价预测模型内部,利用已经训练出的第一类权重系数对目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与目标可调度单元的当前功耗数据相加,以得到目标可调度单元的初始成本代价;以及利用已经训练出的第二类权重系数对初始成本代价进行修正,得到目标可调度单元的成本代价;Further optionally, when the processor 92 performs cost cost prediction, it is specifically configured to: combine the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, and the target schedulable unit. At least one of the current electricity price in the area where the dispatching unit is located and the type of program that needs to be run on the target schedulable unit are input into the cost prediction model; inside the cost prediction model, the first type of weight coefficient pair that has been trained is used Perform a weighted summation of the current power consumption data of the infrastructure on which the target schedulable unit depends, and add the result of the weighted summation to the current power consumption data of the target schedulable unit to obtain the initial cost of the target schedulable unit; And use the second type of weight coefficients that have been trained to modify the initial cost cost to obtain the cost cost of the target schedulable unit;
其中,第一类权重系数反应基础设施功耗这一成本代价影响因子对可调度单元的成本代价的影响,第二类权重系数反应物理位置、电费价格以及程序类型中至少一种成本代价影响因子对可调度单元的成本代价的影响。Among them, the first type of weight coefficient reflects the impact of the cost of infrastructure power consumption on the cost of schedulable units, and the second type of weight coefficient reflects at least one of the cost of physical location, electricity price, and program type. Impact on the cost of schedulable units.
进一步可选地,处理器92在对初始成本代价进行修正时,具体用于:计算第二类权重系数与初始成本代价的乘积,作为目标可调度单元的成本代价。Further optionally, when the processor 92 modifies the initial cost cost, it is specifically configured to calculate the product of the second type of weight coefficient and the initial cost cost as the cost cost of the target schedulable unit.
在一可选实施例中,处理器92在获取与目标可调度单元的成本代价影响 因子对应的当前数据时,具体用于:从机房系统或数据中心系统中的各可调度单元的当前功耗数据中,确定目标可调度单元的当前功耗数据;根据机房系统或数据中心系统的设备拓扑关系,从机房系统或数据中心系统的各基础设施的当前功耗数据中,筛选出目标可调度单元所依赖的基础设施的当前功耗数据。In an optional embodiment, when the processor 92 obtains the current data corresponding to the cost impact factor of the target schedulable unit, it is specifically used to: from the current power consumption of each schedulable unit in the computer room system or the data center system In the data, determine the current power consumption data of the target schedulable unit; according to the equipment topological relationship of the computer room system or data center system, filter out the target schedulable unit from the current power consumption data of each infrastructure of the computer room system or data center system Current power consumption data of the infrastructure on which it depends.
在本申请实施例中,并不限定目标可调度单元的实现形式,可以是任何可对外提供某种服务、功能或能力的设备、模块或单元。例如,目标可调度单元为机房系统或数据中心系统中的服务器,服务器上的CPU、GPU、内存或网卡等。In the embodiments of the present application, the implementation form of the target schedulable unit is not limited, and it may be any device, module, or unit that can provide a certain service, function, or capability to the outside. For example, the target schedulable unit is a server in a computer room system or a data center system, and a CPU, GPU, memory, or network card on the server.
进一步,如图9所示,该资源调度设备还包括:通信组件93、显示器94、电源组件95、音频组件95等其它组件。图9中仅示意性给出部分组件,并不意味着资源调度设备只包括图9所示组件。另外,根据资源调度设备的实现形态的不同,图9中虚线框内的组件为可选组件,而非必选组件。例如,当资源调度设备实现为智能手机、平板电脑或台式电脑等终端设备时,可以包括图9中虚线框内的组件;当资源调度设备实现为常规服务器、云服务器或服务器阵列等服务器设备时,可以不包括图9中虚线框内的组件。Further, as shown in FIG. 9, the resource scheduling device further includes: a communication component 93, a display 94, a power supply component 95, an audio component 95 and other components. Only some components are schematically shown in FIG. 9, which does not mean that the resource scheduling device only includes the components shown in FIG. 9. In addition, according to the different implementation forms of the resource scheduling device, the components in the dashed box in FIG. 9 are optional components, not mandatory components. For example, when the resource scheduling device is implemented as a terminal device such as a smart phone, a tablet computer, or a desktop computer, it can include the components in the dashed box in Figure 9; when the resource scheduling device is implemented as a server device such as a conventional server, a cloud server, or a server array , The components in the dashed box in Figure 9 may not be included.
相应地,本申请实施例还提供一种存储有计算机程序的计算机可读存储介质,计算机程序被执行时能够实现上述图7c所示方法实施例中的各步骤。Correspondingly, the embodiment of the present application also provides a computer-readable storage medium storing a computer program, which can implement each step in the method embodiment shown in FIG. 7c when the computer program is executed.
上述图8和图9中的通信组件被配置为便于通信组件所在设备和其他设备之间有线或无线方式的通信。通信组件所在设备可以接入基于通信标准的无线网络,如WiFi,2G、3G、4G/LTE、5G等移动通信网络,或它们的组合。在一个示例性实施例中,通信组件经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件还可以包括近场通信(NFC)模块,射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术等。The communication components in Figs. 8 and 9 described above are configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G/LTE, 5G and other mobile communication networks, or a combination of them. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component may further include a near field communication (NFC) module, radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology Wait.
上述图8和图9中的显示器包括屏幕,其屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接 收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。The above-mentioned display in Figs. 8 and 9 includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
上述图8和图9中的电源组件,为电源组件所在设备的各种组件提供电力。电源组件可以包括电源管理系统,一个或多个电源,及其他与为电源组件所在设备生成、管理和分配电力相关联的组件。The power supply components in Figures 8 and 9 above provide power for various components of the equipment where the power supply components are located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device where the power supply component is located.
上述图8和图9中的音频组件,可被配置为输出和/或输入音频信号。例如,音频组件包括一个麦克风(MIC),当音频组件所在设备处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器或经由通信组件发送。在一些实施例中,音频组件还包括一个扬声器,用于输出音频信号。The audio components in Figs. 8 and 9 described above may be configured to output and/or input audio signals. For example, the audio component includes a microphone (MIC). When the device where the audio component is located is in an operating mode, such as call mode, recording mode, and voice recognition mode, the microphone is configured to receive external audio signals. The received audio signal can be further stored in a memory or sent via a communication component. In some embodiments, the audio component further includes a speaker for outputting audio signals.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或 多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory in a computer readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or they also include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The foregoing descriptions are only examples of the present application, and are not used to limit the present application. For those skilled in the art, this application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the scope of the claims of this application.

Claims (32)

  1. 一种资源调度方法,其特征在于,包括:A resource scheduling method, characterized in that it comprises:
    获取至少一个可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据;Acquiring current data corresponding to the cost impact factor of at least one schedulable unit, where the current data includes current power consumption data of the at least one schedulable unit and the infrastructure on which it depends;
    根据所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个可调度单元的成本代价;According to the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, and the pre-trained impact factor of the cost cost and the impact relationship between the cost cost, predict the performance of the at least one schedulable unit Cost price
    根据所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度。According to the cost of the at least one schedulable unit, resource scheduling is performed on the at least one schedulable unit.
  2. 根据权利要求1所述的方法,其特征在于,根据所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个可调度单元的成本代价,包括:The method according to claim 1, characterized in that there is a relationship between the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, and the pre-trained cost impact factor and the cost price. The impact relationship of predicting the cost of the at least one schedulable unit includes:
    将所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据分别输入各自对应的成本代价预测模型进行成本代价预测,以得到所述至少一个可调度单元的成本代价;Input the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, respectively, into the respective cost cost prediction models to perform cost cost prediction, so as to obtain the cost cost of the at least one schedulable unit;
    其中,每个可调度单元对应的成本代价预测模型反应自身对应的成本代价影响因子与成本代价之间存在的影响关系。Among them, the cost prediction model corresponding to each schedulable unit reflects the influence relationship existing between the corresponding cost cost influencing factor and the cost cost.
  3. 根据权利要求2所述的方法,其特征在于,在将所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据分别输入各自对应的成本代价预测模型进行成本代价预测之前,还包括:The method according to claim 2, characterized in that, before the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends are respectively input into respective cost prediction models for cost cost prediction, Also includes:
    获取所述至少一个可调度单元的与成本代价影响因子对应的历史数据,所述历史数据包括所述至少一个可调度单元的及其所依赖的基础设施的历史功耗数据;Acquiring historical data corresponding to the cost impact factor of the at least one schedulable unit, the historical data including historical power consumption data of the at least one schedulable unit and the infrastructure on which it depends;
    根据所述至少一个可调度单元的及其所依赖的基础设施的历史功耗数 据分别进行模型训练,得到所述至少一个可调度单元各自对应的成本代价预测模型。Model training is performed according to the historical power consumption data of the at least one schedulable unit and the infrastructure on which it depends, respectively, to obtain a cost prediction model corresponding to each of the at least one schedulable unit.
  4. 根据权利要求3所述的方法,其特征在于,将所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据分别输入各自对应的成本代价预测模型进行成本代价预测,以得到所述至少一个可调度单元的成本代价,包括:The method according to claim 3, characterized in that the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends are respectively input into respective cost prediction models for cost cost prediction, so as to obtain The cost of the at least one schedulable unit includes:
    针对目标可调度单元,将所述目标可调度单元的及其所依赖的基础设施的当前功耗数据输入所述目标可调度单元对应的成本代价预测模型;For the target schedulable unit, input the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model corresponding to the target schedulable unit;
    在所述目标可调度单元对应的成本代价预测模型内部,利用已经训练出的第一类权重系数对所述目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与所述目标可调度单元的当前功耗数据相加,以得到所述目标可调度单元的成本代价;In the cost prediction model corresponding to the target schedulable unit, the weight coefficient of the first type that has been trained is used to perform a weighted summation of the current power consumption data of the infrastructure on which the target schedulable unit depends, and the weighted The sum result is added to the current power consumption data of the target schedulable unit to obtain the cost of the target schedulable unit;
    其中,所述第一类权重系数反应基础设施功耗这一成本代价影响因子对可调度单元的成本代价的影响;所述目标可调度单元是所述至少一个可调度单元中任一可调度单元。Wherein, the weight coefficient of the first type reflects the impact of the cost-cost influencing factor of infrastructure power consumption on the cost of the schedulable unit; the target schedulable unit is any schedulable unit in the at least one schedulable unit .
  5. 根据权利要求3所述的方法,其特征在于,所述历史数据还包括以下至少一种:所述至少一个可调度单元的历史物理位置、所述至少一个可调度单元所在区域的历史电费价格以及所述至少一个可调度单元上运行的历史程序类型;The method according to claim 3, wherein the historical data further includes at least one of the following: the historical physical location of the at least one schedulable unit, the historical electricity price of the area where the at least one schedulable unit is located, and The type of historical program running on the at least one schedulable unit;
    根据所述至少一个可调度单元的及其所依赖的基础设施的历史功耗数据分别进行模型训练,得到所述至少一个可调度单元各自对应的成本代价预测模型,包括:Model training is performed according to the historical power consumption data of the at least one schedulable unit and the infrastructure on which it depends, respectively, to obtain the cost prediction model corresponding to each of the at least one schedulable unit, including:
    针对目标可调度单元,根据所述目标可调度单元的及其所依赖的基础设施的历史功耗数据,以及所述目标可调度单元的历史物理位置、所述目标可调度单元所在区域的历史电费价格以及所述目标可调度单元上运行的历史程序类型中至少一种数据进行模型训练,得到所述目标可调度单元对应的成本代价预测模型;For the target schedulable unit, according to the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the historical physical location of the target schedulable unit, and the historical electricity bill of the area where the target schedulable unit is located Model training is performed on at least one of the price and historical program types running on the target schedulable unit to obtain a cost prediction model corresponding to the target schedulable unit;
    其中,所述目标可调度单元是所述至少一个可调度单元中任一可调度单元。Wherein, the target schedulable unit is any schedulable unit in the at least one schedulable unit.
  6. 根据权利要求5所述的方法,其特征在于,所述当前数据还包括以下至少一种:所述至少一个可调度单元的当前物理位置、所述至少一个可调度单元所在区域的当前电费价格以及所述至少一个可调度单元上需要运行的程序类型;The method according to claim 5, wherein the current data further comprises at least one of the following: the current physical location of the at least one schedulable unit, the current price of electricity in the area where the at least one schedulable unit is located, and The type of program that needs to be run on the at least one schedulable unit;
    将所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据分别输入各自对应的成本代价预测模型进行成本代价预测,以得到所述至少一个可调度单元的成本代价,包括:Inputting the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends respectively into their respective cost prediction models to perform cost cost prediction to obtain the cost cost of the at least one schedulable unit includes:
    针对目标可调度单元,将所述目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同所述目标可调度单元的当前物理位置、所述目标可调度单元所在区域的当前电费价格以及所述目标可调度单元上需要运行的程序类型中的至少一种数据输入所述目标可调度单元对应的成本代价预测模型进行成本代价预测,以得到所述目标可调度单元的成本代价。For the target schedulable unit, the current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, and the current electricity bill of the area where the target schedulable unit is located At least one data of the price and the type of program that needs to be run on the target schedulable unit is input into the cost price prediction model corresponding to the target schedulable unit to perform cost price prediction, so as to obtain the cost price of the target schedulable unit.
  7. 根据权利要求6所述的方法,其特征在于,将所述目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同所述目标可调度单元的当前物理位置、所述目标可调度单元所在区域的当前电费价格以及所述目标可调度单元上需要运行的程序类型中的至少一种数据输入所述目标可调度单元对应的成本代价预测模型进行成本代价预测,以得到所述目标可调度单元的成本代价,包括:The method according to claim 6, wherein the current power consumption data of the target schedulable unit and the infrastructure on which it depends are combined with the current physical location of the target schedulable unit and the target schedulable unit. At least one of the current electricity price price of the area where the dispatch unit is located and the type of program that needs to be run on the target schedulable unit is input into the cost prediction model corresponding to the target schedulable unit to predict the cost to obtain the target The cost of schedulable units includes:
    将所述目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同所述目标可调度单元的当前物理位置、所述目标可调度单元所在区域的当前电费价格以及所述目标可调度单元上需要运行的程序类型中的至少一种数据输入所述目标可调度单元对应的成本代价预测模型;The current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the target schedulable unit Data of at least one of the types of programs that need to be run on the scheduling unit is input into the cost prediction model corresponding to the target schedulable unit;
    在所述目标可调度单元对应的成本代价预测模型内部,利用已经训练出的第一类权重系数对所述目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与所述目标可调度单元的当前功 耗数据相加,以得到所述目标可调度单元的初始成本代价;以及利用已经训练出的第二类权重系数对所述初始成本代价进行修正,得到所述目标可调度单元的成本代价;In the cost prediction model corresponding to the target schedulable unit, the weight coefficient of the first type that has been trained is used to perform a weighted summation of the current power consumption data of the infrastructure on which the target schedulable unit depends, and the weighted The result of the summation is added to the current power consumption data of the target schedulable unit to obtain the initial cost cost of the target schedulable unit; and the second type of weight coefficient that has been trained is used to perform the initial cost cost Correction to obtain the cost of the target schedulable unit;
    其中,其中,所述第一类权重系数反应基础设施功耗这一成本代价影响因子对可调度单元的成本代价的影响,所述第二类权重系数反应物理位置、电费价格以及程序类型中至少一种成本代价影响因子对可调度单元的成本代价的影响。Wherein, the weight factor of the first type reflects the impact of the cost factor of infrastructure power consumption on the cost of schedulable units, and the weight factor of the second type reflects at least one of the physical location, electricity price, and program type. The impact of a cost cost influence factor on the cost cost of a schedulable unit.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,在获取至少一个可调度单元的与成本代价影响因子对应的当前数据之前,还包括:The method according to any one of claims 1-7, wherein before obtaining the current data corresponding to the cost impact factor of at least one schedulable unit, the method further comprises:
    根据本次资源调度对应的资源需求,从机房系统、数据中心系统或边缘计算系统包含的各可调度单元中确定本次可调度的至少一个可调度单元。According to the resource demand corresponding to this resource scheduling, at least one schedulable unit that can be schedulable this time is determined from the schedulable units included in the computer room system, data center system, or edge computing system.
  9. 根据权利要求8所述的方法,其特征在于,根据本次资源调度对应的资源需求,从机房系统、数据中心系统或边缘计算系统包含的各可调度单元中确定本次可调度的至少一个可调度单元,包括:The method according to claim 8, wherein at least one schedulable unit is determined from the schedulable units included in the computer room system, data center system, or edge computing system according to the resource demand corresponding to this resource scheduling. The dispatch unit includes:
    根据所述机房系统、数据中心系统或边缘计算系统的设备拓扑关系,从所述机房系统、数据中心系统或边缘计算系统包含的各可调度单元中,确定与执行本次资源调度的资源调度设备的距离满足设定要求的至少一个可调度单元。According to the device topology relationship of the computer room system, data center system, or edge computing system, determine and execute the resource scheduling device for this resource scheduling from each schedulable unit included in the computer room system, data center system, or edge computing system At least one schedulable unit whose distance meets the set requirements.
  10. 根据权利要求9所述的方法,其特征在于,根据所述机房系统或数据中心系统的设备拓扑关系,从所述机房系统或数据中心系统包含的各可调度单元中,确定与执行本次资源调度的资源调度设备的距离满足设定要求的至少一个可调度单元,包括以下任一种:The method according to claim 9, characterized in that, according to the device topological relationship of the computer room system or the data center system, the current resource is determined and executed from the schedulable units included in the computer room system or the data center system At least one schedulable unit whose distance of the scheduled resource scheduling device meets the set requirement includes any one of the following:
    根据所述机房系统或数据中心系统的设备拓扑关系,从所述机房系统或数据中心系统包含的各可调度单元中,确定与所述资源调度设备位于同一机房内的至少一个可调度单元;According to the device topology relationship of the computer room system or the data center system, determine at least one schedulable unit located in the same computer room as the resource scheduling device from each schedulable unit included in the computer room system or the data center system;
    根据所述机房系统或数据中心系统的设备拓扑关系,从所述机房系统 或数据中心系统包含的各可调度单元中,确定与所述资源调度设备位于同一通道内的至少一个可调度单元;According to the device topology relationship of the computer room system or the data center system, determine at least one schedulable unit that is located in the same channel as the resource scheduling device from each schedulable unit included in the computer room system or the data center system;
    根据所述机房系统或数据中心系统的设备拓扑关系,从所述机房系统或数据中心系统包含的各可调度单元中,确定与所述资源调度设备位于同一机柜内的至少一个可调度单元;Determine at least one schedulable unit located in the same cabinet as the resource scheduling device from each schedulable unit included in the computer room system or the data center system according to the device topology relationship of the computer room system or the data center system;
    根据所述机房系统或数据中心系统的设备拓扑关系,从所述机房系统或数据中心系统包含的各可调度单元中,确定与所述资源调度设备之间的物理距离小于设定距离阈值的至少一个可调度单元。According to the device topology relationship of the computer room system or the data center system, from each schedulable unit included in the computer room system or the data center system, it is determined that the physical distance to the resource scheduling device is less than at least a set distance threshold. A schedulable unit.
  11. 根据权利要求8所述的方法,其特征在于,所述机房系统或数据中心系统包含的可调度单元为所述机房系统或数据中心系统中的服务器;The method according to claim 8, wherein the schedulable unit included in the computer room system or the data center system is a server in the computer room system or the data center system;
    所述边缘计算系统包含的可调度单元为所述边缘计算系统中的边缘计算节点。The schedulable unit included in the edge computing system is an edge computing node in the edge computing system.
  12. 根据权利要求1-7任一项所述的方法,其特征在于,根据所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度,包括:The method according to any one of claims 1-7, wherein the resource scheduling of the at least one schedulable unit according to the cost of the at least one schedulable unit comprises:
    根据所述至少一个可调度单元的成本代价,按照成本代价由小到大的顺序对所述至少一个可调度单元进行资源调度;或者According to the cost of the at least one schedulable unit, perform resource scheduling on the at least one schedulable unit in the descending order of the cost; or
    根据所述至少一个可调度单元的成本代价,优先对成本代价最小的可调度单元进行资源调度;或者According to the cost of the at least one schedulable unit, the schedulable unit with the least cost is prioritized for resource scheduling; or
    根据所述至少一个可调度单元的成本代价,优先对成本代价小于设定阈值的可调度单元进行资源调度。According to the cost of the at least one schedulable unit, priority is given to resource scheduling for schedulable units whose cost cost is less than the set threshold.
  13. 根据权利要求1-7任一项所述的方法,其特征在于,根据所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度,包括:The method according to any one of claims 1-7, wherein the resource scheduling of the at least one schedulable unit according to the cost of the at least one schedulable unit comprises:
    根据本次资源调度对应的业务需求,结合所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度。Perform resource scheduling on the at least one schedulable unit according to the service requirements corresponding to the current resource scheduling and in combination with the cost of the at least one schedulable unit.
  14. 根据权利要求13所述的方法,其特征在于,根据本次资源调度对 应的业务需求,结合所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度,包括:The method according to claim 13, wherein the resource scheduling of the at least one schedulable unit according to the service requirements corresponding to this resource scheduling and the cost of the at least one schedulable unit comprises:
    根据本次资源调度对应的业务性能要求,从所述至少一个可调度单元中选择满足所述业务性能要求的可调度单元;According to the service performance requirement corresponding to this resource scheduling, select a schedulable unit that meets the service performance requirement from the at least one schedulable unit;
    根据满足所述业务性能要求的可调度单元的成本代价,对满足所述业务性能要求的可调度单元进行资源调度。According to the cost of the schedulable unit that meets the service performance requirement, resource scheduling is performed on the schedulable unit that meets the service performance requirement.
  15. 一种信息预测方法,其特征在于,包括:An information prediction method, characterized in that it includes:
    获取目标可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述目标可调度单元的及其所依赖的基础设施的当前功耗数据;Acquiring current data corresponding to the cost impact factor of the target schedulable unit, where the current data includes current power consumption data of the target schedulable unit and the infrastructure on which it depends;
    根据所述目标可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述目标可调度单元的成本代价。Predict the cost cost of the target schedulable unit based on the current power consumption data of the target schedulable unit and the infrastructure on which it depends, and the pre-trained impact factor of the cost cost and the impact relationship between the cost cost .
  16. 根据权利要求15所述的方法,其特征在于,根据目标可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述目标可调度单元的成本代价,包括:The method according to claim 15, characterized in that, according to the current power consumption data of the target schedulable unit and the infrastructure on which it depends, and the influence relationship between the pre-trained cost cost influencing factor and the cost cost , Predict the cost of the target schedulable unit, including:
    将所述目标可调度单元的及其所依赖的基础设施的当前功耗数据输入成本代价预测模型进行成本代价预测,以得到所述目标可调度单元的成本代价;Input the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model to perform cost cost prediction, so as to obtain the cost cost of the target schedulable unit;
    其中,所述成本代价预测模型反应所述成本代价影响因子与成本代价之间存在的影响关系。Wherein, the cost price prediction model reflects the influence relationship existing between the cost price influencing factor and the cost price.
  17. 根据权利要求16所述的方法,其特征在于,在将所述目标可调度单元的及其所依赖的基础设施的当前功耗数据输入成本代价预测模型进行成本代价预测之前,还包括:The method according to claim 16, characterized in that, before inputting the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model for cost cost prediction, the method further comprises:
    获取所述目标可调度单元的与成本代价影响因子对应的历史数据,所述历史数据包括所述目标可调度单元的及其所依赖的基础设施的历史功耗 数据;Acquiring historical data of the target schedulable unit corresponding to the cost impact factor, where the historical data includes historical power consumption data of the target schedulable unit and the infrastructure on which it depends;
    根据所述目标可调度单元的及其所依赖的基础设施的历史功耗数据进行模型训练,得到所述成本代价预测模型。Model training is performed according to the historical power consumption data of the target schedulable unit and the infrastructure on which it depends to obtain the cost prediction model.
  18. 根据权利要求17所述的方法,其特征在于,将所述目标可调度单元的及其所依赖的基础设施的当前功耗数据输入成本代价预测模型进行成本代价预测,以得到所述目标可调度单元的成本代价,包括:The method according to claim 17, characterized in that the current power consumption data of the target schedulable unit and the infrastructure on which it depends are input into a cost prediction model for cost cost prediction, so as to obtain the target schedulable unit The cost of the unit, including:
    将所述目标可调度单元的及其所依赖的基础设施的当前功耗数据输入所述成本代价预测模型;Input the current power consumption data of the target schedulable unit and the infrastructure on which it depends into the cost prediction model;
    在所述成本代价预测模型内部,利用已经训练出的第一类权重系数对所述目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与所述目标可调度单元的当前功耗数据相加,以得到所述目标可调度单元的成本代价;In the cost prediction model, the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the weight coefficients of the first type that have been trained, and the weighted sum result is combined with all Adding the current power consumption data of the target schedulable unit to obtain the cost of the target schedulable unit;
    其中,所述第一类权重系数反应基础设施功耗这一成本代价影响因子对可调度单元的成本代价的影响。Wherein, the weight coefficient of the first type reflects the impact of the cost impact factor of infrastructure power consumption on the cost of the schedulable unit.
  19. 根据权利要求17所述的方法,其特征在于,所述历史数据还包括以下至少一种数据:所述目标可调度单元的历史物理位置、所述目标可调度单元所在区域的历史电费价格以及所述目标可调度单元上运行的历史程序类型;The method according to claim 17, wherein the historical data further comprises at least one of the following data: the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and all Describe the historical program types running on the target schedulable unit;
    所述根据所述目标可调度单元的及其所依赖的基础设施的历史功耗数据进行模型训练,得到所述成本代价预测模型,包括:The performing model training according to the historical power consumption data of the target schedulable unit and the infrastructure on which it depends to obtain the cost prediction model includes:
    根据所述目标可调度单元的及其所依赖的基础设施的历史功耗数据,以及所述目标可调度单元的历史物理位置、所述目标可调度单元所在区域的历史电费价格以及所述目标可调度单元上运行的历史程序类型中至少一种数据进行模型训练,得到所述成本代价预测模型。According to the historical power consumption data of the target schedulable unit and the infrastructure on which it depends, as well as the historical physical location of the target schedulable unit, the historical electricity price of the area where the target schedulable unit is located, and the target schedulable unit Model training is performed on at least one type of data from historical program types running on the scheduling unit to obtain the cost prediction model.
  20. 根据权利要求19所述的方法,其特征在于,所述当前数据还包括以下至少一种数据:所述目标可调度单元的当前物理位置、所述目标可调度单元所在区域的当前电费价格以及所述目标可调度单元上需要运行的程 序类型;The method according to claim 19, wherein the current data further includes at least one of the following data: the current physical location of the target schedulable unit, the current price of electricity in the area where the target schedulable unit is located, and all Describe the types of programs that need to be run on the target schedulable unit;
    将所述目标可调度单元的及其所依赖的基础设施的当前功耗数据输入成本代价预测模型进行成本代价预测,以得到所述目标可调度单元的成本代价,包括:The current power consumption data of the target schedulable unit and the infrastructure on which it depends are input into the cost cost prediction model to perform cost cost prediction to obtain the cost cost of the target schedulable unit, including:
    将所述目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同所述目标可调度单元的当前物理位置、所述目标可调度单元所在区域的当前电费价格以及所述目标可调度单元上需要运行的程序类型中的至少一种数据输入所述成本代价预测模型进行成本代价预测,以得到所述目标可调度单元的成本代价。The current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the target schedulable unit At least one data of the type of program to be run on the scheduling unit is input into the cost cost prediction model to perform cost cost prediction, so as to obtain the cost cost of the target schedulable unit.
  21. 根据权利要求20所述的方法,其特征在于,将所述目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同所述目标可调度单元的当前物理位置、所述目标可调度单元所在区域的当前电费价格以及所述目标可调度单元上需要运行的程序类型中的至少一种数据一起输入所述成本代价预测模型进行成本代价预测,以得到所述目标可调度单元的成本代价,包括:The method according to claim 20, wherein the current power consumption data of the target schedulable unit and the infrastructure on which it depends are combined with the current physical location of the target schedulable unit and the target schedulable unit. At least one data of the current electricity price price of the area where the dispatch unit is located and the type of program that needs to be run on the target schedulable unit are input into the cost prediction model for cost cost prediction to obtain the cost of the target schedulable unit The cost includes:
    将所述目标可调度单元的及其所依赖的基础设施的当前功耗数据,连同所述目标可调度单元的当前物理位置、所述目标可调度单元所在区域的当前电费价格以及所述目标可调度单元上需要运行的程序类型中的至少一种数据一起输入所述成本代价预测模型;The current power consumption data of the target schedulable unit and the infrastructure on which it depends, together with the current physical location of the target schedulable unit, the current electricity price of the area where the target schedulable unit is located, and the target schedulable unit Data of at least one of the types of programs that need to be run on the scheduling unit are input into the cost prediction model together;
    在所述成本代价预测模型内部,利用已经训练出的第一类权重系数对所述目标可调度单元所依赖的基础设施的当前功耗数据进行加权求和,并将加权求和的结果与所述目标可调度单元的当前功耗数据相加,以得到所述目标可调度单元的初始成本代价;以及利用已经训练出的第二类权重系数对所述初始成本代价进行修正,得到所述目标可调度单元的成本代价;In the cost prediction model, the weighted sum of the current power consumption data of the infrastructure on which the target schedulable unit relies is weighted and summed with the weight coefficients of the first type that have been trained, and the weighted sum result is combined with all the weighted sums. Adding the current power consumption data of the target schedulable unit to obtain the initial cost of the target schedulable unit; and using the second type of weight coefficient that has been trained to correct the initial cost to obtain the target The cost of schedulable units;
    其中,所述第一类权重系数反应基础设施功耗这一成本代价影响因子对可调度单元的成本代价的影响,所述第二类权重系数反应物理位置、电费价格以及程序类型中至少一种成本代价影响因子对可调度单元的成本代 价的影响。Wherein, the weight coefficient of the first type reflects the impact of the cost of infrastructure power consumption on the cost of schedulable units, and the weight coefficient of the second type reflects at least one of physical location, electricity price, and program type The impact of the cost impact factor on the cost of schedulable units.
  22. 根据权利要求21所述的方法,其特征在于,利用已经训练出的第二类权重系数对所述初始成本代价进行修正,得到所述目标可调度单元的成本代价,包括:The method according to claim 21, characterized in that, using the second type of weight coefficients that have been trained to correct the initial cost cost to obtain the cost cost of the target schedulable unit comprises:
    计算所述第二类权重系数与所述初始成本代价的乘积,作为所述目标可调度单元的成本代价。The product of the weight coefficient of the second type and the initial cost is calculated as the cost of the target schedulable unit.
  23. 根据权利要求15-22任一项所述的方法,其特征在于,获取与目标可调度单元的成本代价影响因子对应的当前数据,包括:The method according to any one of claims 15-22, wherein obtaining current data corresponding to the cost impact factor of the target schedulable unit comprises:
    从机房系统、数据中心系统或边缘计算系统中的各可调度单元的当前功耗数据中,确定所述目标可调度单元的当前功耗数据;Determine the current power consumption data of the target schedulable unit from the current power consumption data of each schedulable unit in the computer room system, data center system or edge computing system;
    根据所述机房系统、数据中心系统或边缘计算系统的设备拓扑关系,从所述机房系统、数据中心系统或边缘计算系统的各基础设施的当前功耗数据中,筛选出所述目标可调度单元所依赖的基础设施的当前功耗数据。According to the device topology relationship of the computer room system, data center system, or edge computing system, filter out the target schedulable unit from the current power consumption data of each infrastructure of the computer room system, data center system, or edge computing system Current power consumption data of the infrastructure on which it depends.
  24. 根据权利要求15-22任一项所述的方法,其特征在于,所述目标可调度单元为机房系统或数据中心系统中的服务器;或者,所述目标可调度单元为边缘计算系统中的边缘计算节点。The method according to any one of claims 15-22, wherein the target schedulable unit is a server in a computer room system or a data center system; or, the target schedulable unit is an edge computing system in an edge computing system. calculate node.
  25. 一种资源调度设备,其特征在于,包括:存储器和处理器;A resource scheduling device, characterized by comprising: a memory and a processor;
    所述存储器,用于存储计算机程序;The memory is used to store a computer program;
    所述处理器,与所述存储器耦合,用于执行与所述计算机程序以用于:The processor, coupled with the memory, is configured to execute the computer program for:
    获取至少一个可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据;Acquiring current data corresponding to the cost impact factor of at least one schedulable unit, where the current data includes current power consumption data of the at least one schedulable unit and the infrastructure on which it depends;
    根据所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个可调度单元的成本代价;According to the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, and the pre-trained impact factor of the cost cost and the impact relationship between the cost cost, predict the performance of the at least one schedulable unit Cost price
    根据所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度。According to the cost of the at least one schedulable unit, resource scheduling is performed on the at least one schedulable unit.
  26. 一种信息预测设备,其特征在于,包括:存储器和处理器;An information prediction device, characterized by comprising: a memory and a processor;
    所述存储器,用于存储计算机程序;The memory is used to store a computer program;
    所述处理器,与所述存储器耦合,用于执行与所述计算机程序以用于:The processor, coupled with the memory, is configured to execute the computer program for:
    获取目标可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述目标可调度单元的及其所依赖的基础设施的当前功耗数据;Acquiring current data corresponding to the cost impact factor of the target schedulable unit, where the current data includes current power consumption data of the target schedulable unit and the infrastructure on which it depends;
    根据所述目标可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述目标可调度单元的成本代价。Predict the cost cost of the target schedulable unit based on the current power consumption data of the target schedulable unit and the infrastructure on which it depends, and the pre-trained impact factor of the cost cost and the impact relationship between the cost cost .
  27. 一种存储有计算机程序的计算机可读存储介质,其特征在于,当所述计算机程序被处理器执行时,致使所述处理器实现权利要求1-24任一项所述方法中的步骤。A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor is caused to implement the steps in the method of any one of claims 1-24.
  28. 一种机房系统,其特征在于,包括:若干个可调度单元、若干个基础设施以及资源调度设备;所述若干个基础设施为所述若干个可调度单元提供基础服务;A computer room system, characterized by comprising: several schedulable units, several infrastructures and resource scheduling equipment; the several infrastructures provide basic services for the several schedulable units;
    所述资源调度设备,用于获取至少一个可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据;根据所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个可调度单元的成本代价;根据所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度;其中,所述至少一个可调度单元来自于所述若干个可调度单元。The resource scheduling device is configured to obtain current data corresponding to the cost impact factor of at least one schedulable unit, and the current data includes current power consumption data of the at least one schedulable unit and the infrastructure on which it depends Predict the at least one schedulable unit based on the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price According to the cost price of the at least one schedulable unit, perform resource scheduling on the at least one schedulable unit; wherein the at least one schedulable unit comes from the several schedulable units.
  29. 一种机房系统,其特征在于,包括:若干个可调度单元、若干个基础设施、信息预测设备以及资源调度设备;所述若干个基础设施为所述若干个可调度单元提供基础服务;A computer room system, characterized by comprising: a number of schedulable units, a number of infrastructures, information prediction equipment and resource scheduling equipment; the several infrastructures provide basic services for the several schedulable units;
    所述信息预测设备,用于获取至少一个可调度单元的与成本代价影响 因子对应的当前数据,所述当前数据包括所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据;根据所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个可调度单元的成本代价;将所述至少一个可调度单元的成本代价提供给所述资源调度设备;The information prediction device is configured to obtain current data corresponding to the cost impact factor of at least one schedulable unit, and the current data includes current power consumption data of the at least one schedulable unit and the infrastructure on which it depends Predict the at least one schedulable unit based on the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price The cost of the cost; the cost of the at least one schedulable unit is provided to the resource scheduling device;
    所述资源调度设备,用于根据所述信息预测设备提供的所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度;其中,所述至少一个可调度单元来自于所述若干个可调度单元。The resource scheduling device is configured to perform resource scheduling on the at least one schedulable unit according to the cost of the at least one schedulable unit provided by the information prediction device; wherein the at least one schedulable unit is from The number of schedulable units.
  30. 一种数据中心系统,其特征在于,包括:至少一个机房以及资源调度设备;每个机房包括若干个可调度单元和若干个基础设施,所述若干个基础设施为所述若干个可调度单元提供基础服务;A data center system is characterized by comprising: at least one computer room and resource scheduling equipment; each computer room includes several schedulable units and several infrastructures, and the several infrastructures provide for the several schedulable units Basic services;
    所述资源调度设备,用于获取至少一个可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据;根据所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个可调度单元的成本代价;根据所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度;其中,所述至少一个可调度单元来自于所述至少一个机房中的可调度单元。The resource scheduling device is configured to obtain current data corresponding to the cost impact factor of at least one schedulable unit, and the current data includes current power consumption data of the at least one schedulable unit and the infrastructure on which it depends Predict the at least one schedulable unit based on the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price According to the cost of the at least one schedulable unit, resource scheduling is performed on the at least one schedulable unit; wherein the at least one schedulable unit comes from the schedulable unit in the at least one computer room.
  31. 一种数据中心系统,其特征在于,包括:至少一个机房、信息预测设备以及资源调度设备;每个机房包括若干个可调度单元和若干个基础设施,所述若干个基础设施为所述若干个可调度单元提供基础服务;A data center system is characterized by comprising: at least one computer room, information prediction equipment, and resource scheduling equipment; each computer room includes a number of schedulable units and a number of infrastructures, the number of infrastructures being the number of The schedulable unit provides basic services;
    所述信息预测设备,用于获取至少一个可调度单元的与成本代价影响因子对应的当前数据,所述当前数据包括所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据;根据所述至少一个可调度单元的及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个可调度单元的成本代 价;将所述至少一个可调度单元的成本代价提供给所述资源调度设备;The information prediction device is configured to obtain current data corresponding to the cost impact factor of at least one schedulable unit, and the current data includes current power consumption data of the at least one schedulable unit and the infrastructure on which it depends Predict the at least one schedulable unit based on the current power consumption data of the at least one schedulable unit and the infrastructure on which it depends, as well as the pre-trained cost impact factor and the impact relationship between the cost price The cost of the cost; the cost of the at least one schedulable unit is provided to the resource scheduling device;
    所述资源调度设备,用于根据所述信息预测设备提供的所述至少一个可调度单元的成本代价,对所述至少一个可调度单元进行资源调度;其中,所述至少一个可调度单元来自于所述至少一个机房中的可调度单元。The resource scheduling device is configured to perform resource scheduling on the at least one schedulable unit according to the cost of the at least one schedulable unit provided by the information prediction device; wherein the at least one schedulable unit is from The schedulable unit in the at least one computer room.
  32. 一种边缘计算系统,其特征在于,包括:若干个边缘计算节点、若干个基础设施和服务器;所述若干个基础设施为所述若干个边缘计算节点提供基础服务;An edge computing system, characterized in that it comprises: several edge computing nodes, several infrastructures and servers; the several infrastructures provide basic services for the several edge computing nodes;
    所述服务器,用于获取至少一个边缘计算节点的与成本代价影响因子对应的当前数据,所述当前数据包括所述至少一个边缘计算节点及其所依赖的基础设施的当前功耗数据;根据所述至少一个边缘计算节点及其所依赖的基础设施的当前功耗数据,以及预先训练出的成本代价影响因子与成本代价之间存在的影响关系,预测所述至少一个边缘计算节点的成本代价;根据所述至少一个边缘计算节点的成本代价,对所述至少一个边缘计算节点进行资源调度;其中,所述至少一个边缘计算节点来自于所述若干个边缘计算节点。The server is configured to obtain current data corresponding to the cost impact factor of at least one edge computing node, where the current data includes current power consumption data of the at least one edge computing node and the infrastructure on which it depends; Describe the current power consumption data of the at least one edge computing node and the infrastructure on which it depends, and the pre-trained cost impact factor and the impact relationship between the cost price, and predict the cost price of the at least one edge computing node; According to the cost of the at least one edge computing node, resource scheduling is performed on the at least one edge computing node; wherein the at least one edge computing node comes from the plurality of edge computing nodes.
PCT/CN2019/105455 2019-09-11 2019-09-11 Resource scheduling method and information prediction method, device, system, and storage medium WO2021046774A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980095643.XA CN113826078B (en) 2019-09-11 2019-09-11 Resource scheduling and information prediction method, device, system and storage medium
PCT/CN2019/105455 WO2021046774A1 (en) 2019-09-11 2019-09-11 Resource scheduling method and information prediction method, device, system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/105455 WO2021046774A1 (en) 2019-09-11 2019-09-11 Resource scheduling method and information prediction method, device, system, and storage medium

Publications (1)

Publication Number Publication Date
WO2021046774A1 true WO2021046774A1 (en) 2021-03-18

Family

ID=74866881

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/105455 WO2021046774A1 (en) 2019-09-11 2019-09-11 Resource scheduling method and information prediction method, device, system, and storage medium

Country Status (2)

Country Link
CN (1) CN113826078B (en)
WO (1) WO2021046774A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114024977A (en) * 2021-10-29 2022-02-08 深圳市高德信通信股份有限公司 Data scheduling method, device and system based on edge calculation
CN115630772A (en) * 2022-12-19 2023-01-20 国网浙江省电力有限公司宁波供电公司 Integrated energy detection and distribution method, system, equipment and storage medium
CN117057527A (en) * 2023-06-30 2023-11-14 东风设备制造有限公司 Intelligent operation and maintenance method and system for industrial Internet of things of automobile manufacturing equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860944A (en) * 2009-04-13 2010-10-13 华为技术有限公司 Method and device for controlling energy efficiency of communication system, service processing unit and service processing system
CN102624546A (en) * 2012-02-28 2012-08-01 华为技术有限公司 Control method, control equipment and control system for capping power consumption
CN104049716A (en) * 2014-06-03 2014-09-17 中国科学院计算技术研究所 Computer energy-saving method and system combined with temperature sensing
US20170004063A1 (en) * 2015-06-30 2017-01-05 Freescale Semiconductor, Inc. Flash memory controller, data processing system with flash memory controller and method of operating a flash memory controller
CN107844404A (en) * 2016-09-20 2018-03-27 中国石油化工股份有限公司 A kind of computer room power consumption exhibiting device and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8374928B2 (en) * 2010-02-25 2013-02-12 International Business Machines Corporation Data center power cost accounting system
CN105243068A (en) * 2014-07-09 2016-01-13 华为技术有限公司 Database system query method, server and energy consumption test system
CN109800066B (en) * 2018-12-13 2020-11-03 中国科学院信息工程研究所 Energy-saving scheduling method and system for data center

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860944A (en) * 2009-04-13 2010-10-13 华为技术有限公司 Method and device for controlling energy efficiency of communication system, service processing unit and service processing system
CN102624546A (en) * 2012-02-28 2012-08-01 华为技术有限公司 Control method, control equipment and control system for capping power consumption
CN104049716A (en) * 2014-06-03 2014-09-17 中国科学院计算技术研究所 Computer energy-saving method and system combined with temperature sensing
US20170004063A1 (en) * 2015-06-30 2017-01-05 Freescale Semiconductor, Inc. Flash memory controller, data processing system with flash memory controller and method of operating a flash memory controller
CN107844404A (en) * 2016-09-20 2018-03-27 中国石油化工股份有限公司 A kind of computer room power consumption exhibiting device and method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114024977A (en) * 2021-10-29 2022-02-08 深圳市高德信通信股份有限公司 Data scheduling method, device and system based on edge calculation
CN114024977B (en) * 2021-10-29 2024-02-06 深圳市高德信通信股份有限公司 Data scheduling method, device and system based on edge calculation
CN115630772A (en) * 2022-12-19 2023-01-20 国网浙江省电力有限公司宁波供电公司 Integrated energy detection and distribution method, system, equipment and storage medium
CN117057527A (en) * 2023-06-30 2023-11-14 东风设备制造有限公司 Intelligent operation and maintenance method and system for industrial Internet of things of automobile manufacturing equipment
CN117057527B (en) * 2023-06-30 2024-05-14 东风设备制造有限公司 Intelligent operation and maintenance method and system for industrial Internet of things of automobile manufacturing equipment

Also Published As

Publication number Publication date
CN113826078B (en) 2023-01-10
CN113826078A (en) 2021-12-21

Similar Documents

Publication Publication Date Title
Xia et al. Phone2Cloud: Exploiting computation offloading for energy saving on smartphones in mobile cloud computing
Gu et al. Optimal task placement with QoS constraints in geo-distributed data centers using DVFS
US11009836B2 (en) Apparatus and method for optimizing quantifiable behavior in configurable devices and systems
US9954758B2 (en) Virtual network function resource allocation and management system
WO2021046774A1 (en) Resource scheduling method and information prediction method, device, system, and storage medium
US10061366B2 (en) Schedule-based energy storage device selection
Hao et al. Energy-aware scheduling in edge computing with a clustering method
TW201301052A (en) Power and load management based on contextual information
Rui et al. Computation offloading in a mobile edge communication network: A joint transmission delay and energy consumption dynamic awareness mechanism
Adhikary et al. Quality of service aware cloud resource provisioning for social multimedia services and applications
Fu et al. Traffic prediction-enabled energy-efficient dynamic computing resource allocation in cran based on deep learning
WO2021046777A1 (en) Resource scheduling method, device, and system, resource application method, device, and system, resource pricing method, device, and system, and storage medium
Magotra et al. Adaptive computational solutions to energy efficiency in cloud computing environment using VM consolidation
Dlamini et al. Online supervisory control and resource management for energy harvesting BS sites empowered with computation capabilities
Bali et al. An effective technique to schedule priority aware tasks to offload data on edge and cloud servers
Yao et al. Data-driven resource allocation with traffic load prediction
Durga et al. Context-aware adaptive resource provisioning for mobile clients in intra-cloud environment
CN113728294B (en) Power consumption control and scheme generation method, device, system and storage medium
Liu et al. Energy‐aware virtual machine consolidation based on evolutionary game theory
Wang et al. Performance evaluation and social optimization of an energy-saving virtual machine allocation scheme within a cloud environment
Cui et al. EESaver: Saving Energy Dynamically for Green Multi-access Edge Computing
Anastasopoulos et al. Optical wireless network convergence in support of energy-efficient mobile cloud services
Surya et al. Novel Approaches for Resource Management Across Edge Servers
Dewi et al. Toward Task Scheduling Approaches to Reduce Energy Consumption in Cloud Computing Environment
Xia et al. Distributed Computing and Networking Coordination for Task Offloading Under Uncertainties

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: 19944769

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: 19944769

Country of ref document: EP

Kind code of ref document: A1