A cloud storage platform resource allocation method
Through real-time monitoring and dynamic adjustment of server load and benefit index, the load imbalance problem caused by the static allocation algorithm of the cloud platform is solved, and the adaptability of resource allocation and the stability and reliability of the cloud platform are improved.
Patent Information
- Application Number
- CN202410842524.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Existing cloud platforms use static allocation algorithms, resulting in server load imbalance and difficulty in coping with dynamically changing workloads, resulting in resource waste and performance degradation.
Through real-time monitoring of server load and efficiency index, dynamically adjust resource allocation, generate and sort quality assignments, and flexibly adjust polling intervals to ensure load balancing and resource optimization.
It improves the adaptability of resource allocation and the stability and reliability of the cloud platform, avoids server overload or excessive resource strain, and simplifies administrator management.
Smart Images

Figure CN118400377B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of resource allocation, and in particular to a cloud storage platform resource allocation method. Background Art
[0002] Cloud resource allocation refers to the process of dynamically allocating and managing computing resources (such as CPU, memory, storage, network bandwidth, etc.) based on user needs and application scenarios in a cloud computing environment.
[0003] The existing calculation has the following defects:
[0004] Existing cloud platforms usually use static allocation algorithms for resource allocation. Static allocation algorithms may not be able to adapt to the dynamically changing workloads and resource states in the cloud platform, resulting in some servers being overloaded while other servers being underloaded, thus wasting resources. In addition, under dynamic workloads, static allocation algorithms may not be able to respond to changing requests in a timely manner. When the cloud platform faces sudden loads, it is difficult to make dynamic adjustments based on the real-time environment and needs, resulting in performance degradation or even failure of the cloud platform.
[0005] Based on this, the present invention proposes a cloud storage platform resource allocation method, which performs dynamic adjustments according to the real-time monitored system status and load conditions to make the load of each server more balanced, which not only effectively improves the adaptability of resource allocation, but also improves the resource allocation effect, stability and reliability of the cloud platform. Summary of the invention
[0006] The purpose of the present invention is to provide a cloud storage platform resource allocation method to solve the deficiencies in the background technology.
[0007] In order to achieve the above object, the present invention provides the following technical solution: a cloud storage platform resource allocation method, the allocation method comprising the following steps:
[0008] The allocation system initializes each server of the cloud platform and records the status information of each server. It generates an initial score for each server based on the status information, and sorts all servers from large to small according to the initial score to generate an initial list. When there are multiple requests after the initial startup of the cloud platform, the polling allocation method is used to allocate the requests to the corresponding servers in the initial list in turn.
[0009] Regularly monitor the load and benefit index of each server in the cloud platform, generate quality values for each server based on the load and benefit index, and calculate the benefit index of the server. The expression is: , where is the benefit index, is the server failure rate, is the server resource utilization, , are the weights of server failure rate and server resource utilization, respectively, and , dynamically sort all servers from large to small according to the quality assignment, and generate a dynamic list. When multiple new requests appear during the operation of the cloud platform, the polling allocation method is used to allocate the requests to the corresponding servers in the dynamic list in turn;
[0010] Comparing the quality values of all servers with a preset gradient threshold, and judging whether it is necessary to dynamically adjust the polling interval of the server according to the comparison result, and comparing the quality values of all servers with a preset gradient threshold, and judging whether it is necessary to dynamically adjust the polling interval of the server according to the comparison result, including the following steps:
[0011] Obtaining quality values of all servers in the dynamic list, where the gradient threshold includes a first server threshold and a second server threshold, and comparing the quality value with the first server threshold and the second server threshold;
[0012] If the quality assignment is greater than or equal to the first server threshold, and the quality assignment is less than the second server threshold, the current performance of the analysis server remains unchanged;
[0013] If the quality assigned value is greater than or equal to the second server threshold, the current performance of the analysis server is improved;
[0014] If the quality assigned value is less than the first server threshold, the current performance of the analysis server is deteriorated;
[0015] When the current performance of the analysis server is getting better or worse, the polling interval of the server needs to be dynamically adjusted. The adjustment algorithm is:
[0016] , where For the The polling interval after the server is dynamically adjusted. For the The polling interval before the server is dynamically adjusted. Assign a value to the quality, is the first server threshold, The second server threshold is used, and the operation status of the cloud platform is analyzed and corresponding management is performed according to the dynamic adjustment result of the polling interval.
[0017] In a preferred embodiment, the distribution system initializes each server of the cloud platform and records the status information of the server, including the following steps:
[0018] The allocation system obtains a list of all servers in the cloud platform, which include physical servers, virtual machine instances, or containerized instances. Each server is responsible for storing a portion of the data.
[0019] Connecting to the server: The distribution system establishes a connection with each server through a network communication protocol to obtain the server's status information;
[0020] Use monitoring tools to obtain the remaining capacity and current load on the server;
[0021] The acquired server status information is recorded and stored in the database or memory of the distribution system, and the server status is updated regularly.
[0022] In a preferred embodiment, generating an initial score for each server through state information includes the following steps:
[0023] After calculating the remaining capacity and load of the server, the remaining capacity and load are normalized using the general normalization formula, the value range of the remaining capacity and load is mapped to [0,1], and the normalized value of the remaining capacity and the normalized value of the load are obtained. The initial score of the server is obtained by subtracting the load from the remaining capacity. After obtaining the initial scores of all servers, all servers are initially sorted from large to small according to the initial scores to generate an initial list.
[0024] In a preferred embodiment, when there are multiple requests after the initial startup of the cloud platform, a polling allocation method is used to sequentially allocate the requests to the corresponding servers in the initial list, including the following steps:
[0025] When there are multiple requests after the initial startup of the cloud platform, the allocation system first sorts the multiple requests from short to long according to the length of time until the deadline, then matches the sorted requests with the servers in the initial list in positive order, and then allocates the requests to the corresponding servers in the initial list;
[0026] When a request in the initial list is assigned to a server, but that server is deactivated, the allocation system automatically polls the next server to assign the request;
[0027] If there are unassigned requests, they will be placed in the queue area. When an idle route appears, the request with the shortest time left to the deadline in the queue area will be assigned.
[0028] When the number of requests in the queue area exceeds the threshold, an alert signal is sent to the administrator.
[0029] In a preferred embodiment, when multiple new requests appear during the operation of the cloud platform, a polling allocation method is used to sequentially allocate the requests to the corresponding servers in the dynamic list, including the following steps:
[0030] After obtaining the benefit index and load of the server regularly, the benefit index and load are normalized by the general normalization formula, the value range of the benefit index and load is mapped to [0,1], and the normalized value of the benefit index and the normalized value of the load are obtained. The quality assignment of the server is obtained by subtracting the normalized value of the load from the normalized value of the benefit index. After obtaining the quality assignment of all servers, all servers are dynamically sorted from large to small according to the quality assignment to generate a dynamic list;
[0031] When multiple requests are generated during the operation of the cloud platform, the allocation system first sorts the multiple requests from short to long according to the length of time left to the deadline, then matches the sorted requests with the servers in the dynamic list in positive order, and then allocates the requests to the corresponding servers in the dynamic list.
[0032] In a preferred embodiment, analyzing the operating status of the cloud platform and performing corresponding management according to the dynamic adjustment result of the polling interval time includes the following steps:
[0033] The allocation system obtains the polling interval adjustment information of all servers in the cloud platform at regular intervals, and puts all servers with increased polling intervals into set X, and all servers with reduced polling intervals into set Y. If the number of servers in set X is greater than twice the number of servers in set Y, the operation status of the cloud platform is analyzed to be deteriorating, and a management policy that needs to be managed and maintained is generated and sent to the administrator.
[0034] In a preferred embodiment, the remaining capacity of the server is calculated as follows:
[0035] , where is the remaining capacity, is the total capacity of the server, The capacity that the server has used.
[0036] In a preferred embodiment, the server load calculation expression is: , where For load, is the amount of resources already used by the server, The total amount of resources on the server.
[0037] In the above technical solution, the technical effects and advantages provided by the present invention are:
[0038] 1. The present invention regularly monitors the load and benefit index of each server in the cloud platform, generates a quality assignment for each server based on the load and benefit index, dynamically sorts all servers from large to small according to the quality assignment, generates a dynamic list, and when multiple new requests appear during the operation of the cloud platform, a polling allocation method is used to sequentially allocate the requests to the corresponding servers in the dynamic list. The allocation method is dynamically adjusted according to the system status and load conditions monitored in real time, so that the load of each server is more balanced, which not only effectively improves the adaptability of resource allocation, but also improves the resource allocation effect, stability and reliability of the cloud platform;
[0039] 2. The present invention compares the quality assignments of all servers with the preset gradient threshold, determines whether it is necessary to dynamically adjust the polling interval of the server according to the comparison results, analyzes the operating status of the cloud platform and performs corresponding management according to the dynamic adjustment results of the polling interval, and dynamically adjusts the polling allocation interval to flexibly adjust resource allocation according to the real-time cloud platform status and server load conditions to achieve load balancing and optimize cloud platform performance. It helps avoid situations where the server is overloaded or resources are overly tight, and is convenient for administrators to manage the cloud platform, further improving the stability and reliability of the cloud platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0041] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] Example 1: Please refer to Figure 1 As shown, a cloud storage platform resource allocation method described in this embodiment includes the following steps:
[0044] The allocation system initializes each server of the cloud platform and records their status information, such as remaining capacity, load conditions, etc., generates an initial score for each server based on the remaining capacity and load conditions, and initially sorts all servers from large to small based on the initial score to generate an initial list. When there are multiple requests after the initial startup of the cloud platform, a polling allocation method is used to allocate the requests to the corresponding servers in the initial list in turn. The load conditions and benefit index of each server in the cloud platform are regularly monitored. A quality assignment is generated for each server based on the load conditions and benefit index. All servers are dynamically sorted from large to small based on the quality assignment to generate a dynamic list. When multiple new requests appear during the operation of the cloud platform, a polling allocation method is used to allocate the requests to the corresponding servers in the dynamic list in turn. The quality assignments of all servers are compared with the preset gradient threshold. Based on the comparison results, it is determined whether it is necessary to dynamically adjust the polling interval of the server, and the operation status of the cloud platform is analyzed and corresponding management is performed based on the dynamic adjustment results of the polling interval.
[0045] This application regularly monitors the load and benefit index of each server in the cloud platform, generates a quality value for each server based on the load and benefit index, dynamically sorts all servers from large to small according to the quality value, generates a dynamic list, and when multiple new requests appear during the operation of the cloud platform, a polling allocation method is used to allocate the requests to the corresponding servers in the dynamic list in turn. This allocation method is dynamically adjusted according to the real-time monitored system status and load conditions, so that the load of each server is more balanced, which not only effectively improves the adaptability of resource allocation, but also improves the resource allocation effect, stability and reliability of the cloud platform.
[0046] This application compares the quality assignments of all servers with the preset gradient threshold, determines whether it is necessary to dynamically adjust the polling interval of the server based on the comparison results, and analyzes the operating status of the cloud platform and performs corresponding management based on the dynamic adjustment results of the polling interval. By dynamically adjusting the polling allocation interval, the allocation of resources can be flexibly adjusted according to the real-time cloud platform status and server load conditions to achieve load balancing and optimize cloud platform performance. This helps avoid situations where the server is overloaded or resources are overly tight, and facilitates administrators to manage the cloud platform, further improving the stability and reliability of the cloud platform.
[0047] The allocation system includes an initialization module, a scoring module, a static allocation module, a data monitoring module, an index generation module, a dynamic allocation module, an interval adjustment module, and a management module;
[0048] Initialization module: Initializes each server of the cloud platform and records their status information, such as remaining capacity, load, etc. The remaining capacity and load are sent to the scoring module;
[0049] Scoring module: Generates an initial score for each server based on the remaining capacity and load conditions, sorts all servers from large to small based on the initial score, generates an initial list, and sends the initial list to the static allocation module;
[0050] Static allocation module: When there are multiple requests after the initial startup of the cloud platform, the polling allocation method is used to allocate the requests to the corresponding servers in the initial list in turn, and the operating status of each server is sent to the data monitoring module;
[0051] Data monitoring module: regularly monitors the load and benefit index of each server in the cloud platform, and sends the load and benefit index to the index generation module;
[0052] Index generation module: generates quality values for each server based on the load situation and benefit index, dynamically sorts all servers from large to small according to the quality values, generates a dynamic list, sends the dynamic list to the dynamic allocation module, and sends the quality values to the interval adjustment module;
[0053] Dynamic allocation module: When multiple new requests appear during the operation of the cloud platform, the polling allocation method is used to allocate the requests to the corresponding servers in the dynamic list in turn;
[0054] Interval adjustment module: compares the quality values of all servers with the preset gradient threshold, and determines whether it is necessary to dynamically adjust the polling interval of the server based on the comparison results, and sends the dynamic adjustment results to the management module;
[0055] Management module: Analyze the operating status of the cloud platform and perform corresponding management based on the dynamic adjustment results of the polling interval.
[0056] Embodiment 2: The allocation system initializes each server of the cloud platform and records their status information, such as remaining capacity, load status, etc., including the following steps:
[0057] Get server list: First, the allocation system obtains a list of all servers in the cloud platform. These servers include physical servers, virtual machine instances, or containerized instances, and each server is responsible for storing a portion of the data.
[0058] Connect to the server: The distribution system establishes a connection with each server to obtain the server's status information. The connection can be made through a network communication protocol (such as SSH, HTTP, etc.) to obtain basic information and performance indicators of the server.
[0059] For each server, the allocation system obtains the following status information:
[0060] Remaining capacity: Get the remaining capacity on the server to determine whether there is enough space to store new data.
[0061] Load status: Get the current load status of the server. Obtain it through system monitoring tools or custom monitoring services.
[0062] Connection status: Check the connection status of the server to ensure that the distribution system can communicate with the server and obtain real-time status information.
[0063] Record server information: The distribution system records the acquired server status information, stores it in the distribution system's database or memory, and updates it periodically to reflect the latest status of the server.
[0064] In this implementation, the allocation system may classify the servers or identify their characteristics according to the status information of the servers, for example, marking a server with a lower load as an "idle server" and a server with a higher load as a "busy server".
[0065] Generate an initial score for each server based on the remaining capacity and load conditions, sort all servers from large to small based on the initial score, and generate an initial list, including the following steps:
[0066] Calculate the remaining capacity of the server. The expression is:
[0067] , where is the remaining capacity, is the total capacity of the server, The capacity already used by the server;
[0068] Calculate the load of the server, the expression is: , where For load, is the amount of resources already used by the server, is the total resources of the server;
[0069] After obtaining the remaining capacity and load of the server, the remaining capacity and load are normalized using a general normalization formula, and the value range of the remaining capacity and load is mapped to [0,1] to obtain the normalized value of the remaining capacity and the normalized value of the load;
[0070] The general formula for normalization is: , where is the normalized value of the original data, is the original data, is the maximum value of the original data, is the minimum value of the original data;
[0071] It should be noted that the general normalization formula does not mention the remaining capacity and load in this application. When the cloud platform is just started, the remaining capacity and load of the server are obtained multiple times over a period of time, and then substituted into the general normalization formula to calculate the normalized value of the remaining capacity and the normalized value of the load. The specific calculation method is the same as the general normalization formula, so it will not be repeated here.
[0072] The initial score of the server is obtained by subtracting the load from the remaining capacity. That is, in the initial score, we hope that the remaining capacity of the server is as large as possible and the load is as small as possible, which indicates that the overall performance of the server is better.
[0073] After obtaining the initial scores of all servers, all servers are initially sorted from large to small according to the initial scores to generate an initial list.
[0074] When there are multiple requests after the initial startup of the cloud platform, a polling allocation method is used to allocate the requests to the corresponding servers in the initial list in turn, including the following steps:
[0075] When there are multiple requests after the initial startup of the cloud platform, the allocation system first sorts the multiple requests from short to long according to the length of time until the deadline, then matches the sorted requests with the servers in the initial list in positive order, and then allocates the requests to the corresponding servers in the initial list;
[0076] Furthermore, when a request in the initial list is assigned to a server, but the server is deactivated, the allocation system automatically polls the next server to assign the request, and so on, until all requests are assigned. If there are requests that are not assigned, the unassigned requests will be placed in the queue area. When an idle route appears, the request with the shortest time left to the deadline in the queue area will be assigned.
[0077] It should be noted that if there are too many requests in the queue area, it may easily cause the cloud platform to crash. At this time, a warning signal needs to be sent to the administrator. For example, when the number of requests in the queue area exceeds 20, a warning signal is sent to the administrator. The specific limit can be determined based on the actual situation, and examples are not given here one by one.
[0078] Embodiment 3: Regularly monitoring the load and benefit index of each server in the cloud platform includes the following steps:
[0079] Calculate the load of the server, the expression is: , where For load, is the amount of resources already used by the server, is the total resources of the server;
[0080] Calculate the benefit index of the server, the expression is:
[0081] , where is the benefit index, is the server failure rate, is the server resource utilization, , are the weights of server failure rate and server resource utilization, respectively, and .
[0082] Generate a quality value for each server based on the load situation and benefit index, dynamically sort all servers from large to small according to the quality value, and generate a dynamic list, including the following steps:
[0083] After regularly obtaining the benefit index and load of the server, the benefit index and load are normalized by using a general normalization formula, the value range of the benefit index and load is mapped to [0,1], and the normalized value of the benefit index and the normalized value of the load are obtained;
[0084] The general formula for normalization is: , where is the normalized value of the original data, is the original data, is the maximum value of the original data, is the minimum value of the original data;
[0085] It should be noted that the benefit index and load in this application are not mentioned in the normalized general formula. After the cloud platform has been running for a period of time, the benefit index and load of the server are obtained multiple times within a period of time, and then substituted into the normalized general formula to calculate the normalized value of the benefit index and the normalized value of the load. The specific calculation method is the same as the normalized general formula, so it will not be repeated here.
[0086] The quality value of the server is obtained by subtracting the normalized value of the load from the normalized value of the benefit index. That is, in the quality value assignment, we hope that the server has higher stability and better resource utilization, and the smaller the load, the better, which indicates that the overall performance of the server is better;
[0087] After obtaining the quality assignments of all servers, all servers are dynamically sorted from large to small according to the quality assignments to generate a dynamic list.
[0088] When multiple new requests appear during the operation of the cloud platform, a polling allocation method is used to sequentially allocate the requests to the corresponding servers in the dynamic list, including the following steps:
[0089] When multiple requests are generated during the operation of the cloud platform, the allocation system first sorts the multiple requests from short to long according to the length of time before the deadline, and then matches the sorted requests with the servers in the dynamic list in positive order, and then allocates the requests to the corresponding servers in the dynamic list;
[0090] Furthermore, when a request in the dynamic list is assigned to a server, but the server is deactivated, the allocation system automatically polls the next server to assign the request, and so on, until all requests are assigned. If there are requests that are not assigned, the unassigned requests will be placed in the queue area. When an idle route appears, the request with the shortest time left to the deadline in the queue area will be assigned.
[0091] It should be noted that if there are too many requests in the queue area, it may easily cause the cloud platform to crash. At this time, a warning signal needs to be sent to the administrator. For example, when the number of requests in the queue area exceeds 20, a warning signal is sent to the administrator. The specific limit can be determined based on the actual situation, and examples are not given here one by one.
[0092] Embodiment 4: Comparing the quality values of all servers with a preset gradient threshold, and judging whether it is necessary to dynamically adjust the polling interval of the server according to the comparison result, including the following steps:
[0093] Obtaining quality values of all servers in the dynamic list, where the gradient threshold includes a first server threshold and a second server threshold, and comparing the quality value with the first server threshold and the second server threshold;
[0094] If the quality assignment is greater than or equal to the first server threshold, and the quality assignment is less than the second server threshold, the current performance of the analysis server remains unchanged;
[0095] If the quality assigned value is greater than or equal to the second server threshold, the current performance of the analysis server is improved;
[0096] If the quality assigned value is less than the first server threshold, the current performance of the analysis server is deteriorated;
[0097] When the current performance of the analysis server is getting better or worse, the polling interval of the server needs to be dynamically adjusted. The adjustment algorithm is:
[0098] In the formula, For the The polling interval after the server is dynamically adjusted. For the The polling interval before the server is dynamically adjusted. Assign a value to the quality, is the first server threshold, is the second server threshold;
[0099] It can be seen from the adjustment algorithm that when the current performance of the server deteriorates, the polling interval of the server needs to be increased to reduce the operating burden of the server. When the current performance of the server improves, the polling interval of the server needs to be reduced to improve the operating efficiency of the cloud platform. When the current performance of the server remains unchanged, the polling interval adjustment is not performed.
[0100] Embodiment 5: Analyzing the operating status of the cloud platform and performing corresponding management according to the dynamic adjustment result of the polling interval time, including the following steps:
[0101] The allocation system obtains the polling interval adjustment information of all servers in the cloud platform at regular intervals, and classifies all servers with increased polling intervals into set X, and all servers with reduced polling intervals into set Y. The operation score of the cloud platform is obtained based on the comparison results of set X and set Y. The expression is: , where Score the run, is the number of servers in the X set, is the number of servers in set Y. If the running score is greater than 2, that is, the number of servers in set X is greater than twice the number of servers in set Y, the running status of the cloud platform is analyzed to be worse (such as lower running efficiency), and a management policy that needs to be managed and maintained is generated and sent to the administrator.
[0102] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0103] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0104] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A cloud storage platform resource allocation method, characterized in that: The allocation method comprises the following steps: The allocation system initializes each server of the cloud platform and records the status information of each server. It generates an initial score for each server based on the status information, and sorts all servers from large to small according to the initial score to generate an initial list. When there are multiple requests after the initial startup of the cloud platform, the polling allocation method is used to allocate the requests to the corresponding servers in the initial list in turn. Regularly monitor the load and benefit index of each server in the cloud platform, generate quality values for each server based on the load and benefit index, dynamically sort all servers from large to small according to the quality values, generate a dynamic list, and when multiple new requests appear during the operation of the cloud platform, use the polling allocation method to sequentially allocate the requests to the corresponding servers in the dynamic list; Compare the quality assignments of all servers with the preset gradient threshold, determine whether it is necessary to dynamically adjust the polling interval of the server based on the comparison result, obtain the quality assignments of all servers in the dynamic list, the gradient threshold includes the first server threshold and the second server threshold, and compare the quality assignments with the first server threshold and the second server threshold; If the quality assignment is greater than or equal to the first server threshold, and the quality assignment is less than the second server threshold, the current performance of the analysis server remains unchanged; If the quality assigned value is greater than or equal to the second server threshold, the current performance of the analysis server is improved; If the quality assigned value is less than the first server threshold, the current performance of the analysis server is deteriorated; The server benefit index calculation expression is: , where is the benefit index, is the server failure rate, is the server resource utilization, , are the weights of server failure rate and server resource utilization, respectively, and , When the current performance of the analysis server is getting better or worse, the polling interval of the server needs to be dynamically adjusted. The adjustment algorithm is: , where For the The polling interval after the server is dynamically adjusted. For the The polling interval before the server is dynamically adjusted. Assign a value to the quality, is the first server threshold, is the second server threshold, and analyzes the operation status of the cloud platform and performs corresponding management according to the dynamic adjustment result of the polling interval; When there are multiple requests after the initial startup of the cloud platform, a polling allocation method is used to allocate the requests to the corresponding servers in the initial list in turn, including the following steps: When there are multiple requests after the initial startup of the cloud platform, the allocation system first sorts the multiple requests from short to long according to the length of time until the deadline, then matches the sorted requests with the servers in the initial list in positive order, and then allocates the requests to the corresponding servers in the initial list; When a request in the initial list is assigned to a server, but that server is deactivated, the allocation system automatically polls the next server to assign the request; If there are unassigned requests, they will be placed in the queue area. When an idle route appears, the request with the shortest time left to the deadline in the queue area will be assigned. When the number of requests in the queue area exceeds the threshold, a warning signal is sent to the administrator; When multiple new requests appear during the operation of the cloud platform, a polling allocation method is used to sequentially allocate the requests to the corresponding servers in the dynamic list, including the following steps: After obtaining the benefit index and load of the server regularly, the benefit index and load are normalized by the general normalization formula, the value range of the benefit index and load is mapped to [0,1], and the normalized value of the benefit index and the normalized value of the load are obtained. The quality assignment of the server is obtained by subtracting the normalized value of the load from the normalized value of the benefit index. After obtaining the quality assignment of all servers, all servers are dynamically sorted from large to small according to the quality assignment to generate a dynamic list; When multiple requests are generated during the operation of the cloud platform, the allocation system first sorts the multiple requests from short to long according to the length of time left to the deadline, then matches the sorted requests with the servers in the dynamic list in positive order, and then allocates the requests to the corresponding servers in the dynamic list.
2. A cloud storage platform resource allocation method according to claim 1, characterized in that: The allocation system initializes each server of the cloud platform and records the status information of the server, including the following steps: The allocation system obtains a list of all servers in the cloud platform, which include physical servers, virtual machine instances, or containerized instances. Each server is responsible for storing a portion of the data. Connecting to the server: The distribution system establishes a connection with each server through a network communication protocol to obtain the server's status information; Use monitoring tools to obtain the remaining capacity and current load on the server; The acquired server status information is recorded and stored in the database or memory of the distribution system, and the server status is updated regularly.
3. A cloud storage platform resource allocation method according to claim 2, characterized in that: Generating an initial score for each server using state information includes the following steps: After calculating the remaining capacity and load of the server, the remaining capacity and load are normalized using the general normalization formula, the value range of the remaining capacity and load is mapped to [0,1], and the normalized value of the remaining capacity and the normalized value of the load are obtained. The initial score of the server is obtained by subtracting the load from the remaining capacity. After obtaining the initial scores of all servers, all servers are initially sorted from large to small according to the initial scores to generate an initial list.
4. A cloud storage platform resource allocation method according to claim 3, characterized in that: Analyzing the operating status of the cloud platform and performing corresponding management according to the dynamic adjustment results of the polling interval time includes the following steps: The allocation system obtains the polling interval adjustment information of all servers in the cloud platform at regular intervals, and puts all servers with increased polling intervals into set X, and all servers with reduced polling intervals into set Y. If the number of servers in set X is greater than twice the number of servers in set Y, the operation status of the cloud platform is analyzed to be deteriorating, and a management policy that needs to be managed and maintained is generated and sent to the administrator.
5. A cloud storage platform resource allocation method according to claim 4, characterized in that: The remaining capacity of the server is calculated as: , where is the remaining capacity, is the total capacity of the server, The capacity that the server has used.
6. A cloud storage platform resource allocation method according to claim 5, characterized in that: The server load calculation expression is: , where For load, is the amount of resources already used by the server, The total amount of resources on the server.
