Computing power processing method and device, related equipment and storage medium
Through the energy consumption information interaction between computing power equipment, energy consumption calculation for business pre-migration is realized, the new energy consumption problem of computing power infrastructure is solved, the efficiency of new energy utilization is improved, and the number of invalid migrations and signaling overhead is reduced.
Patent Information
- Application Number
- CN202410172078.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2025-08-08
AI Technical Summary
There are obvious dynamic changes in the power consumption and business load of computing power infrastructure, resulting in high hardware redundancy and low utilization rate. The existing technology cannot effectively dispatch new energy power for local consumption.
Through the interaction of energy consumption-related information between computing power equipment, energy consumption calculations are carried out for pre-migration of services, and decisions are made on which businesses can absorb new energy power, reducing the number of invalid migrations and signaling overhead.
It improves the efficiency of new energy utilization, reduces the number of invalid migrations and signaling overhead, and optimizes the energy consumption management of computing power equipment.
Smart Images

Figure CN120448079A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computing power technology, and in particular to a computing power processing method, apparatus, related equipment and storage medium. Background Art
[0002] The power consumption of computing infrastructure, such as computing base stations and data centers, varies significantly with business load. Business load varies significantly over time, and many industries experience peaks and valleys in their network applications. Furthermore, computing infrastructure hardware is often configured to target peak loads, resulting in high redundancy and low utilization. Currently, there is no effective solution to this problem. Summary of the Invention
[0003] To solve related technical problems, the embodiments of the present application provide a computing power processing method, apparatus, related equipment and storage medium.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The embodiment of the present application provides a computing power processing method, which is applied to a first computing power device, including:
[0006] Obtain power information from the distribution network;
[0007] Sending first information to the second computing device based on the power information; the first information includes a request related to the service and resource configuration of the second computing device;
[0008] receiving second information of the target business sent by the second computing device based on the first information, wherein the second message includes a response to the first message;
[0009] It is determined whether the target service is to be migrated based on the second information and the power information.
[0010] In the above solution, the second information includes at least one of the following:
[0011] Business parameters; the business parameters characterize the resource situation of the target business;
[0012] Configuration parameters; the configuration parameters represent the configuration of the second computing power device.
[0013] In the above solution, the service parameter includes at least one of the following:
[0014] Service type parameters; the service type parameters include at least parameters of computing services, input or output services, and storage services;
[0015] Resource requirement parameters; the resource requirement parameters include at least parameters of computing resources, memory resources, and storage resources;
[0016] Resource status parameters; the resource status parameters include at least parameters of computing resource utilization, memory utilization, and storage resource utilization.
[0017] In the above solution, the determining whether to migrate the target service based on the second information and the power information includes:
[0018] Determine, based on the second information and the power information, a service utilization rate of a central processing unit (CPU) after the target service is pre-migrated to the first computing device;
[0019] Determining an expected utilization rate of the CPU of the first computing device according to the service utilization rate;
[0020] determining an expected power consumption of the first computing device based on the expected utilization;
[0021] Determine whether to migrate the target service according to the expected power consumption.
[0022] In the above solution, determining the expected utilization rate of the CPU of the first computing device based on the service utilization rate includes:
[0023] Obtaining an actual CPU utilization of the first computing device and a correction factor configured for the service utilization;
[0024] An expected utilization rate of the CPU of the first computing device is determined based on the actual utilization rate, the service utilization rate, and the correction factor.
[0025] In the above solution, the method further includes:
[0026] The first flag parameter, the second flag parameter, and the third flag parameter are encapsulated to obtain the first response information.
[0027] In the above solution, determining the expected power consumption of the first computing device based on the expected utilization rate includes:
[0028] When the value of the expected utilization is greater than or equal to a first threshold and less than a second threshold, obtaining a first power consumption of the first computing power device and a first weight factor of the expected utilization;
[0029] An expected power consumption of the first computing device is determined based on the first power consumption, the first weight factor, and the expected utilization.
[0030] In the above solution, determining the expected power consumption of the first computing device based on the expected utilization rate includes:
[0031] When the value of the expected utilization is greater than or equal to the second threshold and less than a third threshold, obtaining a second power consumption of the first computing power device and a second weight factor of the expected utilization;
[0032] An expected power consumption of the first computing device is determined based on the second power consumption, the second weight factor, and the expected utilization.
[0033] In the above solution, determining whether to migrate the target service according to the expected power consumption includes:
[0034] Obtaining actual power consumption of the first computing device;
[0035] determining a difference between the expected power consumption and the actual power consumption;
[0036] Determining whether the difference is greater than a preset threshold;
[0037] When the difference is greater than the preset threshold, determining that the target service is to be migrated;
[0038] When the difference is less than or equal to the preset threshold, it is determined that the target service is not to be migrated.
[0039] In the above solution, after determining the target service to be migrated, the method further includes:
[0040] Updating the actual power consumption of the first computing power device to the expected power consumption;
[0041] Based on the power information and the expected power consumption, it is determined whether computing devices other than the second computing device perform other service pre-migration.
[0042] In the above solution, the power information includes at least one of the following:
[0043] Battery information;
[0044] Power information;
[0045] Time information.
[0046] The embodiment of the present application further provides a computing power processing method, which is applied to a second computing power device, including:
[0047] Receiving first information sent by a first computing device, wherein the first information includes a request related to business and resource configuration of a second computing device;
[0048] determining second information of the target business based on the first information;
[0049] The second information is sent to the first computing power device; the second information is used by the first computing power device to determine whether the target business is to be migrated.
[0050] In the above solution, the second information includes at least one of the following:
[0051] Business parameters; the business parameters characterize the resource situation of the target business;
[0052] Configuration parameters; the configuration parameters represent the configuration of the second computing power device.
[0053] In the above solution, the service parameter includes at least one of the following:
[0054] Service type parameters; the service type parameters include at least parameters of computing services, input or output services, and storage services;
[0055] Resource requirement parameters; the resource requirement parameters include at least parameters of computing resources, memory resources, and storage resources;
[0056] Resource status parameters; the resource status parameters include at least parameters of computing resource utilization, memory utilization, and storage resource utilization.
[0057] The present application also provides a computing power processing device, which is provided on a first computing power device and includes:
[0058] an acquisition unit, configured to acquire power information of a power distribution network;
[0059] A first sending unit, configured to send first information to the second computing power device based on the power information; the first information includes a request related to the service and resource configuration of the second computing power device;
[0060] a first receiving unit, configured to receive second information of a target service sent by the second computing device based on the first information; the second message including a response to the first message;
[0061] A first determining unit is configured to determine whether to migrate the target service based on the second information and the power information.
[0062] The present application also provides a computing power processing device, which is provided on a second computing power device and includes:
[0063] A second receiving unit is configured to receive first information sent by the first computing device; the first information includes a request related to the service and resource configuration of the second computing device;
[0064] a second determining unit, configured to determine second information of the target service based on the first information;
[0065] The second sending unit is used to send the second information to the first computing power device; the second information is used by the first computing power device to determine whether the target business is to be migrated.
[0066] The embodiment of the present application further provides a first computing device, comprising: a first communication interface and a first processor; wherein,
[0067] The first communication interface is configured to obtain power information of a power distribution network; send first information to a second computing device based on the power information; the first information includes a request related to a service and resource configuration of the second computing device; receive second information of a target service sent by the second computing device based on the first information; the second message includes a response to the first message;
[0068] The first processor is configured to determine whether to migrate the target service based on the second information and the power information.
[0069] The embodiment of the present application further provides a second computing device, comprising: a second communication interface and a second processor; wherein,
[0070] The second communication interface is configured to receive first information sent by the first computing device; the first information includes a request related to the service and resource configuration of the second computing device;
[0071] The second processor is configured to determine second information of the target service based on the first information;
[0072] The second communication interface is further used to send the second information to the first computing device; the second information is used by the first computing device to determine whether the target business is to be migrated.
[0073] The embodiment of the present application further provides a first computing device, comprising: a first processor and a first memory for storing a computer program that can be run on the processor,
[0074] Among them, when the first processor is used to run the computer program, it executes the steps of any method on the first computing power device side.
[0075] The embodiment of the present application further provides a second computing device, comprising: a second processor and a second memory for storing a computer program that can be run on the processor,
[0076] Among them, when the second processor is used to run the computer program, it executes the steps of any method on the second computing power device side.
[0077] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any method on the first computing power device side or the steps of any method on the second computing power device side.
[0078] An embodiment of the present application also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of any method on the first computing power device side mentioned above, or implements the steps of any method on the second computing power device side mentioned above.
[0079] The computing power processing method, apparatus, related equipment and storage medium provided in the embodiments of the present application are as follows: a first computing power device obtains power information of a power distribution network; based on the power information, first information is sent to a second computing power device; the first information includes a request related to the business and resource configuration of the second computing power device; second information of the target business sent by the second computing power device based on the first information is received; the second message includes a response to the first message; based on the second information and the power information, it is determined whether the target business is to be migrated; accordingly, for the second computing power device, the first information sent by the first computing power device is received; the first information includes a request related to the business and resource configuration of the second computing power device; second information of the target business is determined based on the first information; the second information is sent to the first computing power device; the second information is used by the first computing power device to determine whether the target business is to be migrated. By adopting the technical solution of the present application, through the interaction of energy consumption-related information between computing power devices, computing power devices can perform energy consumption calculation of computing power devices for business pre-migration, and thus more accurately decide which businesses to migrate to absorb new energy electricity, improve the efficiency of new energy utilization, and reduce the number of invalid migrations and signaling overhead. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] Figure 1 It is a schematic diagram of distributed photovoltaic, load and distribution station areas;
[0081] Figure 2 This is a flowchart of the computing power processing method according to an embodiment of the present application;
[0082] Figure 3 This is another flowchart of the computing power processing method according to an embodiment of the present application;
[0083] Figure 4 This is a schematic diagram of the interaction between the first computing device and the second computing device according to an embodiment of the present application;
[0084] Figure 5 This is another schematic diagram of the interaction between the first computing device and the second computing device according to an embodiment of the present application;
[0085] Figure 6A schematic diagram of a device for computing power processing according to an embodiment of the present application;
[0086] Figure 7 A schematic diagram of another device for computing power processing according to an embodiment of the present application;
[0087] Figure 8 This is a schematic diagram of the structure of the first computing device in an embodiment of the present application;
[0088] Figure 9 This is a schematic diagram of the structure of the second computing device in an embodiment of the present application;
[0089] Figure 10 This is a schematic diagram of the computing power processing system structure of an embodiment of the present application. DETAILED DESCRIPTION
[0090] The present application will be described in further detail below with reference to the accompanying drawings and embodiments.
[0091] As an important part of the new energy system, the scale of renewable energy generation represented by distributed photovoltaic power generation is constantly increasing. Due to the discrete and intermittent characteristics of distributed new energy generation, the existing power dispatching system cannot achieve dynamic local absorption. The existing solution is to absorb it through other loads after grid connection, which requires a major transformation of the traditional power grid and will have a huge impact on the existing power network architecture. Figure 1 To illustrate with an example, Figure 1 This is a schematic diagram of distributed photovoltaics, loads, and distribution substations. The electricity generated by distributed photovoltaics within distribution substation area 1 (usually covering a few hundred meters) can only be consumed by the power loads within distribution substation area 1. If this part of the electricity is to be dispatched to distribution substation area 2, all distribution transformers on the line in substation area 1 need to be modified, which not only brings about modification costs but also low power supply efficiency.
[0092] Currently, society is experiencing a strong demand for digitalization and intelligentization. Computing networks are experiencing rapid development, leading to a surge in energy consumption. Some organizations predict that national data center electricity consumption will exceed 400 billion kilowatt-hours by 2030. The power consumption of computing infrastructure, such as computing base stations and data centers, varies significantly with service load. Service load varies significantly over time, and many industries experience peaks and valleys in their network applications. Furthermore, computing infrastructure is often configured with hardware tailored to peak loads, resulting in high redundancy and low utilization. Therefore, there is significant room for adjustment in computing power consumption. This can be further understood in conjunction with Table 1, which shows the relationship between ICT server power consumption and service load.
[0093] Table 1
[0094] CPU utilization changes 70%->30% 70%->15% 80%->30% 80%->15% Single server power consumption reduction 50w 70w 60w 90w
[0095] Typically, the physical equipment in computing infrastructure is divided into IT equipment, cooling equipment, and power distribution equipment. Power usage effectiveness (PUE) is often used as an energy efficiency metric. This is defined as the ratio of total energy consumption to IT equipment energy consumption. Currently, advanced data centers typically have a PUE below 1.3. Servers, which provide computing resources, are the largest power-consuming IT equipment. Their power consumption is determined by major heat-generating components such as the CPU, memory, hard drives, and network cards. The CPU and memory together account for over 75% of the server's total power consumption.
[0096] Existing technologies focus on achieving energy conservation and carbon reduction in computing power infrastructure. Regarding cost savings, while ensuring service demand, technologies such as virtualization and load balancing are used to improve server resource utilization efficiency, and further energy conservation is achieved by shutting down servers with extremely low loads. Regarding open source, the focus is on self-built distributed photovoltaic and other renewable energy power supplies, while research on collaborating with power grids to absorb renewable energy is relatively limited. Given the growing power consumption of computing power and the dynamic adjustable range of computing power usage, if computing power usage can be included as an adjustable load in the coordinated dispatch of the power system, it will promote the local absorption of large-scale distributed renewable energy and bring huge economic and social benefits.
[0097] Related technologies focus on estimating or predicting energy consumption for data center servers, but have limited research on computing networks or energy consumption awareness between networked computing nodes. They also fail to consider information exchange and energy consumption awareness between networked computing nodes, or the calculation of business energy consumption to device energy consumption, making them unable to support business migration towards renewable energy consumption.
[0098] Regarding information exchange between nodes, related technologies primarily focus on reporting load and energy consumption information for wireless base stations, with limited research on energy consumption interactions among computing nodes. This technology also fails to consider the energy consumption of computing resources, making it unsuitable for computing base station scenarios and unable to support energy consumption awareness for computing services designed to accommodate new energy consumption.
[0099] Based on this, the present application exchanges migratable service information and computing power equipment configuration information between computing power devices (for example, computing power base stations). The computing power base station can perform energy consumption calculations on computing power equipment for pre-migration of services based on the interactive information. Combined with the amount of new energy electricity that needs to be consumed, it can make more accurate decisions on the services to be migrated, improve the utilization rate of new energy, and reduce the number of invalid migrations and signaling overhead.
[0100] The present application embodiment provides a computing power processing method, which is applied to a first computing power device. Figure 2 Schematic diagram of the flow of the computing power processing method of the embodiment of the present application; Figure 2 As shown, the method includes:
[0101] Step 201: Obtain power information of the power distribution network.
[0102] Step 202: Send first information to the second computing power device based on the power information; the first information includes a request related to the business and resource configuration of the second computing power device.
[0103] Step 203: Receive second information of the target business sent by the second computing power device based on the first information; the second message includes a response to the first message.
[0104] Step 204: Determine whether to migrate the target service based on the second information and the power information.
[0105] It should be noted that the first computing device can be any computing device and is not limited here. As an example, the first computing device may include at least a computing base station, a cloud server, a cloud computing platform, and a cloud management platform. The second computing device can also be determined based on actual circumstances and is not limited here. As an example, the second computing device may include at least a computing base station, a cloud server, a cloud computing platform, and a cloud management platform. For ease of understanding, the first computing device can be computing base station A within the distribution network; the second computing device can be computing base station B outside the distribution network.
[0106] In step 201, the power information may be determined according to actual conditions, which is not limited here. As an example, the power information may include at least one of the following: power information; power information; time information.
[0107] The power distribution network may be any power distribution network and is not limited here. As an example, the power distribution network may be a State Grid power distribution network.
[0108] Obtaining power information from the power distribution network can be understood as the first computing device interacting with the power distribution network in real time to obtain power information from the power distribution network. As an example, the first computing device interacting with the power distribution network in real time to obtain power information from the power distribution network can be computing power base station A interacting with the State Grid power distribution network in real time to obtain power information from the State Grid power distribution network.
[0109] In step 202, the first information includes a request related to the service and resource configuration of the second computing power device; the first information can be understood as request information related to the service and resource configuration of the second computing power device. As an example, sending the first information to the second computing power device based on the power information can be understood as computing power base station A sending request information related to the service and resource configuration of computing power base station B to computing power base station B based on the power information of the State Grid distribution network.
[0110] In step 203, the second message can be determined based on actual conditions, which is not limited here. As an example, the second information may include at least one of the following: business parameters; the business parameters represent the resource status of the target business; configuration parameters; the configuration parameters represent the configuration status of the second computing power device.
[0111] The second message includes a response to the first message; the second information can be understood as response information to the first message, that is, response information to the request information related to the service and resource configuration of the second computing power device. As an example, receiving the second information of the target service sent by the second computing power device based on the first information can be understood as computing power base station A receiving the response information of the target service sent by computing power base station B based on the request information.
[0112] In step 204, the specific determination process of determining whether the target business is to be migrated based on the second information and the power information can be determined according to actual conditions and is not limited here. As an example, determining whether the target business is to be migrated based on the second information and the power information may include determining the service utilization of the CPU after the target business is pre-migrated to the first computing power device based on the second information and the power information; determining the expected utilization of the CPU of the first computing power device based on the service utilization; determining the expected power consumption of the first computing power device based on the expected utilization; and determining whether the target business is to be migrated based on the expected power consumption.
[0113] In the embodiment of the present application, through the interaction of energy consumption-related information between computing power devices, computing power devices can perform computing power device energy consumption calculations for business pre-migration, and thus more accurately decide which businesses to migrate to consume new energy electricity, thereby improving the efficiency of new energy utilization, while reducing the number of invalid migrations and signaling overhead.
[0114] In one embodiment, the second information includes at least one of the following:
[0115] Business parameters; the business parameters characterize the resource situation of the target business;
[0116] Configuration parameters; the configuration parameters represent the configuration of the second computing power device.
[0117] It should be noted that the business parameters characterize the resource situation of the target business; the business parameters can be determined according to actual conditions and are not limited here. As an example, the business parameters may include at least one of the following: business type parameters; the business type parameters include at least parameters of computing business, input or output business, and storage business; resource demand parameters; the resource demand parameters include at least parameters of computing resources, memory resources, and storage resources; resource status parameters; the resource status parameters include at least parameters of computing resource utilization, memory utilization, and storage resource utilization.
[0118] The configuration parameters represent the configuration of the second computing power device; the configuration parameters can be determined based on actual conditions and are not limited here. As an example, the configuration parameters may include but are not limited to CPU, memory, storage and other configuration specifications.
[0119] In practical applications, the business parameters can be understood as migratable business parameters; and the configuration parameters can be understood as computing power device configuration parameters.
[0120] In one embodiment, the service parameter includes at least one of the following:
[0121] Service type parameters; the service type parameters include at least parameters of computing services, input or output services, and storage services;
[0122] Resource requirement parameters; the resource requirement parameters include at least parameters of computing resources, memory resources, and storage resources;
[0123] Resource status parameters; the resource status parameters include at least parameters of computing resource utilization, memory utilization, and storage resource utilization.
[0124] In this embodiment, the input or output type service can be recorded as an input / output (IO) type service. In actual applications, the service type parameter can be simply recorded as a service type; the service type parameter includes at least parameters of computing type service, input or output type service, and storage type service, which can be simply recorded as a service type, including computing type service, IO type service, and storage type service.
[0125] The computing resources can be determined according to actual conditions and are not limited here. As an example, the computing resources can be computing power resources; the resource requirement parameters can be simply referred to as resource requirements; the resource requirement parameters at least include computing resources, memory resources, and storage resources, which can be simply referred to as resource requirements, including computing power resources, memory resources, storage resources, etc.
[0126] The resource status parameters can be determined according to actual conditions and are not limited here. As an example, the resource status parameters can be operating parameters; the computing resource utilization can be called CPU utilization; as an example, the resource status parameters include at least computing resource utilization, memory utilization, and storage resource utilization, which can be simply referred to as operating parameters, including the CPU utilization of the business, memory utilization, etc.
[0127] In one embodiment, determining whether to migrate the target service based on the second information and the power information includes:
[0128] Determine, based on the second information and the power information, a service utilization rate of the CPU after the target service is pre-migrated to the first computing device;
[0129] Determining an expected utilization rate of the CPU of the first computing device according to the service utilization rate;
[0130] determining an expected power consumption of the first computing device based on the expected utilization;
[0131] Determine whether to migrate the target service according to the expected power consumption.
[0132] In this embodiment, the specific determination process of determining the service utilization of the CPU after the target business is pre-migrated to the first computing power device based on the second information and the power information can be determined according to actual conditions, and is not limited here. It is used as an example.
[0133] The specific determination process of determining the expected utilization of the CPU of the first computing power device based on the service utilization can be determined according to actual conditions and is not limited here. As an example, determining the expected utilization of the CPU of the first computing power device based on the service utilization may include obtaining the actual utilization of the CPU of the first computing power device and the correction factor configured for the service utilization; and determining the expected utilization of the CPU of the first computing power device based on the actual utilization, the service utilization and the correction factor.
[0134] The specific determination process of determining the expected power consumption of the first computing power device based on the expected utilization can be determined according to actual conditions and is not limited here. As an example, determining the expected power consumption of the first computing power device based on the expected utilization may include obtaining the first power consumption of the first computing power device and the first weight factor of the expected utilization when the value of the expected utilization is greater than or equal to a first threshold and less than a second threshold; and determining the expected power consumption of the first computing power device based on the first power consumption, the first weight factor and the expected utilization.
[0135] The specific determination process of determining whether the target business is to be migrated based on the expected power consumption can be determined according to actual conditions and is not limited here. As an example, determining whether the target business is to be migrated based on the expected power consumption can include obtaining the actual power consumption of the first computing power device; determining the difference between the expected power consumption and the actual power consumption; judging whether the difference is greater than a preset threshold; if the difference is greater than the preset threshold, determining that the target business is to be migrated; if the difference is less than or equal to the preset threshold, determining that the target business is not to be migrated.
[0136] In one embodiment, determining the expected utilization of the CPU of the first computing device based on the service utilization includes:
[0137] Obtaining an actual CPU utilization of the first computing device and a correction factor configured for the service utilization;
[0138] An expected utilization rate of the CPU of the first computing device is determined based on the actual utilization rate, the service utilization rate, and the correction factor.
[0139] In this embodiment, the actual utilization rate, the service utilization rate and the correction factor can be determined according to actual conditions and are not limited here. As an example, the actual utilization rate can be recorded as The service utilization rate can be expressed as The correction factor can be denoted as α. Parameter α is a correction factor for differences in computing power device configuration. For computing power devices with the same configuration, the parameter value is 1. If the computing power device before the service migration has a higher configuration and the service's CPU utilization is lower, the parameter value can be set to greater than 1. Conversely, if the configuration is lower, the parameter value can be set to less than 1.
[0140] The specific determination process of determining the expected utilization rate of the CPU of the first computing device according to the actual utilization rate, the service utilization rate and the correction factor can be determined according to actual conditions and is not limited here. As an example, determining the expected utilization rate of the CPU of the first computing device according to the actual utilization rate, the service utilization rate and the correction factor can be determining the expected utilization rate of the CPU of the first computing device according to the actual utilization rate, the service utilization rate and the correction factor through a preset algorithm; wherein the expected utilization rate can be recorded as U CPU The preset algorithm can be determined according to actual conditions and is not limited here. As an example, the preset algorithm can refer to formula (1).
[0141]
[0142] In one embodiment, determining the expected power consumption of the first computing device based on the expected utilization includes:
[0143] When the value of the expected utilization is greater than or equal to a first threshold and less than a second threshold, obtaining a first power consumption of the first computing power device and a first weight factor of the expected utilization;
[0144] An expected power consumption of the first computing device is determined based on the first power consumption, the first weight factor, and the expected utilization.
[0145] In this embodiment, the first threshold and the second threshold can be determined according to actual conditions and are not limited here. As an example, the first threshold can be 0; the second threshold can be 70%.
[0146] The first weight factor can be determined according to actual conditions and is not limited here. As an example, the first weight factor can be recorded as C0.
[0147] The specific determination process of determining the expected power consumption of the first computing device based on the first power consumption, the first weight factor and the expected utilization rate can be determined according to actual conditions and is not limited here. As an example, determining the expected power consumption of the first computing device based on the first power consumption, the first weight factor and the expected utilization rate can be determining the expected power consumption of the first computing device based on the first power consumption, the first weight factor and the expected utilization rate through a preset algorithm; wherein the first power consumption can be recorded as The first weight factor can be recorded as C0; the expected utilization rate can be recorded as U CPU ; The expected power consumption can be recorded as The preset algorithm can be determined according to actual conditions and is not limited here. As an example, the preset algorithm can refer to formula (2).
[0148]
[0149] In one embodiment, determining the expected power consumption of the first computing device based on the expected utilization includes:
[0150] When the value of the expected utilization is greater than or equal to the second threshold and less than a third threshold, obtaining a second power consumption of the first computing power device and a second weight factor of the expected utilization;
[0151] An expected power consumption of the first computing device is determined based on the second power consumption, the second weight factor, and the expected utilization.
[0152] In this embodiment, the second threshold and the third threshold can be determined according to actual conditions and are not limited here. As an example, the second threshold can be 70%; and the third threshold can be 100%.
[0153] The second weighting factor can be determined according to actual conditions and is not limited here. As an example, the first weighting factor can be recorded as C1.
[0154] The specific determination process of determining the expected power consumption of the first computing device based on the second power consumption, the second weight factor and the expected utilization rate can be determined according to actual conditions and is not limited here. As an example, determining the expected power consumption of the first computing device based on the second power consumption, the second weight factor and the expected utilization rate can be determining the expected power consumption of the first computing device based on the second power consumption, the second weight factor and the expected utilization rate through a preset algorithm; wherein the second power consumption can be recorded as The second weight factor can be recorded as C1; the expected utilization rate can be recorded as U CPU ; The expected power consumption can be recorded as The preset algorithm can be determined according to actual conditions and is not limited here. As an example, the preset algorithm can refer to formula (3).
[0155]
[0156] In one embodiment, determining whether to migrate the target service according to the expected power consumption includes:
[0157] Obtaining actual power consumption of the first computing device;
[0158] determining a difference between the expected power consumption and the actual power consumption;
[0159] Determining whether the difference is greater than a preset threshold;
[0160] When the difference is greater than the preset threshold, determining that the target service is to be migrated;
[0161] When the difference is less than or equal to the preset threshold, it is determined that the target service is not to be migrated.
[0162] In this embodiment, the actual power consumption can be determined according to actual conditions and is not limited here. As an example, the actual power consumption can be recorded as
[0163] Determining the difference between the expected power consumption and the actual power consumption may be understood as subtracting the expected power consumption from the actual power consumption.
[0164] The preset threshold value can be determined according to actual conditions and is not limited here. As an example, the preset threshold value can be recorded as Threshold.
[0165] When the difference is greater than the preset threshold, determining that the target business is to be migrated can be understood as when the difference is greater than the preset threshold, the new energy electricity that can be absorbed after the business migration is higher than the migration cost, then the business migration is performed.
[0166] When the difference is less than or equal to the preset threshold, determining that the target business will not be migrated can be understood as when the difference is less than or equal to the preset threshold, the new energy electricity that can be absorbed after the business migration is not higher than the migration cost, then the business migration will not be performed.
[0167] In actual applications, if the expected increase in device power consumption is greater than a preset threshold, and the amount of renewable energy that can be absorbed after business migration is higher than the migration cost, business migration is performed. The difference greater than the preset threshold can be referred to formula (4):
[0168]
[0169] In one embodiment, after determining the target service to be migrated, the method further includes:
[0170] Updating the actual power consumption of the first computing power device to the expected power consumption;
[0171] Based on the power information and the expected power consumption, it is determined whether computing devices other than the second computing device perform other service pre-migration.
[0172] In this embodiment, after determining that the target business is to be migrated, it can be understood that the expected increase in equipment power consumption is greater than a preset threshold, the amount of new energy electricity that can be absorbed after the business migration is higher than the migration cost, and the business migration has been performed.
[0173] The actual power consumption can be recorded as The expected power consumption can be expressed as Updating the actual power consumption of the first computing device to the expected power consumption can be understood as Updated to
[0174] Determining whether computing devices other than the second computing device perform other business pre-migration based on the power information and the expected power consumption can be understood as determining whether the remaining new energy electricity that needs to be absorbed performs other business pre-migration based on the power information and the expected power consumption.
[0175] For example, if the expected increase in device power consumption exceeds a preset threshold, and the renewable energy capacity available after service migration exceeds the migration cost, the service has already been migrated and the device power consumption has been updated. Based on the remaining renewable energy capacity to be consumed, decisions are made regarding the pre-migration of other services.
[0176] In one embodiment, the power information includes at least one of the following:
[0177] Battery information;
[0178] Power information;
[0179] Time information.
[0180] In this embodiment, the power information, the power information, and the time information can all be determined according to actual conditions and are not limited here.
[0181] Accordingly, the embodiment of the present application further provides a data transmission method, which is applied to the second computing device. Figure 3 This is another flow chart of the computing power processing method according to the embodiment of the present application; Figure 3 As shown, the method includes:
[0182] Step 301: Receive first information sent by a first computing device; the first information includes a request related to the business and resource configuration of a second computing device.
[0183] Step 302: Determine second information of the target service based on the first information.
[0184] Step 303: Send the second information to the first computing power device; the second information is used by the first computing power device to determine whether the target business is to be migrated.
[0185] It should be noted that the first computing device can be any computing device and is not limited here. As an example, the first computing device may include at least a computing base station, a cloud server, a cloud computing platform, and a cloud management platform. The second computing device can also be determined based on actual circumstances and is not limited here. As an example, the second computing device may include at least a computing base station, a cloud server, a cloud computing platform, and a cloud management platform. For ease of understanding, the first computing device can be computing base station A within the distribution network; the second computing device can be computing base station B outside the distribution network.
[0186] In step 301, the first information includes a request related to the service and resource configuration of the second computing power device; the first information can be understood as request information related to the service and resource configuration of the second computing power device. As an example, sending the first information to the second computing power device based on the power information can be understood as computing power base station A sending request information related to the service and resource configuration of computing power base station B to computing power base station B based on the power information of the State Grid distribution network.
[0187] In step 302, the second message can be determined based on actual conditions, which is not limited here. As an example, the second information may include at least one of the following: business parameters; the business parameters represent the resource status of the target business; configuration parameters; the configuration parameters represent the configuration status of the second computing device.
[0188] The specific process for determining the second information of the target service based on the first information can be determined based on actual circumstances and is not limited here. As an example, the second message can include a response to the first message; the second information can be understood as response information to the first message, that is, response information to the request information related to the service and resource configuration of the second computing power device. As an example, receiving the second information of the target service sent by the second computing power device based on the first information can be understood as computing power base station A receiving the response information of the target service sent by computing power base station B based on the request information.
[0189] In step 303, the specific determination process of the second information being used by the first computing power device to determine whether the target business is to be migrated can be determined based on actual conditions and is not limited here. As an example, the second information being used by the first computing power device to determine whether the target business is to be migrated may include the second information being used by the first computing power device to determine the service utilization of the CPU after the target business is pre-migrated to the first computing power device; determining the expected utilization of the CPU of the first computing power device based on the service utilization; determining the expected power consumption of the first computing power device based on the expected utilization; and determining whether the target business is to be migrated based on the expected power consumption.
[0190] In the embodiment of the present application, through the interaction of energy consumption-related information between computing power devices, computing power devices can perform computing power device energy consumption calculations for business pre-migration, and thus more accurately decide which businesses to migrate to consume new energy electricity, thereby improving the efficiency of new energy utilization, while reducing the number of invalid migrations and signaling overhead.
[0191] In one embodiment, the second information includes at least one of the following:
[0192] Business parameters; the business parameters characterize the resource situation of the target business;
[0193] Configuration parameters; the configuration parameters represent the configuration of the second computing power device.
[0194] It should be noted that the business parameters characterize the resource situation of the target business; the business parameters can be determined according to actual conditions and are not limited here. As an example, the business parameters may include at least one of the following: business type parameters; the business type parameters include at least parameters of computing business, input or output business, and storage business; resource demand parameters; the resource demand parameters include at least parameters of computing resources, memory resources, and storage resources; resource status parameters; the resource status parameters include at least parameters of computing resource utilization, memory utilization, and storage resource utilization.
[0195] The configuration parameters represent the configuration of the second computing power device; the configuration parameters can be determined based on actual conditions and are not limited here. As an example, the configuration parameters may include but are not limited to CPU, memory, storage and other configuration specifications.
[0196] In practical applications, the business parameters can be understood as migratable business parameters; and the configuration parameters can be understood as computing power device configuration parameters.
[0197] In one embodiment, the service parameter includes at least one of the following:
[0198] Service type parameters; the service type parameters include at least parameters of computing services, input or output services, and storage services;
[0199] Resource requirement parameters; the resource requirement parameters include at least parameters of computing resources, memory resources, and storage resources;
[0200] Resource status parameters; the resource status parameters include at least parameters of computing resource utilization, memory utilization, and storage resource utilization.
[0201] In this embodiment, the input or output type service can be recorded as an input / output (IO) type service. In actual applications, the service type parameter can be simply recorded as a service type; the service type parameter includes at least parameters of computing type service, input or output type service, and storage type service, which can be simply recorded as a service type, including computing type service, IO type service, and storage type service.
[0202] The computing resources can be determined according to actual conditions and are not limited here. As an example, the computing resources can be computing power resources; the resource requirement parameters can be simply referred to as resource requirements; the resource requirement parameters at least include computing resources, memory resources, and storage resources, which can be simply referred to as resource requirements, including computing power resources, memory resources, storage resources, etc.
[0203] The resource status parameters can be determined according to actual conditions and are not limited here. As an example, the resource demand parameters can be operating parameters; the computing resource utilization can be called CPU utilization; as an example, the resource status parameters include at least computing resource utilization, memory utilization, and storage resource utilization, which can be simply referred to as operating parameters, including the CPU utilization of the business, memory utilization, etc.
[0204] To better understand this application, an actual application scenario is illustrated here, in which a computing power processing method is used as a computing power energy consumption perception and scheduling method, including the following steps:
[0205] In the first step, the computing power base station interacts with the State Grid distribution network in real time to determine whether there is any new energy that needs to be absorbed. If so, the power information that needs to be absorbed by the power grid is sent to the computing power base station within the distribution network (such as power information such as electricity quantity, power and time).
[0206] (1) The computing power base station can be integrated with a power grid communication module, which can be connected to the server of the power distribution network via wireless or wired connection, or a direct communication interface can be established between the base station and the local power distribution network;
[0207] (2) When the power grid has new energy that needs to be absorbed, the module / interface can be used to inform the computing power base station of the power information that needs to be absorbed, and the base station can use this module to inform the power grid of the new energy absorption status in real time.
[0208] In the second step, the computing power base station measures and stores the power consumption, CPU utilization, etc. of the computing power equipment in real time, and establishes the relationship between the equipment power consumption and CPU utilization.
[0209] Taking compute-intensive services as an example, device power consumption consists of base power consumption and CPU power consumption. Base power consumption refers to the power consumption when the device is idle, at which point the CPU utilization is zero. CPU power consumption is related to CPU utilization, and when CPU utilization is less than 70%, overall power consumption increases rapidly. When it is greater than 70%, the power consumption growth rate tends to be flat, approximately showing a linear growth relationship. Therefore, device power consumption can be modeled as a two-stage function. This two-stage function can be referred to as the following equations (5) and (6).
[0210] P=P0+C0*U CPU ,U CPU ∈[0,70%) (5)
[0211] P=P1+C1*U CPU ,U CPU ∈[70%,100%] (6)
[0212] In formulas (5) and (6), P0 and P1 are the power consumption when the CPU utilization is 0% and 70% respectively, both of which are constants and can be obtained from historical data statistics; C0 and C1 are constants and can be calculated from historical data; U CPU Is a variable that indicates CPU utilization.
[0213] In the third step, the computing power base station A within the distribution network and the computing power base station B outside the distribution network exchange relevant information in real time.
[0214] (1) Migratable business parameters, including but not limited to:
[0215] 1) Business type, including computing business, IO business, and storage business.
[0216] 2) Resource requirements, including computing resources, memory resources, storage resources, etc.
[0217] 3) Operational parameters, including CPU utilization and memory utilization of the business.
[0218] (2) Computing equipment configuration parameters, including but not limited to CPU, memory, storage and other configuration specifications. Figure 4 To understand, Figure 4 This is a schematic diagram of the interaction between the first computing device and the second computing device in an embodiment of the present application; Figure 4 In the example, the first computing power device can be understood as computing power device node 1 (Computing power Node1); the second computing power device can be understood as computing power device node 2 (Computing power Node2); the first computing power device sends a resource request (RESOURCE_STATUS_REQUEST) to the second computing power device; the second computing power device sends a resource response (RESOURCE_STATUS_RESPONSE) to the first computing power device; the first computing power device sends a resource update (RESOURCE_STATUS_UPDATE) to the second computing power device.
[0219] In the fourth step, computing power base station A perceives changes in energy consumption based on interactive information, and performs business pre-migration based on the amount of new energy electricity that needs to be absorbed.
[0220] (1) Sort by business type, giving priority to computing business, followed by memory and storage business.
[0221] (2) The current idle resources need to meet the resource requirements of the business.
[0222] (3) Calculate the expected device power consumption after the service migration. The calculation formula can refer to the previous formulas (1), (2), and (3).
[0223] The parameter α is a correction factor for configuration differences in computing devices. For computing devices with the same configuration, the parameter value is 1. If the computing device configuration before business migration is higher and the CPU utilization of the business is lower, the parameter value can be set to greater than 1. Conversely, if the configuration is lower, the parameter value is less than 1.
[0224] (4) If the expected increase in device power consumption exceeds the preset threshold and the renewable energy power that can be absorbed after the service migration is higher than the migration cost, the service migration is performed and the device power consumption is updated. Based on the remaining renewable energy power that needs to be absorbed, decisions are made on pre-migration of other services. The calculation formula can refer to the previous formula (4).
[0225] Step 5: Based on the above results, computing power base station A sends an instruction to the computing power base station where the business to be migrated is located to start the business migration. Figure 5 To understand, Figure 5 This is another schematic diagram of the interaction between the first computing device and the second computing device in the embodiment of the present application; Figure 5 In the figure, the first computing power device can be understood as computing power device node 1 (Computing power Node1); the second computing power device can be understood as computing power device node 2 (Computing powerNode2); the first computing power device sends a migration indication request (HANDOVER_INDICATION) to the second computing power device; the second computing power device sends a migration indication response (HANDOVER_REQUEST) to the first computing power device; the first computing power device sends a migration indication confirmation (HANDOVER_REQUEST_ACKNOWLEDGE) to the second computing power device.
[0226] In this application, the computing power base station can perform energy consumption perception of business pre-migration based on information interaction, and then make business migration decisions more accurately to absorb new energy electricity, improve the efficiency of new energy utilization, and at the same time reduce the number of invalid migrations and signaling overhead.
[0227] In this application, the power consumption of the target computing device after business pre-migration is calculated based on the two-stage energy consumption model based on CPU utilization and power consumption of the target computing device, the CPU utilization of the business on the source computing device, and taking into account the configuration differences of the computing devices.
[0228] In this application, migratable service parameters and computing equipment configuration parameters are obtained to assist the computing base station in calculating the equipment energy consumption after service pre-migration.
[0229] Compared with the existing technology, this application proposal can calculate the energy consumption of computing equipment for pre-migration of services through the interaction of energy consumption-related information between computing power base stations, and then make more accurate decisions on which services to migrate to absorb new energy electricity, thereby improving the efficiency of new energy utilization and reducing the number of invalid migrations and signaling overhead.
[0230] In order to implement the method of the embodiment of the present application, the embodiment of the present application further provides a computing power processing device, which is arranged on the first computing power device. Figure 6 Schematic diagram of the device for computing power processing according to the embodiment of the present application; Figure 6 As shown, the apparatus 600 includes:
[0231] An acquisition unit 601 is configured to acquire power information of a power distribution network;
[0232] A first sending unit 602 is configured to send first information to a second computing device based on the power information; the first information includes a request related to the service and resource configuration of the second computing device;
[0233] A first receiving unit 603 is configured to receive second information of a target service sent by the second computing device based on the first information; the second message includes a response to the first message;
[0234] The first determining unit 604 is configured to determine whether to migrate the target service based on the second information and the power information.
[0235] In one embodiment, the second information includes at least one of the following:
[0236] Business parameters; the business parameters characterize the resource situation of the target business;
[0237] Configuration parameters; the configuration parameters represent the configuration of the second computing power device.
[0238] In one embodiment, the service parameter includes at least one of the following:
[0239] Service type parameters; the service type parameters include at least parameters of computing services, input or output services, and storage services;
[0240] Resource requirement parameters; the resource requirement parameters include at least parameters of computing resources, memory resources, and storage resources;
[0241] Resource status parameters; the resource status parameters include at least parameters of computing resource utilization, memory utilization, and storage resource utilization.
[0242] In one embodiment, the first determination unit 604 is further used to determine the service utilization of the central processing unit CPU after the target business is pre-migrated to the first computing power device based on the second information and the power information; determine the expected utilization of the CPU of the first computing power device based on the service utilization; determine the expected power consumption of the first computing power device based on the expected utilization; and determine whether the target business is migrated based on the expected power consumption.
[0243] In one embodiment, the first determination unit 604 is further used to obtain the actual utilization of the CPU of the first computing power device and the correction factor of the service utilization configuration; and determine the expected utilization of the CPU of the first computing power device based on the actual utilization, the service utilization and the correction factor.
[0244] In one embodiment, the first determination unit 604 is further used to obtain the first power consumption of the first computing power device and the first weight factor of the expected utilization when the value of the expected utilization is greater than or equal to a first threshold and less than a second threshold; and determine the expected power consumption of the first computing power device based on the first power consumption, the first weight factor and the expected utilization.
[0245] In one embodiment, the first determination unit 604 is further used to obtain the second power consumption of the first computing power device and the second weight factor of the expected utilization when the value of the expected utilization is greater than or equal to the second threshold and less than a third threshold; and determine the expected power consumption of the first computing power device based on the second power consumption, the second weight factor and the expected utilization.
[0246] In one embodiment, the first determination unit 604 is further used to obtain the actual power consumption of the first computing power device; determine the difference between the expected power consumption and the actual power consumption; judge whether the difference is greater than a preset threshold; if the difference is greater than the preset threshold, determine that the target business is to be migrated; if the difference is less than or equal to the preset threshold, determine that the target business is not to be migrated.
[0247] In one embodiment, after determining that the target service is to be migrated, the apparatus 600 further includes an updating unit; wherein,
[0248] The updating unit is configured to update the actual power consumption of the first computing device to the expected power consumption;
[0249] The determining unit 604 is further configured to determine whether computing devices other than the second computing device should perform other service pre-migration based on the power information and the expected power consumption.
[0250] In one embodiment, the power information includes at least one of the following:
[0251] Battery information;
[0252] Power information;
[0253] Time information.
[0254] In order to implement the method on the second computing power device side of the embodiment of the present application, the embodiment of the present application further provides a computing power processing device, which is arranged on the second computing power device. Figure 7 Schematic diagram of another device for computing power processing according to an embodiment of the present application; Figure 7 As shown, the apparatus 700 includes:
[0255] The second receiving unit 701 is configured to receive first information sent by the first computing device; the first information includes a request related to the service and resource configuration of the second computing device;
[0256] A second determining unit 702 is configured to determine second information of the target service based on the first information;
[0257] The second sending unit 703 is used to send the second information to the first computing power device; the second information is used by the first computing power device to determine whether the target business is to be migrated.
[0258] In one embodiment, the second information includes at least one of the following:
[0259] Business parameters; the business parameters characterize the resource situation of the target business;
[0260] Configuration parameters; the configuration parameters represent the configuration of the second computing power device.
[0261] In one embodiment, the service parameter includes at least one of the following:
[0262] Service type parameters; the service type parameters include at least parameters of computing services, input or output services, and storage services;
[0263] Resource requirement parameters; the resource requirement parameters include at least parameters of computing resources, memory resources, and storage resources;
[0264] Resource status parameters; the resource status parameters include at least parameters of computing resource utilization, memory utilization, and storage resource utilization.
[0265] It should be noted that the computing power processing device provided in the above embodiment only uses the division of the above program modules as an example to illustrate computing power processing. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. In addition, the computing power processing device provided in the above embodiment and the computing power processing method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0266] Based on the hardware implementation of the above program modules, and in order to implement the method on the first computing device side of the embodiment of the present application, the embodiment of the present application further provides a first computing device, Figure 8 This is a schematic diagram of the structure of the first computing device in the embodiment of the present application; Figure 8 As shown, the first computing device 800 includes:
[0267] The first communication interface 801 is capable of exchanging information with the second computing device;
[0268] The first processor 802 is connected to the first communication interface 801 to implement information exchange with the second computing device and is used to execute the method provided by one or more technical solutions of the first computing device when running a computer program. The computer program is stored in the first memory 803.
[0269] Specifically, the first communication interface is used to obtain power information of the power distribution network; send first information to the second computing device based on the power information; the first information includes a request related to the service and resource configuration of the second computing device; receive second information of the target service sent by the second computing device based on the first information; the second message includes a response to the first message;
[0270] The first processor is configured to determine whether to migrate the target service based on the second information and the power information.
[0271] It should be noted that the specific processing process of the first processor 802 and the first communication interface 801 can be understood by referring to the above method.
[0272] Of course, in actual application, the various components in the first computing device 800 are coupled together through the bus system 804. It can be understood that the bus system 804 is used to realize the connection and communication between these components. In addition to the information bus, the bus system 804 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as bus system 804 .
[0273] The first memory 803 in the embodiment of the present application is used to store various types of information to support the operation of the first computing device 800. Examples of such information include: any computer program used to operate on the first computing device 800.
[0274] The methods disclosed in the above embodiments of the present application can be applied to the first processor 802 or implemented by the first processor 802. The first processor 602 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the first processor 802 or by software instructions. The above first processor 802 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The first processor 802 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present application can be directly implemented as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium located in the first memory 803. The first processor 802 reads the information in the first memory 803 and completes the steps of the above method in conjunction with its hardware.
[0275] In an exemplary embodiment, the first computing power device 800 can be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to execute the aforementioned method.
[0276] Based on the hardware implementation of the above program modules, and in order to implement the method of the second computing device side of the embodiment of the present application, the embodiment of the present application also provides a second computing device, Figure 9 This is a schematic diagram of the structure of the second computing device in the embodiment of the present application; Figure 9 As shown, the second computing device 900 includes:
[0277] The second communication interface 901 is capable of exchanging information with the first computing device;
[0278] The second processor 902 is connected to the second communication interface 901 to implement information exchange with the first computing device and is used to execute the methods provided by one or more technical solutions on the second computing device side when running a computer program. The computer program is stored in the second memory 903.
[0279] Specifically, the second communication interface is used to receive first information sent by the first computing device; the first information includes a request related to the service and resource configuration of the second computing device;
[0280] The second processor is configured to determine second information of the target service based on the first information;
[0281] The second communication interface is further used to send the second information to the first computing device; the second information is used by the first computing device to determine whether the target business is to be migrated.
[0282] It should be noted that the specific processing procedures of the second communication interface 901 and the second processor 902 can be understood with reference to the above method.
[0283] Of course, in actual application, the various components in the second computing device 900 are coupled together through the bus system 904. It can be understood that the bus system 904 is used to realize the connection and communication between these components. In addition to the information bus, the bus system 904 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 9 Various buses are labeled as bus system 904.
[0284] The second memory 903 in the embodiment of the present application is used to store various types of information to support the operation of the second computing device 900. Examples of such information include: any computer program used to operate on the second computing device 900.
[0285] The methods disclosed in the above embodiments of the present application can be applied to or implemented by the second processor 902. The second processor 902 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits or software instructions in the second processor 902. The above second processor 902 may be a general-purpose processor, a DSP, or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc. The second processor 702 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium located in the second memory 903. The second processor 902 reads the information in the second memory 903 and, in conjunction with its hardware, completes the steps of the above method.
[0286] In an exemplary embodiment, the second computing device 900 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general-purpose processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned method.
[0287] It can be understood that the memory (first memory 803, second memory 903) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a magnetic disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memories.
[0288] In order to implement the method provided in the embodiment of the present application, the embodiment of the present application also provides a computing power processing system. Figure 10 This is a schematic diagram of the computing power processing system structure of the embodiment of the present application; Figure 10 As shown, the system includes: a first computing device 1001 and a second computing device 1002.
[0289] Here, it should be noted that the specific processing procedures of the first computing power device 1001 and the second computing power device 1002 have been described in detail above and will not be repeated here.
[0290] In an exemplary embodiment, the embodiment of the present application further provides a computer program product, which, when executed by a processor, implements the steps of any of the above-mentioned methods on the first computing power device side, or implements the steps of any of the above-mentioned methods on the second computing power device side.
[0291] In an exemplary embodiment, the present application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, which includes, for example, a first memory 803 storing a computer program. The computer program can be executed by the first processor 802 of the first computing device 800 to complete the steps of the method described above on the first computing device side. For another example, the present application also includes a second memory 903 storing a computer program. The computer program can be executed by the second processor 902 of the second computing device 900 to complete the steps of the method described above on the second computing device side. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.
[0292] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0293] In addition, the technical solutions described in the embodiments of the present application can be arbitrarily combined without conflict.
[0294] The above description is merely a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application.
Claims
1. A computing power processing method, characterized in that: Applied to the first computing power equipment, including: Obtain power information from the distribution network; Sending first information to the second computing device based on the power information; the first information includes a request related to the service and resource configuration of the second computing device; receiving second information of the target business sent by the second computing device based on the first information, wherein the second message includes a response to the first message; It is determined whether the target service is to be migrated based on the second information and the power information.
2. The method according to claim 1, characterized in that The second information includes at least one of the following: Business parameters; the business parameters characterize the resource situation of the target business; Configuration parameters; the configuration parameters represent the configuration of the second computing power device.
3. The method according to claim 2, characterized in that The service parameters include at least one of the following: Service type parameters; the service type parameters include at least parameters of computing services, input or output services, and storage services; Resource requirement parameters; the resource requirement parameters include at least parameters of computing resources, memory resources, and storage resources; Resource status parameters; the resource status parameters include at least parameters of computing resource utilization, memory utilization, and storage resource utilization.
4. The method according to any one of claims 1 to 3, characterized in that The determining whether to migrate the target service based on the second information and the power information includes: Determine, based on the second information and the power information, a service utilization rate of a central processing unit (CPU) after the target service is pre-migrated to the first computing device; Determining an expected utilization rate of the CPU of the first computing device according to the service utilization rate; determining an expected power consumption of the first computing device based on the expected utilization; Determine whether to migrate the target service according to the expected power consumption.
5. The method according to claim 4, characterized in that Determining the expected utilization rate of the CPU of the first computing device according to the service utilization rate includes: Obtaining an actual CPU utilization of the first computing device and a correction factor configured for the service utilization; An expected utilization rate of the CPU of the first computing device is determined based on the actual utilization rate, the service utilization rate, and the correction factor.
6. The method according to claim 4, characterized in that Determining the expected power consumption of the first computing device based on the expected utilization includes: When the value of the expected utilization is greater than or equal to a first threshold and less than a second threshold, obtaining a first power consumption of the first computing power device and a first weight factor of the expected utilization; An expected power consumption of the first computing device is determined based on the first power consumption, the first weight factor, and the expected utilization.
7. The method according to claim 4, characterized in that Determining the expected power consumption of the first computing device based on the expected utilization includes: When the value of the expected utilization is greater than or equal to the second threshold and less than a third threshold, obtaining a second power consumption of the first computing power device and a second weight factor of the expected utilization; An expected power consumption of the first computing device is determined based on the second power consumption, the second weight factor, and the expected utilization.
8. The method according to claim 4, characterized in that The determining whether to migrate the target service according to the expected power consumption includes: Obtaining actual power consumption of the first computing device; determining a difference between the expected power consumption and the actual power consumption; Determining whether the difference is greater than a preset threshold; When the difference is greater than the preset threshold, determining that the target service is to be migrated; When the difference is less than or equal to the preset threshold, it is determined that the target service is not to be migrated.
9. The method according to claim 8, characterized in that After determining the target service to be migrated, the method further includes: Updating the actual power consumption of the first computing power device to the expected power consumption; Based on the power information and the expected power consumption, it is determined whether computing devices other than the second computing device perform other service pre-migration.
10. The method according to claim 1, characterized in that The power information includes at least one of the following: Battery information; Power information; Time information.
11. A computing power processing method, characterized in that: Applicable to the second computing power device, including: Receiving first information sent by a first computing device, wherein the first information includes a request related to business and resource configuration of a second computing device; determining second information of the target business based on the first information; The second information is sent to the first computing power device; the second information is used by the first computing power device to determine whether the target business is to be migrated.
12. The method according to claim 11, characterized in that The second information includes at least one of the following: Business parameters; the business parameters characterize the resource situation of the target business; Configuration parameters; the configuration parameters represent the configuration of the second computing power device.
13. The method according to claim 12, characterized in that The service parameters include at least one of the following: Service type parameters; the service type parameters include at least parameters of computing services, input or output services, and storage services; Resource requirement parameters; the resource requirement parameters include at least parameters of computing resources, memory resources, and storage resources; Resource status parameters; the resource status parameters include at least parameters of computing resource utilization, memory utilization, and storage resource utilization.
14. A computing power processing device, characterized in that: Set up in the first computing power device, including: an acquisition unit, configured to acquire power information of a power distribution network; A first sending unit, configured to send first information to the second computing power device based on the power information; the first information includes a request related to the service and resource configuration of the second computing power device; a first receiving unit, configured to receive second information of a target service sent by the second computing device based on the first information; the second message including a response to the first message; A first determining unit is configured to determine whether to migrate the target service based on the second information and the power information.
15. A computing power processing device, characterized in that: Set on the second computing power device, including: A second receiving unit is configured to receive first information sent by the first computing device; the first information includes a request related to the service and resource configuration of the second computing device; a second determining unit, configured to determine second information of the target service based on the first information; The second sending unit is used to send the second information to the first computing power device; the second information is used by the first computing power device to determine whether the target business is to be migrated.
16. A first computing power device, characterized in that: include: a first communication interface and a first processor; wherein, The first communication interface is configured to obtain power information of a power distribution network; send first information to a second computing device based on the power information; the first information includes a request related to a service and resource configuration of the second computing device; receive second information of a target service sent by the second computing device based on the first information; the second message includes a response to the first message; The first processor is configured to determine whether to migrate the target service based on the second information and the power information.
17. A second computing power device, characterized in that: include: A second communication interface and a second processor; wherein, The second communication interface is used to receive the first information sent by the first computing power device; The first information includes a request related to the business and resource configuration of the second computing device; The second processor is configured to determine second information of the target service based on the first information; The second communication interface is further used to send the second information to the first computing device; the second information is used by the first computing device to determine whether the target business is to be migrated.
18. A first computing power device, characterized in that: include: a first processor and a first memory for storing a computer program capable of being executed on the processor, Wherein, when the first processor is used to run the computer program, it executes the steps of the method according to any one of claims 1 to 10.
19. A second computing power device, characterized in that: include: a second processor and a second memory for storing a computer program capable of being executed on the processor, Wherein, when the second processor is used to run the computer program, it executes the steps of the method according to any one of claims 11 to 13.
20. A computer program product comprising a computer program, characterized in that The computer program implements the steps of the method according to any one of claims 1 to 10 when executed by a processor; or, the computer program implements the steps of the method according to claims 11 to 13 when executed by a processor.
21. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented, or the steps of the method according to any one of claims 11 to 13 are implemented.