A cloud computing service resource allocation system
By deploying a metadata hotspot awareness module, a spatiotemporal bipartite graph construction and joint rebalancing module, and predictive allocation using deep reinforcement learning in a cloud computing platform, the information isolation problem between the cloud computing resource scheduling system and the distributed file system is solved. This enables real-time awareness of metadata hotspots and dynamic optimization of computing resources, thereby improving the system's response speed and resource utilization.
Patent Information
- Application Number
- CN202611250139.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-27
AI Technical Summary
The existing cloud computing resource scheduling system and the underlying distributed file system's metadata management system are independent and isolated from each other, which makes it impossible for the cloud scheduler to perceive the distribution of access hotspots on the underlying metadata server, resulting in problems such as metadata server overload and idle computing resources.
The system deploys a metadata hotspot awareness module, a spatiotemporal bipartite graph construction and joint rebalancing module, and a deep reinforcement learning-based predictive allocation module to achieve coordinated optimization of metadata hotspot information and computing resource scheduling. It uses kernel-mode probes to perceive metadata hotspots in real time, constructs a spatiotemporal bipartite graph for dynamic rebalancing, and uses deep reinforcement learning for predictive allocation.
It enables real-time linkage between metadata hotspot status and computing resource scheduling, reducing metadata service latency and computing resource idleness, and improving the overall throughput and stability of the system.
Smart Images

Figure CN123185069A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of cloud computing and distributed storage technology, specifically to a cloud computing service resource allocation system. Background Technology
[0002] In large-scale cloud computing and big data service environments, computing resources are usually managed uniformly by cloud-native scheduling platforms. These scheduling platforms select suitable deployment nodes for containerized tasks to be run from a set of candidate nodes based on the current resource status of each computing node, such as processor utilization, memory availability, and graphics processor availability, and in conjunction with pre-set scheduling strategies such as affinity, anti-affinity, and resource balancing, thereby completing the allocation of computing resources.
[0003] Meanwhile, the underlying systems that support massive data storage typically employ a distributed file system architecture. These systems generally manage data ontology and metadata separately: data is stored in shards on data nodes, while metadata information such as directory structure, access permissions, and node attributes is maintained by a separately deployed cluster of metadata servers. To alleviate the limited processing capacity of a single metadata server node, the industry primarily adopts two types of metadata distribution strategies:
[0004] One type is the static subtree splitting strategy, which assigns different subtrees to different metadata server nodes for management according to the directory tree structure. Although this method can maintain good directory locality, once a subtree becomes an access hotspot, it can easily cause single-point overload of the corresponding metadata server node.
[0005] Another type is the hash distribution strategy, which distributes metadata to various metadata server nodes based on the hash value of the file path. This method can achieve a relatively balanced load distribution, but it will destroy the original directory locality, generate a large number of cross-node path resolution requests, and thus increase access latency.
[0006] In addition, an observation technology framework that can dynamically load and safely run custom programs in the operating system kernel mode has been widely used for low-overhead real-time monitoring of kernel events.
[0007] Deep reinforcement learning methods, represented by the near-end policy optimization algorithm, have also been extensively studied and applied in the field of system resource scheduling. Together, they provide a reusable underlying technology foundation for resource scheduling optimization in cloud computing and distributed storage scenarios.
[0008] The closest existing technical solution to this invention is the traditional architecture in which the cloud computing resource scheduling system and the distributed file system operate independently. In this type of architecture, the cloud computing resource scheduling subsystem makes task allocation decisions based solely on the resource usage of computing nodes, such as processors, memory, and graphics processors, while the metadata management subsystem of the distributed file system independently executes subtree partitioning or hash distribution strategies and provides services such as path resolution and permission verification. There is no information exchange interface between the two subsystems. The cloud computing scheduler cannot obtain the real-time load and hotspot distribution status of the metadata server cluster, and the metadata management subsystem cannot report its processing bottlenecks to the scheduler. The two are only indirectly coupled through file read and write requests at the application layer.
[0009] The aforementioned existing technology has the following shortcomings:
[0010] Firstly, because the computing scheduling end and the storage metadata management end are isolated from each other, when a certain directory becomes an access hotspot, the scheduler may still continue to add computing tasks to the region because the processor utilization rate of the computing nodes in that region is low, thus causing a large number of computing nodes to access the same metadata resource at the same time, resulting in instantaneous overload of service nodes.
[0011] Secondly, existing technologies typically only employ a single metadata shard migration method when dealing with metadata hotspots. This method requires rebuilding the directory tree index and synchronizing the shard status, resulting in high operational costs, slow response times, and difficulty in handling sudden surges in concurrent access.
[0012] Third, existing technologies can only provide passive remedies after a hotspot has formed, lacking the ability to predict the arrival of high-concurrency access in advance. This leads to a situation where large areas of computing resources are idle when a fault occurs. Therefore, how to build a resource allocation system that can connect and coordinate the hotspot status of storage metadata with computing resource scheduling decisions is a technical problem that urgently needs to be solved in this field. Summary of the Invention
[0013] The technical problem this invention aims to solve is that existing cloud computing resource scheduling systems and the underlying distributed file system's metadata management system are independent and isolated from each other. When allocating computing resources for high-concurrency services, the cloud scheduler cannot perceive the access hotspot distribution of the underlying metadata server. This leads to overload of the metadata server when encountering local access hotspots, compounded by the phenomenon of numerous computing nodes concurrently accessing the same resource due to blind scheduling of computing resources. Ultimately, this results in increased metadata processing latency and widespread idle computing resources. Specifically, the invention addresses how to perceive the spatiotemporal distribution of distributed file system metadata hotspots in real time with low overhead, how to jointly optimize metadata hotspot information and computing resource scheduling decisions to achieve a balance between metadata migration costs and computing task rescheduling costs, and how to perform predictive resource pre-allocation before high-concurrency access occurs.
[0014] To address the aforementioned technical problems, this invention provides a cloud computing service resource allocation system, including a metadata hotspot perception module, a spatiotemporal bipartite graph construction and joint rebalancing module, a predictive allocation module based on deep reinforcement learning, and a scheduling plugin module.
[0015] The metadata hotspot awareness module is deployed on the metadata server node of the distributed file system. It is used to intercept path resolution events, permission verification events and attribute acquisition events processed by the metadata server node through kernel-mode probes, count the access frequency, average response latency and request queue length of each metadata subtree within a set time window, calculate the heat value of each metadata subtree based on the statistical results, and generate and output hotspot events when it is determined that the heat value of a certain metadata subtree exceeds a preset heat threshold.
[0016] The spatiotemporal bipartite graph construction and joint rebalancing module is connected to the metadata hotspot perception module. Upon receiving a hotspot event, it obtains a set of computing nodes currently accessing metadata shards at risk of hotspot access. A bipartite graph is constructed using the computing nodes in this set as vertices on one side and the metadata shards at risk as vertices on the other side. The joint cost corresponding to each combination of the computing nodes and the metadata shards is calculated. This joint cost is obtained by weighted summation of the metadata shard migration cost and the computing task rescheduling cost. A preset graph matching algorithm is used to optimize the sum of the joint costs to obtain a target matching scheme. Based on the numerical comparison between the metadata shard migration cost and the computing task rescheduling cost in the target matching scheme, one of a metadata shard migration instruction or a computing task rescheduling instruction is generated.
[0017] The predictive allocation module based on deep reinforcement learning is connected to the metadata hotspot perception module and the spatiotemporal bipartite graph construction and joint rebalancing module. It is used to train the policy network based on historical workload data and output predictive actions based on the real-time collected system status. The predictive actions are used to complete the metadata subtree splitting and computation task shuffling and scheduling in advance before the arrival of the access storm is predicted.
[0018] The scheduling plugin module is connected to the spatiotemporal bipartite graph construction and joint rebalancing module, the deep reinforcement learning-based predictive allocation module, and the Kubernetes scheduler, respectively. It is used to receive various instructions and actions, convert them into scheduling control signals for the Kubernetes scheduler, and complete the final allocation and execution of computing resources.
[0019] Compared with the prior art, the beneficial effects of the present invention by adopting the above technical solution are as follows:
[0020] 1. This invention constructs an information closed loop between metadata hotspot awareness and computing resource scheduling by deploying kernel-mode low-overhead probes on metadata server nodes. This enables the cloud computing resource allocation system to obtain the metadata hotspot status in real time, avoiding blind scheduling decisions from the source, thereby significantly reducing the probability of metadata service blocking caused by blind scheduling.
[0021] 2. This invention achieves dynamic trade-offs between two types of handling methods by constructing a spatiotemporal bipartite graph rebalancing mechanism with a joint evaluation of metadata fragmentation migration costs and computation task rescheduling costs as the core, thereby reducing system response latency and operation and maintenance costs while ensuring service quality.
[0022] 3. By introducing a predictive allocation mechanism based on deep reinforcement learning, this invention proactively completes metadata subtree splitting and computation task distribution scheduling before the access storm arrives, fundamentally suppressing the service overload caused by a large number of computing nodes concurrently accessing the same resource, and significantly improving the overall utilization of computing resources.
[0023] In summary, this invention achieves closed-loop linkage and dynamic rebalancing between distributed file system metadata hotspot awareness and cloud computing power allocation, which can effectively reduce metadata access latency, reduce idle computing resources and improve the overall throughput and stability of the system. Attached Figure Description
[0024] Figure 1 This is a schematic diagram of the overall closed-loop architecture of the system in an embodiment of the present invention;
[0025] Figure 2 This is a flowchart illustrating the metadata hotspot perception process in an embodiment of the present invention.
[0026] Figure 3This is a flowchart of the spatiotemporal bipartite graph joint rebalancing process in an embodiment of the present invention. Detailed Implementation
[0027] The following is in conjunction with the appendix Figure 1-3 The specific embodiments of the present invention will be further described below. It should be noted that the description of these embodiments is for the purpose of helping to understand the present invention, but does not constitute a limitation of the present invention.
[0028] To make the technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to specific embodiments. It should be understood that the specific embodiments described herein are only for explaining the present invention and are not intended to limit the scope of protection of the present invention.
[0029] The cloud computing service resource allocation system provided in this embodiment is deployed in an environment where a cloud computing platform and a distributed file system work together. The distributed file system manages the directory tree by sharding it according to the granularity of subtrees. Each metadata subtree is handled by a corresponding metadata server node, which is responsible for handling metadata operations such as path resolution, permission verification, and attribute acquisition. The system as a whole includes a metadata hotspot perception module, a spatiotemporal bipartite graph construction and joint rebalancing module, a predictive allocation module based on deep reinforcement learning, and a scheduling plugin module, which work together to form a closed-loop system in which perception, decision-making, execution, and prediction cooperate with each other.
[0030] I. Specific Implementation of the Metadata Hotspot Awareness Module
[0031] In this embodiment, the metadata hotspot awareness module deploys a lightweight observation probe in the kernel space of each metadata server node. The probe is mounted on the path resolution function entry point of the virtual file system layer and the metadata request processing function entry point of the remote procedure call communication layer. It is used to intercept metadata operation events such as path resolution, permission verification, and attribute acquisition in real time. For each intercepted metadata operation event, the probe parses out the directory subtree identifier to which the operation belongs and atomically updates the access counter and cumulative latency value corresponding to the subtree in the hash mapping structure maintained in the kernel space.
[0032] The user-space agent process, working in conjunction with the probe, periodically reads statistical data from the kernel-space hash mapping structure within a fixed statistical time window, calculates the total number of accesses and average response latency of each metadata subtree during that period, and, in conjunction with the current request queue length reported by the metadata server node, calculates the popularity value of each metadata subtree according to the following formula:
[0033] ;
[0034] In the above formula, Indicates the first The popularity value of the individual data subtree;
[0035] This indicates the total number of times the subtree was visited within the statistical time window;
[0036] Indicates the length of the statistical time window;
[0037] This indicates the average response latency for metadata requests within this subtree;
[0038] This indicates the current request queue length of the subtree on the metadata server node.
[0039] , , These are the weighting coefficients corresponding to the access frequency, latency, and queue length items, respectively. The specific values of these three items can be pre-calibrated based on the actual cluster's processing capacity, network topology, and historical operating data, and are used to reflect the relative influence of different statistical dimensions on hotspot determination.
[0040] The user-mode agent process sorts the popularity values of each metadata subtree according to their numerical values, and determines whether there is a metadata subtree whose popularity value exceeds the preset popularity threshold. If so, it encapsulates the subtree's identification information, popularity value, and metadata server node information into a hot event, and reports it to the spatiotemporal bipartite graph construction and joint rebalancing module through the system's internal shared state information bus.
[0041] If there is no metadata subtree exceeding the preset popularity threshold, the statistical count for this period is cleared, and the collection and calculation for the next period continues.
[0042] The technical advantage of using the above kernel-mode observation method is that the interception and statistics of metadata operation events are completed entirely in the kernel mode, without any modification to the user-mode application or the introduction of additional application-layer probing traffic. Therefore, it can achieve real-time, fine-grained awareness of metadata access hotspots with extremely low resource overhead.
[0043] II. Specific Implementation of the Spatiotemporal Bipartite Graph Construction and Joint Rebalancing Module
[0044] Upon receiving a hotspot event reported by the metadata hotspot awareness module, the spatiotemporal bipartite graph construction and joint rebalancing module does not directly execute metadata shard migration. Instead, it first retrieves the set of compute nodes currently accessing metadata shards with hotspot risks from the scheduling state bus, and uses each compute node in this set as a bipartite graph. Figure 1 The vertices on one side are used as the vertices on the other side of the bipartite graph, and the metadata shards with hotspot risks are used as the vertices on the other side of the bipartite graph to construct a weighted bipartite graph.
[0045] For each combination of compute nodes and metadata shards in the bipartite graph, this module estimates the migration cost if a metadata sharding migration scheme is adopted, and the rescheduling cost if a compute task rescheduling scheme is adopted, and calculates the joint cost of the two according to the following joint cost function:
[0046] ;
[0047] In the above formula, Indicates that the compute node Metadata Sharding The joint cost corresponding to the matching;
[0048] This indicates that if metadata is fragmented Migrate to be closer to the compute nodes in the network topology The migration cost required for the metadata server node is estimated based on the amount of data synchronization for the shards to be migrated and the time required to rebuild the directory tree index.
[0049] This indicates that if the computing node is... Containers running on the network are being migrated to be closer to the metadata shards in the network topology. The rescheduling cost required by the physical machine of the current metadata server node is estimated based on the size of the container state data and the risk of task interruption during the migration process.
[0050] , These are the weighting coefficients corresponding to the migration cost item and the rescheduling cost item, respectively, used to balance the relative importance of the two types of costs in joint decision-making. The specific values of the two can be pre-calibrated based on the actual network bandwidth, storage performance and other parameters of the cluster.
[0051] After constructing the weighted bipartite graph, this module uses the minimum total joint cost as the optimization objective and calls the minimum cost maximum flow algorithm to solve the bipartite graph. The solution objective can be expressed as:
[0052] ;
[0053] The constraints of the above equation are:
[0054] ;
[0055] ;
[0056] In the above formulas, Indicates the number of computation nodes involved in the matching;
[0057] This indicates the number of metadata fragments currently at risk of being exposed to hotspots.
[0058] For decision variables that take values of 0 or 1, A value of 1 indicates a compute node Metadata Sharding Establishing a matching relationship involves performing a migration or rescheduling action on the combination. A value of 0 indicates that no matching relationship is established;
[0059] The first constraint limits each compute node to participating in at most one set of matches, and the second constraint limits each metadata shard to participating in at most one set of matches.
[0060] After obtaining the target matching scheme, this module traverses each matching pair in the scheme. If the migration cost of a certain matching pair is less than its rescheduling cost, a metadata shard migration instruction is generated and sent to the storage manager to execute the metadata shard migration operation.
[0061] For cases where the migration cost of a matching pair is not less than its rescheduling cost, a rescheduling instruction for the computing task is generated. This instruction is then sent to the Kubernetes scheduler through the scheduling plugin module to perform the container migration operation. After the corresponding operation is completed, this module updates the topological position status of the corresponding node and shard in the bipartite graph and clears the hot events processed in this round, waiting for the triggering of the next round of hot events.
[0062] It should be noted that in application scenarios where the scale of computing nodes and metadata shards is large and the time consumption of solving with exact algorithms is difficult to meet real-time requirements, this module can also use approximate solution methods such as simulated annealing or genetic algorithms to solve the above bipartite graph matching problem. By setting reasonable iteration termination conditions, a balance can be achieved between solution accuracy and response speed, and the rebalancing goal of reducing the overall joint cost can also be achieved. This implementation method is an optional implementation method of the present invention.
[0063] III. Specific Implementation of the Predictive Assignment Module Based on Deep Reinforcement Learning
[0064] To further achieve the leap from passive response to proactive prevention, the system in this embodiment also includes a predictive allocation module based on deep reinforcement learning. This module learns from the tenant's historical high-concurrency workload patterns and, when it predicts that a metadata access storm is about to occur, completes the metadata subtree splitting and computation task distribution scheduling in advance.
[0065] This module defines the system state in the following vector form:
[0066] ;
[0067] In the above formula, express The environment state vector at any given time;
[0068] express The load level of each metadata server node at any given time;
[0069] express The utilization rate of the processor and graphics processor of each computing node at any given time;
[0070] express Bandwidth utilization of each link in the network topology at any given time;
[0071] This indicates the trend of metadata request volume changes over a future period, predicted based on historical access trajectory data.
[0072] The action space of this module is defined as follows:
[0073] ;
[0074] In the above formula, Indicates that the intelligent agent is in The action output at any time;
[0075] This means that the metadata subtrees corresponding to the predicted hot target directories are pre-segmented, and the segmented subtrees are distributed to multiple metadata server nodes with low current load.
[0076] This indicates that the current resource allocation status will remain unchanged.
[0077] This means that during the subsequent allocation of computing resources, related computing tasks will be distributed and scheduled to idle physical machines under multiple different network racks to avoid the same rack or the same metadata server node being accessed concurrently in a short period of time.
[0078] The reward function for this module is defined as follows:
[0079] ;
[0080] In the above formula, express The immediate rewards obtained by the agent at any given moment;
[0081] express The probability of resource allocation failure or metadata request timeout occurring at any given time;
[0082] This represents the operational cost incurred in performing the subtree splitting operation;
[0083] express The overall graphics processor utilization of the cluster at any given time;
[0084] , , These are the weighting coefficients for each corresponding indicator, and their specific values can be pre-determined based on the relative importance that the business places on service quality and resource utilization.
[0085] The policy network in this module is trained using the near-end policy optimization algorithm, and its pruning objective function is:
[0086] ;
[0087] In the above formula, This represents the pruning objective function of the near-end policy optimization algorithm;
[0088] Represents the parameters of the policy network;
[0089] Indicates the state of the old and new strategies. Select action The probability ratio;
[0090] This represents the advantage function estimate, used to measure how well or poorly the action is performed relative to the average level.
[0091] This is a pruning range hyperparameter used to limit the magnitude of a single policy update and prevent divergence during training.
[0092] In the specific implementation process, the working process of this module is divided into two stages: offline training and online inference. In the offline training stage, the system extracts access trajectory data covering multiple business cycles from the cluster's historical monitoring system, constructs a state sample sequence based on the aforementioned definition of state vector, and calculates the corresponding reward value by combining historically actual resource allocation failure events, migration operation records, and graphics processor utilization data. The system initializes the parameters of the policy network and value network, and performs multiple rounds of iterative training based on the constructed sample sequence according to the pruning objective function until the cumulative reward of the policy network on the validation dataset converges, thus obtaining the pre-trained model.
[0093] During the online inference phase, the system deploys the pre-trained model to the online inference service, collects the current cluster status in real time as input, and outputs predictive actions by the policy network. If the output action is a pre-segmentation action, the system pre-segments the metadata subtree corresponding to the predicted hot target directory and distributes it to multiple idle metadata server nodes with low current load.
[0094] If the output action is a breakup scheduling action, the scheduling plugin will prioritize breaking up and scheduling the task to multiple idle physical machines under different network racks when allocating resources for related computing tasks in the future.
[0095] If the output action is a maintenance action, the current resource allocation state remains unchanged. The system records the actual system performance within the set time window after the action is executed, including whether a request timeout occurs, the resource allocation failure rate, and changes in the graphics processor utilization. Based on this, the actual reward value is calculated and fed back to the policy network for online updating of model parameters. This cycle forms a closed loop in which prediction, execution, feedback, and optimization mutually promote each other.
[0096] It should be noted that in application scenarios where sufficient historical access trajectory data is lacking to support deep reinforcement learning training, this module can also be implemented by combining a time-series prediction model with a rule engine. That is, a time-series prediction model such as a long short-term memory network is used to predict the future trend of metadata request volume, and combined with a pre-set threshold rule, a subtree splitting action is triggered when the predicted request volume exceeds the set threshold. This implementation method can also achieve the technical effect of predictive resource pre-allocation and suppress the phenomenon of a large number of computing nodes concurrently accessing the same resource, which is an optional implementation method of the present invention.
[0097] IV. Specific Implementation of the Scheduling Plugin Module and Overall System Collaboration Workflow
[0098] The scheduling plugin module is an extension of the Kubernetes scheduler framework. It establishes communication connections with the storage manager and the predictive allocation module based on deep reinforcement learning through remote procedure call interfaces. This module receives metadata shard migration instructions and computation task rescheduling instructions issued by the spatiotemporal bipartite graph construction and joint rebalancing module, as well as predictive actions output by the predictive allocation module. It converts the content related to computation task scheduling into specific scheduling control signals for the Kubernetes scheduler, such as node affinity label adjustment and task rebinding, thereby completing the actual allocation and execution of computing resources.
[0099] The overall collaborative workflow of the system is as follows: The metadata hotspot perception module continuously collects metadata access events and calculates the metadata subtree popularity value to determine whether a hotspot event has been triggered;
[0100] In the absence of hot events, the predictive allocation module based on deep reinforcement learning performs future load prediction in parallel. If a potential access storm is predicted, it performs pre-subtree splitting or task shuffling before returning to the continuous data collection stage.
[0101] When a hotspot event is triggered, the system enters the spatiotemporal bipartite graph construction and joint rebalancing process. By constructing the bipartite graph and solving the target matching scheme, the system performs metadata fragment migration or computation task rescheduling based on the comparison results of migration cost and rescheduling cost. After the execution is completed, the system status is updated and the system returns to the initial acquisition stage, thus forming a complete closed loop in which perception, decision-making, execution and prediction cooperate with each other.
[0102] For example, in the training scenario of large-scale artificial intelligence models, tens of thousands of computing nodes may simultaneously send write requests to a certain model checkpoint aggregation directory. In the system of this embodiment, the metadata hotspot perception module can calculate a high heat value and generate hotspot events in the early stage when the access frequency of the directory rises rapidly. The spatiotemporal bipartite graph construction and joint rebalancing module then intervenes. Based on the real-time estimated migration cost and rescheduling cost, it dynamically selects to migrate the corresponding metadata shard or reschedule the relevant computing tasks. Compared with the existing technology where the cloud computing resource scheduling subsystem and the distributed file system metadata management subsystem are independent and can only passively perform single shard migration after the metadata server is overloaded, this embodiment evaluates the metadata shard migration cost and the computing task rescheduling cost simultaneously through a joint cost function and dynamically selects the best option. Combined with the predictive allocation module to complete subtree splitting and task shuffling in advance, it has verifiable substantial improvements over the existing single passive migration scheme in terms of metadata hotspot response latency and computing resource idle suppression. It avoids the situation of blindly adding computing tasks to the area and reduces the service overload risk caused by a large number of computing nodes accessing the same metadata resource from the source.
[0103] The above embodiments are merely one specific implementation of the present invention. Those skilled in the art should understand that various modifications and improvements can be made to the specific implementation of the present invention without departing from the concept of the present invention, and all of these fall within the protection scope of the present invention.
[0104] Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of the present invention. Therefore, any modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the protection scope defined by the claims of the present invention.
Claims
1. A cloud computing service resource allocation system, characterized in that, include: The metadata hotspot awareness module is deployed on the metadata server node of the distributed file system. It is used to intercept path resolution events, permission verification events and attribute acquisition events processed by the metadata server node through kernel-mode probes, count the access frequency, average response latency and request queue length of each metadata subtree within a set time window, calculate the heat value of each metadata subtree based on the statistical results, and generate and output hotspot events when it is determined that the heat value of a certain metadata subtree exceeds a preset heat threshold. The spatiotemporal bipartite graph construction and joint rebalancing module, connected to the metadata hotspot perception module, is used to obtain the set of computing nodes that are currently accessing metadata shards with hotspot risks after receiving the hotspot event. It constructs a bipartite graph with the computing nodes in the set as vertices on one side and the metadata shards with hotspot risks as vertices on the other side. It calculates the joint cost corresponding to each combination between the computing nodes and the metadata shards. The joint cost is obtained by weighted summation of the metadata shard migration cost and the computing task rescheduling cost. The sum of the joint costs is optimized and solved by a preset graph matching algorithm to obtain a target matching scheme. Based on the numerical comparison results of the metadata shard migration cost and the computing task rescheduling cost in the target matching scheme, it generates one of the metadata shard migration instruction and the computing task rescheduling instruction. The predictive allocation module based on deep reinforcement learning is connected to the metadata hotspot perception module and the spatiotemporal bipartite graph construction and joint rebalancing module. It is used to train a policy network based on historical workload data and output predictive actions based on the real-time collected system status. The system status includes the load level of metadata server nodes, the resource utilization rate of computing nodes, the network link bandwidth utilization rate, and the predicted trend of metadata request volume. The predictive actions include one of the following three actions: pre-splitting the metadata subtree of the predicted hotspot target directory, maintaining the current resource allocation status unchanged, and guiding the scattered scheduling of computing tasks. The scheduling plugin module is connected to the spatiotemporal bipartite graph construction and joint rebalancing module, the deep reinforcement learning-based predictive allocation module, and the Kubernetes scheduler, respectively. The metadata hotspot perception module, the spatiotemporal bipartite graph construction and joint rebalancing module, and the deep reinforcement learning-based predictive allocation module interact with each other via a shared state information bus. The shared state information bus is used to transmit the hotspot events, system status, and target matching scheme, and to receive one of the metadata shard migration instructions and the computation task rescheduling instructions, as well as the predictive actions. It converts the computation task rescheduling instructions and the predictive actions related to computation task scheduling into scheduling control signals for the Kubernetes scheduler.
2. The system according to claim 1, characterized in that, The metadata hotspot perception module is specifically used to: perform a weighted summation of the access frequency item, latency item, and queue length item to obtain the heat value of the metadata subtree; The access frequency item is determined based on the ratio of the total number of accesses to the metadata subtree within the statistical time window to the length of the statistical time window. The latency item is determined based on the average response latency of metadata requests within the metadata subtree. The queue length item is determined based on the current request queue length of the metadata subtree on the metadata server node.
3. The system according to claim 1, characterized in that, The metadata hotspot awareness module includes a probe program deployed in the kernel mode of the metadata server node and a user-mode agent process. The probe program is mounted at the path resolution function entry point of the virtual file system layer and the metadata request processing function entry point of the remote procedure call communication layer. It is used to intercept metadata operation events and atomically update the access counter and cumulative latency value of the corresponding metadata subtree in the hash mapping structure maintained in kernel mode. The user-mode agent process is used to read statistical data in the hash mapping structure periodically with a pre-set statistical time window length, the statistical time window length being consistent with the statistical time window length corresponding to the access frequency item in claim 2, calculate the heat value, and generate the hot event when there is a metadata subtree with a heat value exceeding a preset heat threshold.
4. The system according to claim 1, characterized in that, The metadata shard migration cost is determined based on the amount of data synchronization and index rebuilding time required to migrate the metadata shards to the target metadata server node. The cost of rescheduling the computing task is determined based on the container migration time required to migrate the containers running on the computing node to the target physical machine and the risk of task interruption.
5. The system according to claim 1, characterized in that, The spatiotemporal bipartite graph construction and joint rebalancing module is specifically used to: when the metadata shard migration cost of a certain matching pair in the target matching scheme is less than the computation task rescheduling cost of the matching pair, generate a metadata shard migration instruction and send it to the storage manager to execute the metadata shard migration. When the metadata shard migration cost of a certain matching pair in the target matching scheme is not less than the computation task rescheduling cost of the matching pair, a computation task rescheduling instruction is generated and sent to the Kubernetes scheduler through the scheduling plugin module to execute container migration.
6. The system according to claim 1, characterized in that, The preset graph matching algorithm is the minimum cost maximum flow algorithm, which is used to optimize the sum of the joint costs under the constraints that each computing node participates in at most one set of matching and each metadata shard participates in at most one set of matching.
7. The system according to claim 1, characterized in that, The policy network of the predictive allocation module based on deep reinforcement learning is trained using a near-end policy optimization algorithm. During training, the update range of the probability ratio between the new and old policies is limited according to a preset pruning range hyperparameter to avoid divergence during training.
8. The system according to any one of claims 1 to 7, characterized in that, The predictive allocation module based on deep reinforcement learning is also used to: record the actual system performance within a set time window after the predictive action is executed, calculate the actual reward value based on the actual system performance and feed it back to the policy network, and update the parameters of the policy network online.
9. The system according to claim 1, characterized in that, The metadata hotspot perception module, the spatiotemporal bipartite graph construction and joint rebalancing module, and the deep reinforcement learning-based predictive allocation module interact with each other via a shared state information bus. The shared state information bus is used to transmit the hotspot events, the system state, and the target matching scheme.
10. A cloud computing service resource allocation method, applied to the system according to any one of claims 1 to 9, characterized in that, include: By intercepting metadata operation events through kernel-mode probes deployed on distributed file system metadata server nodes, the access frequency, average response latency, and request queue length of each metadata subtree within a set time window are statistically analyzed. Based on the statistical results, the popularity value of each metadata subtree is calculated. When the popularity value of a certain metadata subtree exceeds a preset popularity threshold, a hot event is generated. Upon receiving the hotspot event, the set of computing nodes currently accessing the metadata shard with hotspot risk is obtained. A bipartite graph is constructed with the computing nodes in the set as vertices on one side and the metadata shards with hotspot risk as vertices on the other side. The joint cost corresponding to each combination between the computing node and the metadata shard is calculated. The joint cost is obtained by weighted summation of the metadata shard migration cost and the computing task rescheduling cost. The sum of the joint costs is optimized and solved by a preset graph matching algorithm to obtain a target matching scheme. Based on the numerical comparison results of the metadata shard migration cost and the computing task rescheduling cost in the target matching scheme, one of the metadata shard migration instruction and the computing task rescheduling instruction is generated and executed. A policy network is trained based on historical workload data. The policy network outputs predictive actions based on the real-time collected system status, which includes the load level of metadata server nodes, the resource utilization rate of computing nodes, the network link bandwidth utilization rate, and the predicted trend of metadata request volume. When the predictive action is a segmentation action, the metadata subtree of the predicted hotspot target directory is segmented in advance; When the predictive action is a sustaining action, the current resource allocation state remains unchanged; When the predictive action is a breakup action, the computational task is guided to be broken up and scheduled.
