Nebula computing resource allocation method, device, computer equipment and storage medium
By obtaining the target computing tasks and real-time resource status, and using resource allocation models and deep learning algorithms to dynamically adjust the Nebula computing resource allocation strategy, it solves the problem of low computing resource utilization in the existing technology and achieves efficient resource utilization in a dynamic environment. Distribution and robustness improvements.
Patent Information
- Application Number
- CN202410872322.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-01
AI Technical Summary
The existing Nebula computing resource allocation method is difficult to adjust in real time in a dynamic resource environment, resulting in low computing resource utilization. Especially when the transmission rate changes in the space environment and the load of the ground cloud server is unstable, it is difficult to effectively allocate computing resources.
By obtaining the target computing task and real-time resource status, inputting the resource allocation model to determine the pre-occupied resources, and using Markov decision parameters and depth determination strategy gradient algorithm to optimize the Nebulas resource allocation strategy, including a resource estimation module and a resource optimization module. Dynamically adjust resource allocation to improve utilization.
It improves the utilization of computing resources, ensures that the optimal resource allocation strategy can be adaptively selected in the dynamically changing space environment, reduces reasoning delay and resource waste, and enhances the robustness and reliability of the system.
Smart Images

Figure CN118409869B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of satellite communication technology, and in particular to a nebula computing resource allocation method, device, computer equipment and storage medium. Background Art
[0002] With the rapid development of cloud computing and artificial intelligence technologies, aerospace intelligent computing technology plays an increasingly important role in space data processing applications. Aerospace intelligent computing can process large amounts of data in orbit and reduce dependence on ground transmission, which is crucial for tasks such as earth observation and disaster monitoring. However, aerospace intelligent computing faces problems such as limited computing resources, changes in transmission rates in space environments, and unstable loads on ground cloud servers when performing deep learning reasoning tasks. These problems pose new challenges to the rational allocation of computing resources.
[0003] In traditional technology, static computing partitioning strategies are usually used to allocate Nebula computing resources. However, due to the dynamic changes of computing resources, the static resource allocation method in traditional technology is difficult to adjust the computing resource allocation of Nebula collaborative reasoning tasks in real time under unknown dynamic resource environments, resulting in low computing resource utilization. Summary of the invention
[0004] Based on this, it is necessary to provide a Nebula computing resource allocation method, device, computer equipment and storage medium that can improve the utilization rate of computing resources in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for allocating nebula computing resources. The method comprises:
[0006] Obtain target computing tasks and real-time resource status;
[0007] The target computing task and the real-time resource status are input into a resource allocation model, and the nebula resource allocation strategy is output through the resource allocation model, wherein the resource allocation model includes a resource estimation module and a resource optimization module, the resource estimation module is used to determine the pre-occupied resources of the target computing task; the resource optimization module is used to determine the nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources.
[0008] In one embodiment, determining the pre-occupied resources of the target computing task includes:
[0009] According to the target computing task, determining a target neural network corresponding to the target computing task;
[0010] Determine, according to the real-time resource status, the pre-occupied resources of each layer of the target neural network when the target neural network performs the target computing task;
[0011] The pre-occupied resources of each layer of the target neural network are used as the pre-occupied resources of the target computing task.
[0012] In one of the embodiments, determining the nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources includes:
[0013] Determine a Markov decision parameter according to the real-time resource state and the pre-occupied resources;
[0014] The nebula resource allocation strategy is determined based on the Markov decision parameters and the deep determination policy gradient algorithm.
[0015] In one embodiment, the real-time resource state includes a satellite real-time resource state and a cloud server real-time resource state, the Markov decision parameter includes a real-time state space parameter, and determining the Markov decision parameter according to the real-time resource state and the pre-occupied resource includes:
[0016] Acquire real-time space environment information and data output of each layer of the target neural network;
[0017] The real-time state space parameters are determined according to the real-time space environment information, the data output of each layer of the target neural network and the real-time resource status.
[0018] In one embodiment, the Markov decision parameter includes a real-time action space parameter, and determining the Markov decision parameter according to the real-time resource state and the pre-occupied resource includes:
[0019] Determine a real-time set of satellites to be allocated according to the real-time resource status of the satellites;
[0020] Determining a set of partition points of the target neural network according to the data output of each layer of the target neural network, the real-time resource status, and the pre-occupied resources;
[0021] The real-time action space parameter is determined according to the partition point set and the real-time satellite set to be allocated.
[0022] In one embodiment, determining the nebula resource allocation strategy based on the Markov decision parameters and the deep determination policy gradient algorithm includes:
[0023] Determining a resource allocation strategy to be optimized according to the real-time state space parameter, the real-time action space parameter and a preset reward factor;
[0024] The resource allocation strategy to be optimized is screened according to the depth determination policy gradient algorithm to determine the nebula resource allocation strategy.
[0025] In one embodiment, the preset reward factor includes at least one of the following:
[0026] Reasoning latency reduction reward factor;
[0027] Energy efficiency bonus factor;
[0028] Reward factor for successful task execution;
[0029] Satellite resource consumption limit reward factor;
[0030] Cloud server load limit bonus factor;
[0031] Satellite resources and cloud server resources balance reward factor;
[0032] The data transmission volume between satellites is limited by the reward factor;
[0033] A tolerance reward factor that responds quickly to environmental changes.
[0034] In one embodiment, the deep determination policy gradient algorithm includes an actor network and a critic network, and screening the resource allocation strategy to be optimized according to the deep determination policy gradient algorithm to determine the nebula resource allocation strategy includes:
[0035] The actor network determines a resource allocation strategy with the highest action value among the resource allocation strategies to be optimized as the nebula resource allocation strategy, wherein the action value is determined according to the critic network.
[0036] In a second aspect, the present application also provides a nebula computing resource allocation device. The device includes:
[0037] Data acquisition module, used to obtain target computing tasks and real-time resource status;
[0038] A resource allocation module is used to input the target computing task and the real-time resource status into a resource allocation model, and output a nebula resource allocation strategy through the resource allocation model, wherein the resource allocation model includes a resource estimation module and a resource optimization module, the resource estimation module is used to determine the pre-occupied resources of the target computing task; the resource optimization module is used to determine the nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources.
[0039] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any of the nebula computing resource allocation methods in the first aspect are implemented.
[0040] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the nebula computing resource allocation methods in the first aspect are implemented.
[0041] The above-mentioned nebula computing resource allocation method, device, computer equipment and storage medium obtain the target computing task and the real-time resource status; input the target computing task and the real-time resource status into the resource allocation model, and output the nebula resource allocation strategy through the resource allocation model, wherein the resource allocation model includes a resource estimation module and a resource optimization module, the resource estimation module is used to determine the pre-occupied resources of the target computing task; the resource optimization module is used to determine the nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources. Inputting the target computing task and the real-time resource status into the resource allocation model, determining the pre-occupied resources through the resource estimation module, and outputting the nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources through the resource optimization module while fully considering the dynamic resource environment can effectively improve the computing resource utilization rate.
[0042] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0044] Figure 1 A diagram of an application environment of a Nebula computing resource allocation method in one embodiment;
[0045] Figure 2 A schematic diagram of a process flow of a Nebula computing resource allocation method in one embodiment;
[0046] Figure 3 A schematic diagram of a resource estimation module determining pre-occupied resources in one embodiment;
[0047] Figure 4 It is a schematic diagram of the application of the Nebula computing resource allocation method in one embodiment;
[0048] Figure 5 A schematic diagram of Nebula computing resource allocation in one embodiment;
[0049] Figure 6 It is a structural block diagram of a Nebula computing resource allocation device in one embodiment;
[0050] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with general skills in the technical field to which this application belongs. The words "one", "a", "the", "these" and the like in this application do not indicate a quantitative limitation, and they may be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone. Generally, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0053] The terms "module", "unit", etc. used below are a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in hardware, the implementation of software, or a combination of software and hardware is also possible and conceivable.
[0054] In the field of nebula collaborative reasoning, deep reinforcement learning algorithms provide an adaptive solution. Through the continuous interaction between the agent and the environment, it learns the strategy of computing division and task offloading in a changing environment. Since DQN (Deep Q-Network, a combination of deep learning and reinforcement learning), the development speed of deep reinforcement learning has been changing with each passing day. It has both the powerful perception and feature extraction capabilities of deep learning and the powerful control and strategy learning capabilities of reinforcement learning, and performs better in complex environments. Therefore, deep reinforcement learning provides a new direction that can be used for the problem of nebula collaborative reasoning in space environments. Deep Deterministic Policy Gradient (DDPG) is a classic reinforcement learning algorithm that has also been tried for nebula collaborative reasoning. Although deep reinforcement learning has shown great potential in many fields, how to effectively apply deep reinforcement learning to solve the difficulties in nebula collaborative reasoning in space environments, especially when facing high-dimensional state space and continuous action space, is still an open problem.
[0055] On the other hand, when deep reinforcement learning algorithms deal with problems in the space environment, they need to consider a variety of dynamic factors, including but not limited to the dynamic changes in the space environment and the dynamic changes in computing resources. The dynamic changes of these factors put forward higher requirements for the design and training of the algorithm.
[0056] Currently, the research on Nebula collaborative reasoning system based on deep reinforcement learning is still in its early stages. How to design a reasoning system that can effectively handle the dynamics of the space environment, the limitations of computing resources and the complexity of information transmission conditions is an urgent problem to be solved in this field. In addition, how to build a deep reinforcement learning model that can generalize to unknown environments and has adaptive capabilities to achieve a reasonable allocation of computing resources is also a challenge faced by researchers.
[0057] Based on this, the embodiment of the present application provides a method for allocating nebula computing resources. The method for allocating nebula computing resources provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the satellite 102 communicates with the ground cloud server 104 through the network, and the satellites can also communicate wirelessly in the space environment through the network. The data storage system can store the data that the ground cloud server 104 needs to process. The data storage system can be integrated on the ground cloud server 104, or it can be placed on the cloud or on the satellite. The satellite 102 obtains the target computing task and the real-time resource status and sends them to the ground cloud server 104. The ground cloud server 104 inputs the target computing task and the real-time resource status into the resource allocation model, and outputs the nebula resource allocation strategy through the resource allocation model, wherein the resource allocation model includes a resource estimation module and a resource optimization module, and the resource estimation module is used to determine the pre-occupied resources of the target computing task; the resource optimization module is used to determine the nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources. In other embodiments, the ground cloud server can also obtain the target computing task and the real-time resource status, and send it to the satellite 102 after determining the nebula resource allocation strategy. Among them, the satellite 102 includes an independent satellite or a satellite cluster composed of multiple satellites. The ground cloud server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0058] In the present application embodiment, Figure 2 As shown, a method for allocating nebula computing resources is provided, and the method is applied to Figure 1 The application scenario in is taken as an example to illustrate, including the following steps:
[0059] S201: Obtain target computing tasks and real-time resource status.
[0060] In an embodiment of the present application, the nebula includes a satellite and a ground cloud server, the satellite may include a single satellite edge device or a satellite cluster consisting of at least two satellite edge devices, and the ground cloud server may include a single server or a ground cloud server cluster consisting of at least two servers. The nebula computing resource allocation includes any one of satellite computing resource allocation, ground cloud server computing resource allocation, or satellite and ground cloud server computing resource collaborative allocation.
[0061] In an embodiment of the present application, the target computing task may include image reasoning and recognition tasks acquired by a satellite in space, or may include image reasoning and recognition tasks issued by a ground cloud server after receiving images acquired by a satellite. In other embodiments, the target computing task may also include other computing tasks, and the present application does not limit the specific type of the target computing task. In some embodiments, the target computing task may be performed by a target neural network.
[0062] The real-time resource status includes the real-time available computing resources of the satellite and / or the real-time available computing resources of the ground cloud server. Specifically, the real-time available resources of the satellite include the available computing resources of each satellite, and the real-time available resources of the ground cloud server may include the computing resources of all ground cloud servers.
[0063] S203: Input the target computing task and the real-time resource status into the resource allocation model, and output the nebula resource allocation strategy through the resource allocation model, wherein the resource allocation model includes a resource estimation module and a resource optimization module, the resource estimation module is used to determine the pre-occupied resources of the target computing task; the resource optimization module is used to determine the nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources.
[0064] In an embodiment of the present application, a resource allocation model is used to analyze the target computing task and the real-time resource status, and output a nebula resource allocation strategy. Among them, the nebula resource allocation strategy may include a strategy for allocating multiple sub-target computing tasks to satellites and / or ground cloud servers for execution after splitting the target computing task into multiple sub-target computing tasks according to the target neural network level. In other embodiments, the nebula resource allocation strategy may also include a strategy for allocating the target computing task as a whole to satellites and / or ground cloud servers for execution. It is understandable that due to the differences in target computing tasks, different ways of splitting target computing tasks, and different real-time resource status, there may be one or more nebula resource pre-allocation strategies. After determining a variety of nebula resource pre-allocation strategies, the resource allocation model can screen out one or several strategies with the highest resource utilization as the nebula resource allocation strategy.
[0065] In an embodiment of the present application, the resource allocation model includes a resource estimation module and a resource optimization module. In some embodiments, the resource estimation module is used to determine the pre-occupied resources of the target computing task. The pre-occupied resources of the target computing task may include the pre-occupied resources of the target neural network when executing the target computing task. In some specific embodiments, the resource estimation module is used to determine the pre-occupied resources of the target computing task. Figure 3 As shown, after the satellite and / or ground cloud server receives the target computing task, the resource estimation module determines the pre-occupied resources of the target computing task.
[0066] In some embodiments, determining the pre-occupied resources of the target computing task includes:
[0067] S301: Determine a target neural network corresponding to the target computing task according to the target computing task.
[0068] S303: Determine, according to the real-time resource status, the pre-occupied resources of each layer of the target neural network when the target neural network executes the target computing task.
[0069] S305: Use the pre-occupied resources of each layer of the target neural network as the pre-occupied resources of the target computing task.
[0070] In the embodiment of the present application, the resource estimation module can determine the target neural network corresponding to the target computing task according to the input target computing task. And determine the pre-occupied resources of each layer of the target neural network when the target neural network executes the target computing task according to the real-time resource status. Then, the pre-occupied resources of each layer of the target neural network are used as the pre-occupied resources of the target computing task.
[0071] In some specific embodiments, the target neural network includes a performance analysis algorithm network based on a statistical regression model of simulated execution data, which can estimate the execution time and other computing resources occupied by different DNN (Deep Neural Network) layers based on the real-time resource status of the satellite and / or ground cloud server.
[0072] In an embodiment of the present application, the resource optimization module is used to determine the nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources. In some embodiments, the determining the nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources includes:
[0073] S401: Determine a Markov decision parameter according to the real-time resource state and the pre-occupied resources.
[0074] S403: Determine the nebula resource allocation strategy based on the Markov decision parameters and the deep determination policy gradient algorithm.
[0075] In the embodiment of the present application, the Markov decision process (MDP) is a mathematical model of sequential decision making, and the Markov decision parameters specifically include state space parameters, action space parameters, and reward functions, etc. The nebula resource allocation problem such as reasoning calculation partitioning and task offloading can be converted into a Markov decision process, and the nebula resource allocation strategy can be determined according to the Markov decision parameters and the Deep Deterministic Policy Gradient algorithm (Deep Deterministic Policy Gradient).
[0076] The application diagram of the Nebula computing resource allocation method provided in the embodiment of the present application is as follows: Figure 4As shown, by obtaining the current environment status in real time, that is, obtaining the target computing task and real-time resource status, the resource estimation module in the resource allocation model calculates the pre-occupied resources such as reasoning and transmission delay, and then the resource optimization module uses the Markov decision parameter-based deep determination policy gradient network to perform algorithm reasoning calculation division and unload the target computing task, and selects the actual allocation scheme from multiple optional resource allocation schemes as the Nebula resource allocation strategy. Figure 4 The dashed lines in the middle represent multiple possible neural network partitioning point schemes and possible resource allocation to edge devices D. 1 , D k ,…D m and other resource allocation plans.
[0077] The Nebula computing resource allocation method provided in the embodiment of the present application inputs the target computing task and the real-time resource status into the resource allocation model, determines the pre-occupied resources through the resource estimation module, and outputs the Nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources through the resource optimization module while fully considering the dynamic resource environment, which can effectively improve the computing resource utilization rate.
[0078] The following is an explanation of the implementation method of determining Markov decision parameters through the examples of the present application.
[0079] In some embodiments, the real-time resource state includes a satellite real-time resource state and a cloud server real-time resource state, the Markov decision parameter includes a real-time state space parameter, and determining the Markov decision parameter according to the real-time resource state and the pre-occupied resource includes:
[0080] S501: Acquire real-time space environment information and data output of each layer of the target neural network.
[0081] S503: Determine the real-time state space parameters according to the real-time space environment information, the data output of each layer of the target neural network, and the real-time resource status.
[0082] In the embodiment of the present application, the state space parameters include static parameters involved in the nebula resource allocation process. Space environment information includes information such as information transmission rate, electromagnetic interference status, satellite signal strength, etc. in the space environment, where the information transmission rate can specifically include the communication rate between satellites and the communication rate between satellites and ground cloud servers.
[0083] The target neural network can be used to perform the target computing task. After determining the target neural network and the parameters of each layer of the target neural network, the data output of each layer of the target neural network can be determined. The data output may include the size of the output data. It should be noted that the pre-occupied resources of each layer of the target neural network described in the embodiment of the present application include the estimated results of the computing resources that each layer may occupy when the target neural network performs the target computing task; and the data output of each layer of the target neural network includes the size of the output data generated by each layer of the neural network after processing the input data, usually including the dimension of the tensor (for example, height, width, number of channels) and the amount of data (number of bytes), etc. The data output is usually relatively fixed after the parameters of the target neural network are determined.
[0084] In some specific embodiments, the real-time state space parameter State can be expressed as formula (1).
[0085] State={S|S=(B, SCR, CCR, D)} (1)
[0086] In formula (1), B represents the real-time space environment information transmission rate; SCR = (SCR 1 , SCR 2 ,... SCR m ) is a sequence with m elements, representing the real-time computing resources of each cloud-native satellite in the current m satellite edge devices; CCR represents the real-time computing resources of the ground cloud server; D = (D input , D 1 , D 2 , ... D n ) represents the original input data D of the target neural network input And the output data size of each layer.
[0087] The real-time state space parameters provided in the embodiments of the present application are a feasible implementation method, and may not be limited to the above parameters in other embodiments. For example, if only the target computing tasks are allocated among satellites, the real-time state space parameters may not include the real-time computing resources of the ground cloud server; in other embodiments, in order to further improve the rationality of resource allocation, other static parameters may also be added, such as satellite signal strength values, etc. The above-mentioned method for determining the real-time state space parameters should not be understood as a limitation on the present application.
[0088] The embodiment of the present application determines the real-time state space parameters based on the real-time space environment information, the data output of each layer of the target neural network, and the real-time resource status. It can fully consider the real-time static environment information when the nebula collaborates to perform the target computing task, and effectively improve the resource utilization and the rationality of resource allocation.
[0089] In some embodiments, the Markov decision parameter includes a real-time action space parameter, and determining the Markov decision parameter according to the real-time resource state and the pre-occupied resource includes:
[0090] S601: Determine a real-time set of satellites to be allocated according to the real-time resource status of the satellites.
[0091] S603: Determine a set of partition points of the target neural network according to the data output of each layer of the target neural network, the real-time resource status, and the pre-occupied resources.
[0092] S605: Determine the real-time action space parameter according to the partition point set and the real-time satellite set to be allocated.
[0093] In an embodiment of the present application, the action space parameters include allocation action parameters involved in the nebula resource allocation process, and the action space parameters include all optional resource allocation strategies. According to the real-time resource status of the satellite, the satellites with computing resource surplus can be determined as a real-time set of satellites to be allocated. According to the data output, real-time resource status and pre-occupied resources of each layer of the target neural network, the set of partition points of the target neural network can be determined. Among them, the partition point set of the target neural network is a fine-grained computing partition of the target network level, which can accurately control resource allocation and the execution of target computing tasks.
[0094] The partitioning of the target neural network includes dividing different layers of the target neural network into different computing nodes, such as the specific locations for processing on satellite edge devices or ground cloud servers. By selecting these partitioning points, the computing tasks of the entire target neural network can be reasonably distributed on different computing resources to optimize reasoning efficiency and resource utilization.
[0095] For example, in some specific embodiments, if the target neural network includes an input layer, a convolutional layer 1, a pooling layer 1, a convolutional layer 2, a pooling layer 2, and a fully connected layer, if P0 is selected as the division point, the input data can be processed on the satellite device to generate the output of the convolutional layer 1, and then the output data is transmitted to the ground cloud server for subsequent processing; if P1 is selected as the division point, it means that the calculation of the input data, the convolutional layer 1, and the pooling layer 1 are all completed on the satellite device, and the output of the pooling layer 1 is transmitted to the ground cloud server for further processing, etc. In other embodiments, the split subtasks can also be offloaded to different satellite devices for execution according to different division points.
[0096] In some specific embodiments, the real-time state space parameter Action can be expressed as formula (2).
[0097] Action={P 0 , P 1, ... P n ; SAT 1 , SAT 2 ,... SAT m} (2)
[0098] In formula (2), {P 0 , P 1 , ... P n} represents the target neural network reasoning calculation partition point set, {SAT 1 , SAT 2 ,...SAT m} represents the edge device that has sufficient resources and can perform the inference computing task at the current moment of receiving the task, that is, the real-time satellite set to be assigned. The real-time state space parameter is represented by P n The partition point set divides the target computing task in the target neural network, and then unloads the completed tasks to each satellite device SAT m In other embodiments, the real-time state space parameters may also include a ground cloud server that offloads the tasks completed by the division to each satellite device SAT m and / or distributed processing on ground-based cloud servers.
[0099] In the embodiment of the present application, the partition point set P of the target neural network is n It is determined based on the data output, real-time resource status, and pre-occupied resources of each layer of the target neural network. The specific division point will be dynamically adjusted according to the computational complexity of each layer of the target neural network, the transmission time, and the real-time resource status of the satellite equipment and the ground cloud server. For each possible computational division point Pn (i.e., the boundary of the DNN layer) and the corresponding target computing task offloading strategy SAT m , will be evaluated by the deep deterministic policy gradient deep reinforcement learning network. The deep deterministic policy gradient network can autonomously learn and optimize the reasoning calculation partitioning and task offloading strategies by constantly interacting with the environment, determine the nebula resource allocation strategy in real time, ensure the adaptive selection of the optimal partitioning point in the dynamically changing space environment, and ensure the reasonable offloading and efficient execution of reasoning calculation tasks between different satellite devices.
[0100] In an embodiment of the present application, the real-time action space parameters are determined based on the partition point set and the real-time satellite set to be allocated. On the one hand, the target computing task can be dispersed to multiple computing nodes. For example, the layer with smaller computing amount is processed on a resource-constrained satellite device, and the layer with larger computing amount is processed on a ground cloud server or satellite device with sufficient resources, which can effectively improve the computing resource utilization and task computing efficiency; on the other hand, since the amount of data output by each network layer is different, selecting a suitable partition point can reduce the amount of data transmitted between computing nodes, thereby reducing transmission delay and bandwidth occupancy, and effectively reducing the amount of data transmitted: furthermore, by dynamically selecting the partition point, the overall reasoning delay can be minimized and the reasoning efficiency can be improved according to the current computing resource status and information transmission rate.
[0101] It should be noted that the real-time action space parameters provided in the embodiment of the present application are a feasible implementation method, and in other embodiments, they may not be limited to the above parameters. For example, the set of satellites to be allocated may be set according to actual needs; in other embodiments, in order to further improve resource utilization, other action parameters may be added, such as the number of tasks to be allocated simultaneously. The above-mentioned method for determining the real-time action space parameters should not be understood as a limitation on the present application.
[0102] The following describes a method for determining a Star Cloud resource allocation strategy through an embodiment of the present application.
[0103] In some embodiments, determining the nebula resource allocation strategy based on the Markov decision parameters and the deep determination policy gradient algorithm includes:
[0104] S701: Determine a resource allocation strategy to be optimized according to the real-time state space parameter, the real-time action space parameter and a preset reward factor.
[0105] S703: Filter the resource allocation strategy to be optimized according to the deep determination policy gradient algorithm to determine the nebula resource allocation strategy.
[0106] In the embodiment of the present application, according to the real-time state space parameters, the real-time action space parameters and the preset reward factor, the Markov decision process can be operated by the deep reinforcement learning algorithm to determine the strategy for resource allocation to be optimized. Then, the nebula resource allocation strategy is determined by screening the strategy for resource allocation to be optimized.
[0107] In some embodiments, the preset reward factor includes at least one of the following: a reward factor for shortening the inference delay; a reward factor for energy efficiency; a reward factor for successfully executing the mission; a reward factor for limiting satellite resource consumption; a reward factor for limiting cloud server load; a reward factor for balancing satellite resources and cloud server resources; a reward factor for limiting the amount of data transmission between satellites; and a fault tolerance reward factor for quickly responding to environmental changes.
[0108] In some embodiments, the total reward function can be determined according to the preset reward factor, and then the resource allocation strategy to be optimized is determined based on the total reward function. In some specific embodiments, the total reward function R can be expressed as formula (3):
[0109] (3)
[0110] Formula (3) includes the inference delay reduction reward factor r dealy , energy efficiency bonus factor r considering the limited energy of the satellite energy and the reward factor for successful task execution , auxiliary reward factors include satellite resource consumption limit reward factors to avoid excessive consumption of edge computing resources , Cloud server load limit bonus factor to avoid excessive load on ground cloud servers , Satellite resource and cloud server resource balance reward factor to maintain the balance of computing resources between satellite and ground cloud server , Avoid excessive data transmission between devices in space environment, and limit the data transmission between satellites. and a tolerance reward factor that responds quickly to environmental changes Among them, the auxiliary reward factor is used to give rewards or penalties when the corresponding task requirements are met, thereby improving the efficiency of system reasoning and the ability to handle emergencies in the environment.
[0111] In formula (3), flag success A flag indicating that the target computing task is successfully executed according to the Nebula resource allocation strategy, t normal and t respectively represent the delay of completing the task by reasoning in the default manner and the delay of completing the task by reasoning using the Nebula computing resource allocation method provided in the embodiment of the present application, e initial and e current They are respectively the initial energy of the satellite at the beginning of the mission and the real-time remaining energy of the satellite at the current moment. and They respectively represent the number of edge satellites occupied when reasoning is performed in accordance with the default method and the number of edge satellites occupied when reasoning is performed using the nebula computing resource allocation method provided in the embodiment of the present application, and l normal and l cloudThey respectively represent the computing load of the ground cloud server when reasoning is performed in a default manner and the computing load of the ground cloud server when reasoning is performed using the Nebula computing resource allocation method provided in an embodiment of the present application, and They respectively represent the computing load of the edge satellite and the average load of all computing resources when the Nebula computing resource allocation method provided in the embodiment of the present application is used for reasoning, and d date It represents the amount of data transmission between various satellite devices in the space environment, and f represents the number of failures of each device within a specific time. , ,…… To match the proportional coefficients of each reward factor, different adaptive values are taken to adjust the relative size of the reward factor, thereby adjusting the contribution of different reward factors to the total reward. The total reward function R can include the sum of the above reward factors.
[0112] In some embodiments, the deep determination policy gradient algorithm includes an actor network and a critic network, and screening the resource allocation strategy to be optimized according to the deep determination policy gradient algorithm to determine the nebula resource allocation strategy includes:
[0113] S801: The actor network determines a resource allocation strategy with the highest action value among the resource allocation strategies to be optimized as the nebula resource allocation strategy, wherein the action value is determined according to the critic network.
[0114] In the embodiment of the present application, the network structure of the deep determination policy gradient algorithm includes an actor network for decision-making and a critic network for evaluating decisions. Specifically, the actor network determines the resource allocation strategy with the highest action value among the resource allocation strategies to be optimized, that is, the resource allocation strategy to be optimized with the highest total reward function as the nebula resource allocation strategy, where the action value is determined according to the critic network. The deep determination policy gradient algorithm has the characteristics of real-time dynamic learning and can adapt to the changing space environment.
[0115] Based on a deep understanding of the dynamic changes of computing resources in the space environment and the powerful ability of deep reinforcement learning in dealing with complex decision-making problems, the nebula computing resource allocation method provided in the embodiment of the present application has the characteristics of dynamically adapting to the real-time resource status. First, the computing resources, load conditions and transmission rates of the satellite edge devices and ground cloud servers are obtained in real time through the resource monitoring module, so as to accurately determine the real-time resource status. Then, through the deep determination policy gradient algorithm in deep reinforcement learning, combined with the Markov decision process (MDP), the reasoning calculation division and task offloading strategy in the dynamic environment are optimized to determine the nebula resource allocation strategy.
[0116] In other embodiments, the deep determination policy gradient algorithm also includes a target network, the target network includes a target actor network and a target critic network, the target actor network has the same structure as the actor network, and the target critic network has the same structure as the critic network.
[0117] In the deep deterministic policy gradient algorithm, the design of the reward function directly affects the update process of the Actor and Critic networks. In some specific embodiments, the reasoning process of the deep deterministic policy gradient algorithm is as follows:
[0118] (1) Environment interaction: At each time step, the actor network selects an action space parameter a under the real-time state space parameter s, and after executing action a, determines the new state space parameter s′ and the real-time reward function r = R(s, a, s′) of the action.
[0119] (2) Storing experience: The experience data (s, a, r, s′) during the environment interaction process is stored in the experience replay buffer of the deep determination policy gradient.
[0120] (3) Batch update: Randomly select a batch of samples (s i , a i , r i ,s i ′) is used for training.
[0121] (4) Critic network update: The critic network determines the total reward function Q(s, a) for the current action.
[0122] Target Q value y i Determine through the target critic network according to formula (4):
[0123] y i =r i +γQ′(s i ′,π′(s i ′)) (4)
[0124] In formula (4), γ is the discount factor, Q′ and π′ are the target critic network and the target actor network respectively, and then the critic network parameters are updated by minimizing the TD error (temporal difference error):
[0125] (5) Actor network update: The actor network updates its own strategy based on the gradient information provided by the critic network and uses the gradient ascent method to update the actor network parameters so that the selected action can maximize the total reward function Q value of the critic network.
[0126] (6) Target network soft update: The target network parameters slowly converge to the corresponding actor network and critic network parameters to prevent violent fluctuations during training.
[0127] In the embodiment of the present application, the deep determination policy gradient algorithm is based on the actor-critic architecture. The optimal action is selected through the actor network, the critic network evaluates the action value, and the stability and convergence of the training are ensured by the slow update of the target network. By monitoring the real-time resource status, the reasoning calculation and task offloading strategies are dynamically adjusted to cope with the ever-changing external environment and ensure that tasks can be efficiently executed under different resource states. It not only improves the efficiency of task execution and minimizes the reasoning delay and transmission time, but also reduces resource waste and energy consumption by selecting the optimal resource allocation strategy, thereby extending the service life of satellite equipment.
[0128] The nebula computing resource allocation method provided in the embodiment of the present application is highly adaptable and flexible, and can adaptively cope with the dynamic changes of resource status in the space environment, quickly respond to changes in resource status, avoid task failures due to insufficient or overloaded resources, and improve the execution success rate of target computing tasks. In addition, the use of a deep determination policy gradient algorithm can find the optimal strategy in high-dimensional state space and continuous action space, improve the accuracy and reliability of nebula resource allocation, and enhance robustness.
[0129] The Nebula computing resource allocation method provided in the embodiment of the present application outputs an approximately optimal Nebula resource allocation strategy for reasoning computation partitioning and task offloading selection through a resource allocation model. According to the strategy, Figure 5 The figure shows a specific implementation example, in which the inference computing tasks are divided according to the division points, and some tasks of the neural network layer are assigned to the satellite for execution and then returned to the ground cloud server as intermediate output data, while the tasks of the other part of the neural network layer are executed by the ground cloud server, which can effectively improve resource utilization and task execution efficiency.
[0130] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0131] Based on the same inventive concept, the embodiment of the present application also provides a nebula computing resource allocation device 900 for implementing the nebula computing resource allocation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the nebula computing resource allocation device 900 provided below can refer to the limitations of the nebula computing resource allocation method above, and will not be repeated here.
[0132] In one embodiment, Figure 6 As shown, a nebula computing resource allocation device 900 is provided, comprising:
[0133] Data acquisition module 901, used to acquire target computing tasks and real-time resource status;
[0134] The resource allocation module 902 is used to input the target computing task and the real-time resource status into the resource allocation model, and output the nebula resource allocation strategy through the resource allocation model, wherein the resource allocation model includes a resource estimation module and a resource optimization module, the resource estimation module is used to determine the pre-occupied resources of the target computing task; the resource optimization module is used to determine the nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources.
[0135] In some embodiments, the resource allocation module 902 is further used to determine a target neural network corresponding to the target computing task according to the target computing task; determine the pre-occupied resources of each layer of the target neural network when the target neural network executes the target computing task according to the real-time resource status; and use the pre-occupied resources of each layer of the target neural network as the pre-occupied resources of the target computing task.
[0136] In some embodiments, the resource allocation module 902 is further used to determine Markov decision parameters according to the real-time resource status and the pre-occupied resources; and determine the nebula resource allocation strategy based on the Markov decision parameters and a deep determination policy gradient algorithm.
[0137] In some embodiments, the real-time resource status includes the satellite real-time resource status and the cloud server real-time resource status, the Markov decision parameters include real-time state space parameters, and the resource allocation module 902 is also used to obtain real-time space environment information and the data output of each layer of the target neural network; determine the real-time state space parameters based on the real-time space environment information, the data output of each layer of the target neural network and the real-time resource status.
[0138] In some embodiments, the Markov decision parameters include real-time action space parameters, and the resource allocation module 902 is further used to determine a real-time set of satellites to be allocated according to the real-time resource status of the satellites; determine a set of partition points of the target neural network according to the data output of each layer of the target neural network, the real-time resource status and the pre-occupied resources; and determine the real-time action space parameters according to the partition point set and the real-time set of satellites to be allocated.
[0139] In some embodiments, the resource allocation module 902 is also used to determine the resource allocation strategy to be optimized based on the real-time state space parameters, the real-time action space parameters and the preset reward factor; and to screen the resource allocation strategy to be optimized based on the deep determination policy gradient algorithm to determine the nebula resource allocation strategy.
[0140] In some embodiments, the preset reward factor includes at least one of the following: a reward factor for shortening the inference delay; a reward factor for energy efficiency; a reward factor for successfully executing the mission; a reward factor for limiting satellite resource consumption; a reward factor for limiting cloud server load; a reward factor for balancing satellite resources and cloud server resources; a reward factor for limiting the amount of data transmission between satellites; and a fault tolerance reward factor for quickly responding to environmental changes.
[0141] In some embodiments, the deep determination policy gradient algorithm includes an actor network and a critic network, and the resource allocation module 902 is also used for the actor network to determine the resource allocation strategy with the highest action value among the resource allocation strategies to be optimized as the nebula resource allocation strategy, wherein the action value is determined according to the critic network.
[0142] Each module in the above-mentioned Nebula computing resource allocation device 900 can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0143] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a nebula computing resource allocation method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0144] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0145] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the Nebula computing resource allocation method described in any of the above embodiments are implemented.
[0146] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the Nebula computing resource allocation method described in any of the above embodiments are implemented.
[0147] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the Nebula computing resource allocation method described in any of the above embodiments.
[0148] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0149] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0150] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0151] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for allocating nebula computing resources, characterized in that: The method comprises: Obtain target computing tasks and real-time resource status; The target computing task and the real-time resource status are input into a resource allocation model, and a nebula resource allocation strategy is output through the resource allocation model, wherein the resource allocation model includes a resource estimation module and a resource optimization module, the resource estimation module is used to determine the pre-occupied resources of the target computing task; the resource optimization module is used to determine the nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources; Determining the pre-occupied resources of the target computing task includes: According to the target computing task, determining a target neural network corresponding to the target computing task; Determine, according to the real-time resource status, the pre-occupied resources of each layer of the target neural network when the target neural network performs the target computing task; Using the pre-occupied resources of each layer of the target neural network as the pre-occupied resources of the target computing task; Determining the nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources includes: Determine a Markov decision parameter according to the real-time resource state and the pre-occupied resources; Determine the nebula resource allocation strategy based on the Markov decision parameters and the deep determination policy gradient algorithm; The real-time resource state includes the satellite real-time resource state and the cloud server real-time resource state, the Markov decision parameter includes a real-time state space parameter, and the determination of the Markov decision parameter according to the real-time resource state and the pre-occupied resource includes: Acquire real-time space environment information and data output of each layer of the target neural network; Determining the real-time state space parameter according to the real-time space environment information, the data output of each layer of the target neural network, and the real-time resource state; The Markov decision parameters include real-time action space parameters, and determining the Markov decision parameters according to the real-time resource state and the pre-occupied resources includes: Determine a real-time set of satellites to be allocated according to the real-time resource status of the satellites; Determining a set of partition points of the target neural network according to the data output of each layer of the target neural network, the real-time resource status, and the pre-occupied resources; The real-time action space parameter is determined according to the partition point set and the real-time satellite set to be allocated.
2. The method according to claim 1, characterized in that The determining of the nebula resource allocation strategy based on the Markov decision parameters and the deep determination policy gradient algorithm includes: Determining a resource allocation strategy to be optimized according to the real-time state space parameter, the real-time action space parameter and a preset reward factor; The resource allocation strategy to be optimized is screened according to the depth determination policy gradient algorithm to determine the nebula resource allocation strategy.
3. The method according to claim 2, characterized in that The preset reward factor includes at least one of the following: Reasoning latency reduction reward factor; Energy efficiency bonus factor; Reward factor for successful task execution; Satellite resource consumption limit reward factor; Cloud server load limit bonus factor; Satellite resources and cloud server resources balance reward factor; The data transmission volume between satellites is limited by the reward factor; A tolerance reward factor that responds quickly to environmental changes.
4. The method according to claim 2, characterized in that: The deep determination policy gradient algorithm includes an actor network and a critic network, and the method of screening the resource allocation strategy to be optimized according to the deep determination policy gradient algorithm and determining the nebula resource allocation strategy includes: The actor network determines a resource allocation strategy with the highest action value among the resource allocation strategies to be optimized as the nebula resource allocation strategy, wherein the action value is determined according to the critic network.
5. A Nebula computing resource allocation device, characterized in that: The device comprises: Data acquisition module, used to obtain target computing tasks and real-time resource status; A resource allocation module, used for inputting the target computing task and the real-time resource status into a resource allocation model, and outputting a nebula resource allocation strategy through the resource allocation model, wherein the resource allocation model includes a resource estimation module and a resource optimization module, the resource estimation module is used for determining the pre-occupied resources of the target computing task; the resource optimization module is used for determining the nebula resource allocation strategy according to the real-time resource status and the pre-occupied resources; The resource allocation module is further used to determine a target neural network corresponding to the target computing task according to the target computing task; determine the pre-occupied resources of each layer of the target neural network when the target neural network executes the target computing task according to the real-time resource status; and use the pre-occupied resources of each layer of the target neural network as the pre-occupied resources of the target computing task; The resource allocation module is further used to determine the Markov decision parameters according to the real-time resource status and the pre-occupied resources; based on the Markov decision parameters and the deep determination policy gradient algorithm, determine the nebula resource allocation strategy; The real-time resource status includes satellite real-time resource status and cloud server real-time resource status, and the Markov decision parameters include real-time state space parameters; The resource allocation module is further used to obtain real-time space environment information and data output of each layer of the target neural network; determine the real-time state space parameter according to the real-time space environment information, the data output of each layer of the target neural network and the real-time resource state; The Markov decision parameters include real-time action space parameters; The resource allocation module is also used to determine a real-time set of satellites to be allocated according to the real-time resource status of the satellites; determine a set of partition points of the target neural network according to the data output of each layer of the target neural network, the real-time resource status and the pre-occupied resources; and determine the real-time action space parameters according to the partition point set and the real-time set of satellites to be allocated.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable 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 4 are implemented.
Citation Information
Patent Citations
Satellite elastic internet resource scheduling method and system, computer equipment and medium
CN115514769A
