Resource request method and device for distributed system, equipment and storage medium
A distributed system and resource request technology, applied in the field of distributed systems, can solve problems affecting system efficiency and low resource utilization, and achieve the effects of improving system efficiency, avoiding deadlocks, and improving resource utilization
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0113] Example 1. Step S201 includes:
[0114] Calculate the resource quota that can be reclaimed from each requester according to the allocated resource quota and the preset recovery ratio of each of the multiple requesters to obtain the total resource quota that can be recovered from multiple requesters .
[0115] In this example, resource quotas are reclaimed proportionally. In this way, the requester can reserve a resource quota proportional to the previously allocated resource quota. When there is no pressure on the resource requirements of the requesting end, that is, when the first difference is a negative value or 0, the reserved quota may be all resource quotas of the requesting end. That is to say, the reserved quota of a requester can be the minimum value of the resource quota that the requester can obtain during the global quota reallocation process. The requester can at least reserve a resource quota proportional to the previously allocated quota, so that the r...
example 2
[0116] Example 2, step S201 includes:
[0117] calculating a second difference between the allocated resource quota of each of the plurality of requesters and the preset reserved quota;
[0118] The sum of the second differences corresponding to the multiple requesting ends is calculated to obtain the total amount of resource quotas that can be recovered from the multiple requesting ends.
[0119] In this example, the reserved quota of each requester is preset, and each requester can hold at least the same resource quota.
example 3
[0121] The resource quota that can be reclaimed from each of the multiple requesters is equal.
[0122] In this example, the resource quotas that can be recovered from each requesting end are equal, and each requesting end returns the resource quotas in equal amounts.
[0123] Step S202, according to the total amount of resource quotas and the first difference corresponding to each of the multiple requesters, respectively calculate the resource quota to be allocated for each requester, and there may also be multiple exemplary implementation methods:
[0124] Example 1, step S202 includes:
[0125] calculating the sum of the first differences corresponding to multiple requesting ends;
[0126] According to the ratio between the first difference corresponding to each of the multiple requesting ends and the sum of the first differences, and the total amount of resource quotas, the resource quota to be allocated for each requesting end is calculated.
[0127] In this example, th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


