Bare metal replenishment method, system, device, replenishment equipment and storage medium
By calculating the historical delivery ratio of bare metal server and the current in-pool ratio difference, automating the supplementary bare metal in the resource pool, solving the inefficiency problem caused by manual design and achieving more efficient resource allocation and delivery.
Patent Information
- Application Number
- CN202110486232.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-30
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2041-04-30
AI Technical Summary
The existing bare metal server resource pool supplement scheme relies on manual design, which is low in rationality, resulting in inefficient delivery.
By obtaining the historical delivery information and current pooling information of the bare metal server, the historical delivery ratio and current pooling ratio of each sub-feature are calculated, and the bare metal stored in the resource pool is automatically supplemented according to the ratio difference, and sub-features with large ratio differences are preferred.
The supplementary efficiency of the bare metal server resource pool is improved, the inefficiency of manual design schemes is avoided, and more reasonable resource allocation and delivery are achieved.
Smart Images

Figure CN115269173B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of bare metal technology, and in particular to a bare metal replenishment method, system, apparatus, replenishment device and storage medium. Background Art
[0002] With the development of bare metal technology, a type of cloud server has emerged that provides computing services that combine the elasticity of virtual machines with the performance of physical machines. This is the bare metal server. Bare metal servers have the advantages of secure physical isolation, exclusive resources, no performance loss, and flexible architecture. They can provide excellent computing performance and data security for a variety of corporate businesses.
[0003] Currently, bare metal servers typically use pooling design technology to improve resource delivery efficiency. By manually designing a resource pool replenishment plan, the specifications and quantity of machines that need to be added to the pool are determined to achieve resource pool replenishment. However, manually designed resource pools are often less rational, so the efficiency of bare metal delivery is still relatively low. Summary of the Invention
[0004] Based on this, it is necessary to provide a bare metal replenishment method, system, device, replenishment equipment and storage medium to address the above technical problems.
[0005] A bare metal replenishment method, applied to replenishing equipment, comprising:
[0006] Obtain the bare metal historical delivery information of the bare metal server and the bare metal current pool information corresponding to the bare metal server;
[0007] Based on a preset bare metal feature, determining a historical delivery ratio of bare metal for each sub-feature in the bare metal feature according to the bare metal historical delivery information, and determining a current pool entry ratio of bare metal for each sub-feature in the bare metal feature according to the bare metal current pool entry information;
[0008] A ratio difference between the current pool entry ratio and the historical delivery ratio is obtained, and the bare metal stored in the resource pool of the bare metal server is replenished according to the ratio difference.
[0009] In one embodiment, the bare metal feature includes: bare metal machine specifications; the sub-feature includes: bare metal sub-machine specifications; determining the historical delivery ratio of bare metal of different sub-features in the bare metal feature based on the bare metal historical delivery information includes: obtaining the historical delivery times of bare metal of each sub-machine specification and the total historical delivery times of bare metal of all sub-machine specifications based on the bare metal historical delivery information; determining the historical delivery ratio of bare metal of each sub-machine specification based on the historical delivery times and the total historical delivery times.
[0010] In one embodiment, obtaining the ratio difference between the current pool entry ratio and the historical delivery ratio, and replenishing the bare metal stored in the resource pool of the bare metal server according to the ratio difference, includes: subtracting the current pool entry ratio of the bare metal of each sub-machine specification from the historical delivery ratio of the bare metal of each sub-machine specification to obtain the machine specification ratio difference of the bare metal of each sub-machine specification; sorting the machine specification ratio differences of the bare metal of each sub-machine specification in order from small to large, and setting a higher priority replenishment order for the bare metal of the sub-machine specification with a smaller sorting number than the bare metal of the sub-machine specification with a larger sorting number; and replenishing the bare metal stored in the resource pool of the bare metal server according to the replenishment order.
[0011] In one embodiment, the bare metal feature includes: the system version number of the bare metal; the sub-feature includes: the subsystem version number of the bare metal; determining the historical delivery ratio of the bare metal of different sub-features in the bare metal feature based on the bare metal historical delivery information includes: obtaining the historical delivery times of the bare metal of each subsystem version number and the total historical delivery times of the bare metal of all subsystem version numbers based on the bare metal historical delivery information; determining the historical delivery ratio of the bare metal of each subsystem version number based on the historical delivery times and the total historical delivery times.
[0012] In one embodiment, obtaining the ratio difference between the current pool entry ratio and the historical delivery ratio, and replenishing the resource pool of the bare metal server according to the ratio difference, includes: subtracting the current pool entry ratio of the bare metal of each subsystem version number from the historical delivery ratio of the bare metal of each subsystem version number to obtain the system version ratio difference of the bare metal of each subsystem version number; sorting the system version ratio differences of the bare metal of each subsystem version number in order from small to large, and setting a higher priority replenishment order for the bare metal of the subsystem version number with a smaller sorting number than for the bare metal of the subsystem version number with a larger sorting number; and replenishing the bare metal stored in the resource pool of the bare metal server according to the replenishment order.
[0013] In one embodiment, the bare metal feature includes: bare metal machine specifications, and bare metal system version number; the sub-feature includes: bare metal sub-machine specifications, and bare metal subsystem version number; the method further includes: according to the bare metal historical delivery information and the bare metal current pool information, obtaining the first historical delivery times of bare metal of each sub-machine specification, and the first historical total delivery times of bare metal of all sub-machine specifications, and obtaining the first current pool quantity of bare metal of each sub-machine specification, and the first current pool total quantity of bare metal of all sub-machine specifications; according to the first historical delivery times and the first historical total delivery times, determining the The first historical delivery ratio of the bare metal of the sub-machine specification, and the first current pool entry ratio of the bare metal of each sub-machine specification are determined according to the first current pool entry quantity and the first current total pool entry quantity; the first current pool entry ratio of the bare metal of each sub-machine specification is subtracted from the first historical delivery ratio to obtain the first ratio difference of the bare metal of each sub-machine specification; the first ratio differences are sorted in ascending order, and a first supplementary order with a higher priority is set for the bare metal with a smaller first ratio difference sorting number than the bare metal with a larger sorting number, and the bare metal stored in the resource pool of the bare metal server is sorted according to the first supplementary order. Supplement; after replenishing the resource pool of the bare metal server in accordance with the first replenishment order, obtain the second historical delivery number of the bare metal of each subsystem version number in the same sub-machine specification, and the second historical total delivery number of the bare metal of all subsystem version numbers in the same sub-machine specification, and obtain the second current pool quantity of the bare metal of each subsystem version number in the same sub-machine specification, and the second current pool total quantity of the bare metal of all subsystem version numbers in the same sub-machine specification; determine the second historical delivery ratio of the bare metal of each subsystem version number in the same sub-machine specification according to the second historical delivery number and the second historical total delivery number, and determine the second historical delivery ratio of the bare metal of each subsystem version number in the same sub-machine specification according to the second current The number of entries into the pool and the second current total number of entries into the pool are used to determine the second current pool ratio of the bare metal of each subsystem version number in the same sub-machine specification; the second current pool ratio of the bare metal of each subsystem version number in the same sub-machine specification is subtracted from the second historical delivery ratio to obtain the second ratio difference of the bare metal of each subsystem version number in the same sub-machine specification; the second ratio differences are sorted in ascending order, and a second replenishment order with a higher priority is set for the bare metal with a smaller second ratio difference sorting number than the bare metal with a larger sorting number; the bare metal stored in the resource pool of the bare metal server is replenished according to the second replenishment order.
[0014] In one embodiment, after determining to replenish the resource pool for the bare metal of the different sub-features based on the ratio difference, it also includes: obtaining the updated historical delivery information of the bare metal server after the resource pool is replenished, and the updated current pool entry information of the bare metal server after the resource pool is replenished; using the updated historical delivery information as the new bare metal historical delivery information, and using the updated current pool entry information as the new bare metal current pool entry information, and returning the step of determining the historical delivery ratio of the bare metal of each sub-feature in the bare metal feature based on the preset bare metal feature according to the bare metal historical delivery information, and determining the current pool entry ratio of the bare metal of each sub-feature in the bare metal feature according to the bare metal current pool entry information.
[0015] A bare metal replenishment system includes a replenishment device and a bare metal server in communication with the replenishment device; wherein a resource pool of the bare metal server pre-stores bare metal;
[0016] The bare metal server is configured to obtain the bare metal historical delivery information of the bare metal and the bare metal current pool entry information of the bare metal pre-stored in the resource pool, and send the bare metal historical delivery information and the bare metal current pool entry information to the supplementary device;
[0017] The supplementary device is configured to obtain the bare metal historical delivery information and the bare metal current pool entry information from the bare metal server, and determine, based on a preset bare metal feature and the bare metal historical delivery information, a historical delivery ratio of bare metal for each sub-feature in the bare metal feature, and determine, based on the bare metal current pool entry information, a current pool entry ratio of bare metal for each sub-feature in the bare metal feature;
[0018] The replenishment device is further configured to obtain a ratio difference between the current pool entry ratio and the historical delivery ratio, and replenish the bare metal stored in the resource pool of the bare metal server according to the ratio difference;
[0019] The bare metal server is further configured to store the replenished bare metal into the resource pool.
[0020] A bare metal replenishing device, used for replenishing equipment, comprising:
[0021] A bare metal information acquisition module is used to obtain the bare metal historical delivery information of the bare metal server and the bare metal current pool information corresponding to the bare metal server;
[0022] a feature ratio acquisition module for determining, based on a preset bare metal feature and according to the bare metal historical delivery information, a historical bare metal delivery ratio of each sub-feature in the bare metal feature, and determining, based on the bare metal current pool entry information, a current bare metal entry ratio of each sub-feature in the bare metal feature;
[0023] The bare metal resource replenishment module is used to obtain the ratio difference between the current pool entry ratio and the historical delivery ratio, and replenish the bare metal stored in the resource pool of the bare metal server according to the ratio difference.
[0024] A supplementary device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0025] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.
[0026] The above-mentioned bare metal replenishment method, system, device, replenishment equipment and storage medium, the replenishment equipment obtains the bare metal historical delivery information of the bare metal server, and the bare metal current pool entry information corresponding to the bare metal server; based on the preset bare metal characteristics, according to the bare metal historical delivery information, the historical delivery ratio of the bare metal of each sub-feature in the bare metal characteristics is determined, and according to the bare metal current pool entry information, the current pool entry ratio of the bare metal of each sub-feature in the bare metal characteristics is determined; the ratio difference between the current pool entry ratio and the historical delivery ratio is obtained, and the bare metal stored in the resource pool of the bare metal server is replenished according to the ratio difference. The present application can replenish the bare metal stored in the resource pool according to the ratio difference between the historical delivery ratio and the current delivery ratio of the bare metal server through the replenishment equipment, which can avoid the need to manually design a replenishment plan to replenish the resource pool of the bare metal server, thereby improving the efficiency of bare metal delivery. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A diagram of an application environment of a bare metal replenishment method according to an embodiment;
[0028] Figure 2 1 is a schematic flow chart of a bare metal replenishment method according to an embodiment;
[0029] Figure 3 A schematic diagram of a process for determining historical delivery ratios of different sub-features in one embodiment;
[0030] Figure 4 A schematic diagram of a process for replenishing bare metal stored in a resource pool in one embodiment;
[0031] Figure 5A schematic diagram of a process for replenishing bare metal stored in a resource pool in another embodiment;
[0032] Figure 6 A schematic diagram of the structure of a bare metal replenishment system in one embodiment;
[0033] Figure 7 is a structural block diagram of a bare metal replenishing device in one embodiment;
[0034] Figure 8 This is a diagram of the internal structure of a supplementary device in one embodiment. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0036] The bare metal supplementation method provided in this application can be applied to Figure 1 In the application environment shown, the bare metal server 102 includes a resource pool for storing bare metal, and the replenishment device 101 is a device for replenishing the bare metal stored in the resource pool of the bare metal server 102. The replenishment device 101 can communicate with the bare metal server 102 via a network. Specifically, the replenishment device 101 can read the historical delivery information of the bare metal stored in the bare metal server 102, as well as the current pool entry information of the bare metal currently in the resource pool. Based on the historical delivery information and the current pool entry information, the replenishment device 101 can respectively calculate the historical delivery ratio and the current delivery ratio of the bare metal for each sub-feature under a certain bare metal feature, thereby obtaining the ratio difference between the current pool entry ratio and the historical delivery ratio. Finally, the replenishment device 101 can also replenish the bare metal in the resource pool of the bare metal server 102 based on the obtained ratio difference. The replenishment device 101 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The bare metal server 102 can be implemented as a standalone server or a server cluster consisting of multiple servers.
[0037] In one embodiment, Figure 2 As shown, a bare metal supplement method is provided, which is applied to Figure 1 Taking the supplementary device 101 in FIG. 1 as an example, the method includes the following steps:
[0038] In step S201 , the supplementary device 101 obtains the bare metal historical delivery information of the bare metal server 102 and the bare metal current pool entry information corresponding to the bare metal server 102 .
[0039] Among them, the bare metal historical delivery information refers to the information generated by the user's delivery of the bare metal stored in the resource pool of the bare metal server 102. The user can purchase the bare metal stored in its resource pool through the bare metal server 102, and the bare metal server 102 can record the delivery information purchased by the user, such as the model of the purchased bare metal, and the purchase time of the bare metal, etc., and store it as historical delivery information. The bare metal current pool information refers to the information of the bare metal currently stored in the resource pool of the bare metal server 102, for example, it may include the current number of bare metals in the resource pool, and the model of bare metals in the resource pool, etc.
[0040] Specifically, when the replenishment device 101 needs to replenish the bare metal in the bare metal server 102, it can read the corresponding bare metal historical delivery information and the bare metal current pool entry information from the bare metal server 102.
[0041] In step S202, based on the preset bare metal feature, the supplementary device 101 determines the historical delivery ratio of bare metal of each sub-feature in the bare metal feature according to the historical delivery information of bare metal, and determines the current pool entry ratio of bare metal of each sub-feature in the bare metal feature according to the current pool entry information of bare metal.
[0042] Among them, the bare metal feature refers to a classification feature that can be used to classify the bare metal stored in the resource pool of the bare metal server 102. It can be an inherent attribute of the bare metal, such as the model of the bare metal, the time of entering the resource pool, the color of the bare metal, etc. The classification feature can be composed of different sub-features. For example, for the model feature of the bare metal, its corresponding sub-features can include model 1, model 2 and model 3, etc., and for the color feature of the bare metal, its corresponding sub-features can include color A, color B and color C, etc. The historical delivery ratio refers to the ratio of the historical delivery of bare metals of different sub-features to the historical delivery of bare metals of a certain total classification feature. For example, it can be the ratio of the historical delivery quantity of bare metal of each color to the historical delivery quantity of the total bare metal, or it can be the ratio of the historical delivery quantity of bare metals of different colors in the same model to the total historical delivery quantity of the model.
[0043] Specifically, the supplementary device 101 can calculate the corresponding historical delivery ratio of bare metals with different sub-features under a preset bare metal feature using historical delivery information, and calculate the corresponding current pool entry ratio using current pool entry information.
[0044] In step S203 , the replenishment device 101 obtains the difference between the current pool entry ratio and the historical delivery ratio, and replenishes the bare metal stored in the resource pool of the bare metal server 102 according to the difference.
[0045] In step S202, the replenishment device 101 obtains the current pool entry ratio and historical delivery ratio of the bare metal of each sub-feature under the preset bare metal feature, and can respectively calculate the ratio difference between the current pool entry ratio and the historical delivery ratio of each sub-feature, and replenish the bare metal stored in the resource pool of the bare metal server 102 according to the above ratio difference.
[0046] In the above-mentioned bare metal replenishment method, replenishment device 101 obtains the bare metal historical delivery information of bare metal server 102 and the current pool entry information of bare metal corresponding to bare metal server 102; based on the preset bare metal characteristics, the historical delivery ratio of bare metal for each sub-feature in the bare metal characteristics is determined according to the bare metal historical delivery information, and the current pool entry ratio of bare metal for each sub-feature in the bare metal characteristics is determined according to the bare metal current pool entry information; the difference between the current pool entry ratio and the historical delivery ratio is obtained, and the bare metal stored in the resource pool of bare metal server 102 is replenished according to the ratio difference. In the present application, replenishment device 101 can replenish the bare metal stored in the resource pool according to the difference between the historical delivery ratio and the current delivery ratio of bare metal server 102, thereby avoiding the need to manually design a replenishment plan to replenish the resource pool of the bare metal server, thereby improving the efficiency of bare metal delivery.
[0047] In one embodiment, the bare metal feature includes: bare metal machine specifications; sub-features include: bare metal sub-machine specifications; Figure 3 As shown, step S202 may include:
[0048] In step S301 , the supplementing device 101 obtains the historical delivery times of bare metal of each sub-machine specification and the total historical delivery times of bare metal of all sub-machine specifications based on the bare metal historical delivery information.
[0049] The "machine specification" refers to the specification model of the bare metal. The specification model may include multiple models, such as Model A, Model B, and Model C, each serving as a different sub-machine specification. Specifically, after obtaining the bare metal delivery history information, the supplementary device 101 may extract the historical delivery counts of the bare metal for different sub-machine specifications from the bare metal delivery history information, namely, the historical delivery counts corresponding to Model A, the historical delivery counts corresponding to Model B, and the historical delivery counts corresponding to Model C. The total historical delivery counts of the bare metal for all sub-machine specifications are then calculated as the total historical delivery counts.
[0050] In step S302 , the replenishment device 101 determines a historical delivery ratio of bare metal of each sub-machine specification based on the historical delivery times and the total historical delivery times.
[0051] Afterwards, the supplementary device 101 can obtain the historical delivery ratio of the bare metal corresponding to each sub-machine specification based on the historical delivery times of the bare metal corresponding to each sub-machine specification and the total historical delivery times. For example, the historical delivery times corresponding to model A is times A, the historical delivery times corresponding to model B is model B, the historical delivery times corresponding to model C is times C, and the total historical delivery times is times D, where times D = times A + times B + times C. Then, the ratio of times A to times D, the ratio of times B to times D, and the ratio of times C to times D can be obtained respectively as the historical delivery ratio of the bare metal corresponding to each sub-machine specification.
[0052] In addition, the supplementary device 101 can also obtain the current pool entry ratio of bare metal of each sub-machine specification in a similar manner to obtaining the historical delivery ratio. First, the current pool entry quantity of bare metal of each sub-machine specification is extracted from the current pool entry information obtained, and the total current pool entry quantity of bare metal of all models is counted as the current total pool entry quantity. Then, the ratio of the current pool entry quantity of bare metal of each sub-machine specification to the current total pool entry quantity is obtained as the current pool entry ratio corresponding to the bare metal of each sub-machine specification.
[0053] Further, if Figure 4 As shown, step S203 may further include:
[0054] In step S401 , the replenishment device 101 performs a subtraction process on the current bare metal pool entry ratio of each sub-machine specification and the historical delivery ratio of each sub-machine specification to obtain the machine specification ratio difference of the bare metal of each sub-machine specification.
[0055] Among them, the machine specification ratio difference refers to the difference between the current pool entry ratio and the historical delivery ratio of bare metal of different sub-machine specifications. After the supplementary device 101 obtains the current pool entry ratio and historical delivery ratio of bare metal of each sub-machine specification, it can perform the difference processing on the current pool entry ratio and historical delivery ratio of bare metal of each sub-machine specification respectively, so as to obtain the machine specification ratio difference of bare metal of each machine specification.
[0056] Step S402: The replenishment device 101 sorts the machine specification ratio differences of the bare metals of each sub-machine specification in ascending order, and sets a higher replenishment priority for the bare metals of the sub-machine specification with a smaller sorting number than for the bare metals of the sub-machine specification with a larger sorting number;
[0057] In step S403 , the replenishment device 101 replenishes the bare metal stored in the resource pool of the bare metal server 102 according to the replenishment order.
[0058] Afterwards, the replenishment device 101 can sort the bare metal of the sub-machine specifications in order from small to large according to the machine specification ratio difference obtained in step S301. Since the machine specification ratio difference can reflect the resource gap of the bare metal to a certain extent, when the value of the machine specification ratio difference is smaller, it is generally due to the current amount of bare metal resources entering the pool being too small, or the historical demand for resources being too large. Therefore, for the bare metal of the sub-machine specifications with a smaller machine specification ratio difference, a higher priority replenishment order needs to be set for priority replenishment. Finally, the replenishment device 101 replenishes the bare metal stored in the resource pool of the bare metal server 102 according to the replenishment order corresponding to the ratio difference obtained in step S302.
[0059] For example, the current entry rate of bare metal of model A is 10%, while the historical delivery rate is 30%. The corresponding machine specification ratio difference is -20%. The current entry rate of bare metal of model B is 15%, while the historical delivery rate is 10%. The corresponding machine specification ratio difference is 5%. It can be seen that the current entry rate of bare metal of model A is insufficient to support the historical delivery rate. Therefore, compared with the bare metal of model B, the bare metal of model A needs to be replenished first.
[0060] In this embodiment, the replenishment device 101 can count the machine specification ratio difference corresponding to the current pool entry ratio of bare metal of each sub-machine specification and the historical angle ratio. By giving priority to the short board of the barrel effect, the bare metal of the sub-machine specification with the smaller machine specification ratio difference is replenished first, thereby ensuring that the bare metal of different sub-machine specifications in the resource pool has a more reasonable distribution method, thereby improving the efficiency of bare metal delivery.
[0061] In one embodiment, the bare metal feature includes: the system version number of the bare metal; the sub-feature includes: the subsystem version number of the bare metal; step S202 may further include: the supplementary device 101 obtains the historical delivery times of the bare metal of each subsystem version number and the total historical delivery times of the bare metal of all subsystem version numbers based on the bare metal historical delivery information; determines the historical delivery ratio of the bare metal of each subsystem version number based on the historical delivery times and the total historical delivery times.
[0062] In this embodiment, the bare metal feature can also be the system version number of the bare metal. The system version number can be composed of multiple subsystem version numbers, such as system version A, system version B, and system version C, etc. Specifically, the supplementary device 101 of this embodiment can read the historical delivery times of the bare metal corresponding to each subsystem version number from the bare metal historical delivery information, that is, the historical delivery times corresponding to system version A, system version B, and system version C respectively, and the total historical delivery times of the bare metal of all subsystem version numbers, and use the ratio of the historical delivery times of the bare metal corresponding to each subsystem version number to the total historical delivery times as the historical delivery ratio of the bare metal corresponding to each subsystem version number.
[0063] Similarly, the supplementary device 101 can also obtain the current pool entry ratio of bare metal of each subsystem version number in a similar manner to obtaining the historical delivery ratio. First, the current pool entry quantity of bare metal of each subsystem version number is extracted from the current pool entry information obtained, and the total current pool entry quantity of bare metal of all system version numbers is counted as the current total pool entry quantity. Then, the ratio of the current pool entry quantity of bare metal of each subsystem version number to the current total pool entry quantity is obtained as the current pool entry ratio corresponding to the bare metal of each subsystem version number.
[0064] Furthermore, step S203 may further include: the replenishment device 101 subtracts the current pool entry ratio of the bare metal of each subsystem version number from the historical delivery ratio of the bare metal of each subsystem version number to obtain the system version ratio difference of the bare metal of each subsystem version number; sorts the system version ratio differences of the bare metal of each subsystem version number in order from small to large, and sets a higher priority replenishment order for the bare metal of the subsystem version number with a smaller sorting number than for the bare metal of the subsystem version number with a larger sorting number; and replenishes the bare metal stored in the resource pool of the bare metal server according to the replenishment order.
[0065] Afterwards, the replenishment device 101 can subtract the current pool entry ratio of the bare metal of each subsystem version number from the historical delivery ratio of the bare metal of the subsystem version number, thereby obtaining the system version ratio difference of the bare metal of the subsystem version number, and sort the system version ratio differences in order from small to large, and set a higher priority replenishment order for the bare metal of the subsystem version number with a smaller sorting number. When replenishing the bare metal stored in the resource pool of the bare metal server, the bare metal of the subsystem version number with a smaller system version ratio difference can be replenished first.
[0066] In this embodiment, the replenishment device 101 can count the machine specification ratio difference corresponding to the current bare metal entry ratio of each sub-system version number and the historical angle ratio. Through a similar barrel effect of giving priority to the shortest board, the bare metal of the sub-machine specification with the smaller system version ratio difference is replenished first, thereby ensuring that the bare metal of different sub-system version numbers in the resource pool has a more reasonable distribution method, thereby improving the efficiency of bare metal delivery.
[0067] In one embodiment, the bare metal feature includes: the bare metal machine specification and the bare metal system version number; the sub-feature includes: the bare metal sub-machine specification and the bare metal sub-system version number; Figure 5 As shown, the bare metal supplementation method may further include:
[0068] In step S501, the supplementary device 101 obtains the first historical delivery times of the bare metal of each sub-machine specification and the first historical total delivery times of the bare metal of all sub-machine specifications based on the bare metal historical delivery information and the bare metal current pool entry information, and obtains the first current pool entry quantity of the bare metal of each sub-machine specification and the first current total pool entry quantity of the bare metal of all sub-machine specifications.
[0069] Specifically, the supplementary device 101 can count the historical delivery times of bare metal of each sub-machine specification based on the obtained bare metal historical delivery information as the first historical delivery times, and determine the total historical delivery times of bare metal of all sub-machine specifications as the first total historical delivery times. At the same time, the supplementary device 101 can also determine the current pool entry quantity of bare metal of each sub-machine specification as the first current pool entry quantity, and the current total pool entry quantity of bare metal of all sub-machine specifications as the first current pool entry quantity.
[0070] Step S502: The replenishment device 101 determines a first historical delivery ratio of bare metal for each sub-machine specification based on the first historical delivery count and the first historical total delivery count, and determines a first current pool entry ratio of bare metal for each sub-machine specification based on the first current pool entry quantity and the first current total pool entry quantity.
[0071] Step S503: The replenishment device 101 performs a subtraction process on the first current entry ratio of the bare metal of each sub-machine specification and the first historical delivery ratio to obtain a first ratio difference of the bare metal of each sub-machine specification;
[0072] Step S504: The replenishment device 101 sorts the first ratio differences in ascending order, sets a higher priority first replenishment order for the bare metals with smaller first ratio difference sorting numbers than for the bare metals with larger sorting numbers, and replenishes the bare metals stored in the resource pool of the bare metal server 102 according to the first replenishment order.
[0073] Afterwards, the replenishment device 101 can calculate the ratio of the first historical delivery times of the bare metal of each sub-machine specification to the first historical total delivery times as the first historical delivery ratio, and calculate the ratio of the first current pool quantity of the bare metal of each sub-machine specification to the first current total pool quantity as the first current pool ratio, and then perform a difference processing on the first current pool ratio and the first historical delivery ratio to obtain the first ratio difference of the bare metal of each sub-machine specification. Finally, the replenishment device 101 can also sort the bare metal of each sub-machine specification in order from small to large according to the first ratio difference, and set a higher priority replenishment order for the bare metal of the sub-machine specification with a smaller first ratio difference, so that the bare metal server 102 can give priority to replenishing the bare metal of the sub-machine specification with a smaller first ratio difference.
[0074] In step S505, after the replenishment device 101 replenishes the resource pool of the bare metal server 102 according to the first replenishment order, the second historical delivery times of the bare metal of each subsystem version number in the same sub-machine specification, and the second historical total delivery times of the bare metal of all subsystem version numbers in the same sub-machine specification are obtained, and the second current pool entry quantity of the bare metal of each subsystem version number in the same sub-machine specification, and the second current pool entry total quantity of the bare metal of all subsystem version numbers in the same sub-machine specification are obtained.
[0075] After the supplementary device 101 completes the resource pool replenishment of the bare metal server 102 in step S504, that is, after the user's requirements for the machine model are met, the corresponding operating system can be configured for the bare metal in the resource pool to meet the user's requirements for the bare metal operating system. Specifically, the supplementary device 101 can obtain the second historical delivery count of the bare metal for each subsystem version number in a certain machine model, and the total historical delivery count of the bare metal for all subsystem version numbers in the machine model, as the second total historical delivery count. Similarly, the supplementary device 101 can obtain the second current pool entry quantity of the bare metal for each subsystem version number in a certain machine model, and the second current pool entry total quantity of the bare metal for all subsystem version numbers in the machine model.
[0076] Step S506: The supplementing device 101 determines a second historical delivery ratio of bare metal for each subsystem version number in the same sub-machine specification based on the second historical delivery count and the second total historical delivery count, and determines a second current pool entry ratio of bare metal for each subsystem version number in the same sub-machine specification based on the second current pool entry quantity and the second total current pool entry quantity.
[0077] Step S507 : The supplementing device 101 performs a subtraction process on the second current entry-pool ratio of the bare metal of each subsystem version number in the same sub-machine specification and the second historical delivery ratio to obtain a second ratio difference of the bare metal of each subsystem version number in the same sub-machine specification;
[0078] In step S508, the replenishment device 101 sorts the second ratio differences in order from small to large, and sets a second replenishment order with a higher priority for the bare metal with a smaller second ratio difference sorting number than the bare metal with a larger sorting number; and replenishes the bare metal stored in the resource pool of the bare metal server 102 according to the second replenishment order.
[0079] After step S505, the supplementary device 101 can also calculate the ratio of the second historical delivery times of the bare metal of each subsystem version number in the same sub-machine specification to the second historical total delivery times as the second historical delivery ratio, and calculate the ratio of the second current pool quantity of the bare metal of each subsystem version number in the same sub-machine specification to the second current pool total quantity as the second current pool ratio, and then perform a difference processing on the second current pool ratio and the second historical delivery ratio to obtain the second ratio difference of the bare metal of each subsystem version number in the same sub-machine specification. Finally, the supplementary device 101 can also sort the bare metal of each subsystem version number in the same sub-machine specification in order from small to large according to the second ratio difference, and set a higher priority supplement order for the bare metal of the subsystem version number with a smaller second ratio difference, so that the bare metal server 102 can give priority to supplementing the bare metal of the subsystem version number with a smaller second ratio difference.
[0080] In this embodiment, by calculating the ratio difference of the bare metal of each sub-machine specification and each subsystem version number, and replenishing the bare metal stored in the resource pool of the bare metal server 102 according to the ratio difference, it is possible to avoid manually designing a replenishment plan to replenish the resource pool of the bare metal server, thereby improving the efficiency of bare metal delivery.
[0081] In one embodiment, after step S203, it can also include: the replenishment device 101 obtains the updated historical delivery information of the bare metal server 102 after the resource pool is replenished, and the updated current pool entry information of the bare metal server 102 after the resource pool is replenished; the updated historical delivery information is used as the new bare metal historical delivery information, and the updated current pool entry information is used as the new bare metal current pool entry information, and returns to step S202.
[0082] Among them, updating historical delivery information refers to the historical delivery information updated after the bare metal server 102 completes bare metal replenishment, and updating current pool entry information refers to the current pool entry information updated after the bare metal server 102 completes bare metal replenishment. Specifically, after the replenishment device 101 completes replenishment of the bare metal stored in the resource pool of the bare metal server 102, the updated historical delivery information of the bare metal server 102 after the bare metal replenishment is completed can be obtained again, and the current pool entry information can be updated. The updated current pool entry information can be used as the new current pool entry information, and the updated historical delivery information can be used as the new historical delivery information. The historical delivery ratio of bare metal for each sub-feature under a certain bare metal feature and the current pool entry ratio can be calculated again, so as to replenish the bare metal in advance based on the ratio difference.
[0083] In the above embodiment, the ratio difference can be calculated again to rediscover the "short board of the barrel" and ensure that the resources in the resource pool are relatively sufficient.
[0084] In one embodiment, a bare metal replenishment system is also provided, such as Figure 6 As shown, the system includes a supplementary device 601 and a bare metal server 602 in communication with the supplementary device 601; wherein the resource pool of the bare metal server 602 pre-stores bare metal;
[0085] The bare metal server 602 is configured to obtain the bare metal historical delivery information and the bare metal current pool entry information of the bare metal pre-stored in the resource pool, and send the bare metal historical delivery information and the bare metal current pool entry information to the supplementary device 601;
[0086] Supplementary device 601 is configured to obtain historical bare metal delivery information and current bare metal pool entry information from bare metal server 602, and determine, based on a preset bare metal feature and the historical bare metal delivery information, a historical bare metal delivery ratio for each sub-feature in the bare metal feature, and determine, based on the current bare metal pool entry information, a current bare metal pool entry ratio for each sub-feature in the bare metal feature.
[0087] The replenishment device 601 is further configured to obtain a difference between a current pool entry ratio and the historical delivery ratio, and replenish the bare metal stored in the resource pool of the bare metal server 602 according to the difference.
[0088] The bare metal server 602 is also used to store the replenished bare metal into the resource pool.
[0089] The bare metal replenishment system provided in the above embodiment, the replenishment device 601 can replenish the bare metal stored in the resource pool based on the difference between the historical delivery ratio and the current delivery ratio of the bare metal server 602, which can avoid manually designing a replenishment plan to replenish the resource pool of the bare metal server, thereby improving the efficiency of bare metal delivery.
[0090] In one application example, a bare metal customizable and rapid delivery method is also provided, which supports the purchase of different hardware specification packages and different operating systems. After the machine is put on the shelf, the pre-installed system is put into the pool to support the user's subsequent purchase and delivery. When the resource pool meets the user's specified package + system combination, the purpose of rapid delivery can be achieved. When the user's specified package + system combination is not met, the system often needs to be reinstalled, and there may even be no server resources that meet the user's package, resulting in low delivery efficiency or even non-delivery. In order to more reasonably allocate and utilize resource pool resources and improve the deliverability and delivery efficiency, a statistical-based resource pool allocation scheme is proposed, as follows:
[0091] 1) Count the number of purchases and deliveries of machines of different specifications in history, calculate the delivery ratio of machines of each specification, and use this ratio as the standard for adding machines of different specifications to the pool;
[0092] 2) The delivery efficiency of the resource pool follows the principle of "barrel efficiency." Therefore, resource allocation prioritizes the weakest link, aiming to minimize long user wait times and poor user experience caused by poor resource planning. Based on this, we calculate the ratio difference (the difference between the current pool entry ratio and the historical delivery ratio) as a measure of the weakest link. Machines with the smallest ratio difference are prioritized for addition to the pool. As the resource pool changes dynamically with user purchases and resource replenishment, the ratio difference also changes dynamically, and the pool is replenished dynamically to maintain the optimal resource pool ratio.
[0093] 3) Table 1 below lists the resource delivery status and resource pool quantity for different package IDs. By calculating the historical delivery ratio, the current pool quantity, the current pool ratio, and the ratio difference, we can identify the deviation between the current resource pool ratio and the historical delivery ratio. Sorting by smallest to largest reveals the weakest link in the resource pool, guiding the pool to prioritize replenishing resources for Packages 8 and 3. After replenishment and after user purchases, we rediscover the weakest link in the resource pool. This cycle ensures relatively sufficient resources in the resource pool.
[0094]
[0095]
[0096] Table 1 Bare Metal Server Resource Pool Sample Data
[0097] Pooled OS allocation solution: The above solves the problem of unreasonable hardware resource pool planning. For BMS products, they ultimately need to be quickly delivered to the specific software system environment specified by the user, such as system versions CentOS7.4, CentOS7.6, CentOS8.2, Redhat7.6, Ubuntu20.04, etc. Therefore, better planning of the distribution of hardware resource pool system versions can avoid the time overhead of reinstalling the system when users purchase due to the resource pool system not meeting their needs, which can further improve the delivery efficiency and user experience of bare metal products. Therefore, a statistical-based resource pool system allocation solution is proposed:
[0098] 1) For machines with different package specifications, count the historical delivery times of each operating system version, the number of system versions currently in the pool for that package, and calculate the system version delivery ratio for machines with each package specification. This ratio will be used as the system version selection criterion for machines to be added to the pool;
[0099] 2) Similarly, we calculate the ratio difference (the difference between the current pool entry ratio and the historical delivery ratio) as a measure of the "short board in the barrel." System version IDs with the smallest ratio difference are prioritized for addition to the pool. As the resource pool changes dynamically with user purchases and resource replenishment, the ratio difference also changes dynamically, and the pool is replenished dynamically to maintain the optimal resource pool ratio.
[0100] 3) Table 2 below lists the resource delivery status and resource pool quantity for a specific package ID. By analyzing historical delivery ratios, current pool quantities, and the current pool ratio and ratio difference, we can identify the deviation between the current resource pool ratio and the historical delivery ratio. Sorting by smallest to largest reveals the weakest link in the resource pool, prioritizing the replenishment of resources with system version ID 4. After replenishment and after user purchases, we can rediscover the weakest link in the resource pool. This cycle ensures relatively sufficient resources in the resource pool.
[0101]
[0102]
[0103] Table 2 Bare Metal Server System Version Resource Pool Sample Data Table
[0104] The above application examples can rationally plan the replenishment of resource pool hardware resources, improve the hardware customization rate and delivery rate, and avoid insufficient hardware resources when users purchase. In addition, by optimizing the replenishment of the resource pool OS and reducing the OS reinstallation rate, the delivery efficiency of the bare metal operating system can be improved, the user experience can be enhanced, and a scientific and operational resource pool replenishment plan can be provided.
[0105] It should be understood that although Figure 2-5The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 2-5 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The order of execution of these steps or stages is not necessarily one by one, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0106] In one embodiment, Figure 7 As shown, a bare metal replenishment device is provided, which is applied to replenishment equipment, including: a bare metal information acquisition module 701, a characteristic ratio acquisition module 702 and a bare metal resource replenishment module 703, wherein:
[0107] The bare metal information acquisition module 701 is used to obtain the bare metal historical delivery information of the bare metal server and the bare metal current pool information corresponding to the bare metal server;
[0108] Feature ratio acquisition module 702 is configured to determine, based on a preset bare metal feature and according to the bare metal historical delivery information, the historical delivery ratio of bare metal for each sub-feature in the bare metal feature, and determine, based on the bare metal current pool entry information, the current entry ratio of bare metal for each sub-feature in the bare metal feature;
[0109] The bare metal resource replenishment module 703 is configured to obtain the difference between the current pool entry ratio and the historical delivery ratio, and replenish the bare metal stored in the resource pool of the bare metal server according to the difference.
[0110] In one embodiment, the bare metal feature includes: the bare metal machine specification; the sub-feature includes: the bare metal sub-machine specification; the feature ratio acquisition module 702 is further used to obtain the historical delivery times of bare metal of each sub-machine specification and the total historical delivery times of bare metal of all sub-machine specifications based on the bare metal historical delivery information; and determine the historical delivery ratio of bare metal of each sub-machine specification based on the historical delivery times and the total historical delivery times.
[0111] In one embodiment, the bare metal resource replenishment module 703 is further used to perform a subtraction between the current pool entry ratio of the bare metal of each sub-machine specification and the historical delivery ratio of the bare metal of each sub-machine specification to obtain the machine specification ratio difference of the bare metal of each sub-machine specification; sort the machine specification ratio differences of the bare metal of each sub-machine specification in order from small to large, and set a higher priority replenishment order for the bare metal of the sub-machine specification with a smaller sorting number than for the bare metal of the sub-machine specification with a larger sorting number; and replenish the bare metal stored in the resource pool of the bare metal server according to the replenishment order.
[0112] In one embodiment, the bare metal feature includes: the system version number of the bare metal; the sub-feature includes: the subsystem version number of the bare metal; the feature ratio acquisition module 702 is further used to obtain the historical delivery times of the bare metal of each subsystem version number and the total historical delivery times of the bare metal of all subsystem version numbers based on the bare metal historical delivery information; and determine the historical delivery ratio of the bare metal of each subsystem version number based on the historical delivery times and the total historical delivery times.
[0113] In one embodiment, the bare metal resource replenishment module 703 is further used to perform a subtraction between the current pool entry ratio of the bare metal of each subsystem version number and the historical delivery ratio of the bare metal of each subsystem version number to obtain the system version ratio difference of the bare metal of each subsystem version number; sort the system version ratio differences of the bare metal of each subsystem version number in order from small to large, and set a higher priority replenishment order for the bare metal of the subsystem version number with a smaller sorting number than for the bare metal of the subsystem version number with a larger sorting number; and replenish the bare metal stored in the resource pool of the bare metal server according to the replenishment order.
[0114] In one embodiment, the bare metal feature includes: the bare metal machine specification, and the bare metal system version number; the sub-feature includes: the bare metal sub-machine specification, and the bare metal subsystem version number; the bare metal resource supplement module 703 is further used to obtain the first historical delivery number of the bare metal of each sub-machine specification and the first historical total delivery number of the bare metal of all sub-machine specifications based on the bare metal historical delivery information and the bare metal current pool information, and obtain the first current pool quantity of the bare metal of each sub-machine specification and the first current pool total quantity of the bare metal of all sub-machine specifications; according to the first historical delivery number and the first historical delivery total times, determine the first historical delivery ratio of the bare metal of each sub-machine specification, and determine the first current pool entry ratio of the bare metal of each sub-machine specification according to the first current pool entry quantity and the first current total pool entry quantity; perform a difference processing on the first current pool entry ratio of the bare metal of each sub-machine specification and the first historical delivery ratio to obtain the first ratio difference of the bare metal of each sub-machine specification; sort the first ratio differences in order from small to large, set a higher priority first supplement order for the bare metal with a smaller first ratio difference sorting number than the bare metal with a larger sorting number, and sort the bare metal stored in the resource pool of the bare metal server according to the first supplement order Supplement; After replenishing the resource pool of the bare metal server in accordance with the first replenishment order, obtain the second historical delivery number of the bare metal of each subsystem version number in the same sub-machine specification, and the second historical total delivery number of the bare metal of all subsystem version numbers in the same sub-machine specification, and obtain the second current pool quantity of the bare metal of each subsystem version number in the same sub-machine specification, and the second current pool total quantity of the bare metal of all subsystem version numbers in the same sub-machine specification; determine the second historical delivery ratio of the bare metal of each subsystem version number in the same sub-machine specification based on the second historical delivery number and the second historical total delivery number, and determine the second historical delivery ratio of the bare metal of each subsystem version number in the same sub-machine specification based on the second historical delivery number and the second historical total delivery number. The current number of entries into the pool and the second total number of entries into the pool are used to determine the second current pool ratio of bare metals of each subsystem version number in the same sub-machine specification; the second current pool ratio of bare metals of each subsystem version number in the same sub-machine specification is subtracted from the second historical delivery ratio to obtain the second ratio difference of bare metals of each subsystem version number in the same sub-machine specification; the second ratio differences are sorted in ascending order, and a second replenishment order with a higher priority is set for bare metals with smaller second ratio difference sorting numbers than for bare metals with larger sorting numbers; the bare metals stored in the resource pool of the bare metal server are replenished according to the second replenishment order.
[0115] In one embodiment, the bare metal replenishment device also includes: a bare metal information update module, which is used to obtain the updated historical delivery information of the bare metal server after the resource pool is replenished, and the updated current pool entry information of the bare metal server after the resource pool is replenished; using the updated historical delivery information as the new bare metal historical delivery information, and using the updated current pool entry information as the new bare metal current pool entry information, and returning a step based on the preset bare metal feature, determining the historical delivery ratio of bare metal of each sub-feature in the bare metal feature according to the bare metal historical delivery information, and determining the current pool entry ratio of bare metal of each sub-feature in the bare metal feature according to the bare metal current pool entry information.
[0116] For the specific definition of the bare metal replenishment device, please refer to the definition of the bare metal replenishment method above, and will not be repeated here. Each module in the above-mentioned bare metal replenishment device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the replenishment device in hardware form, or can be stored in the memory of the replenishment device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0117] In one embodiment, a supplementary device is provided. The supplementary device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The supplementary device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the supplementary device is used to provide computing and control capabilities. The memory of the supplementary 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 supplementary device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a bare metal supplementation method is implemented. The display screen of the supplementary device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the supplementary device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the shell of the supplementary device, or an external keyboard, touchpad or mouse.
[0118] Those skilled in the art will understand that Figure 8 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 supplementary equipment to which the solution of the present application is applied. The specific supplementary equipment may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0119] In one embodiment, a supplementary device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.
[0120] 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 in the above-mentioned method embodiments are implemented.
[0121] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented 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 memory, storage, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. 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).
[0122] The technical features of the above embodiments can 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.
[0123] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A bare metal replenishment method, characterized in that: Applied to supplementary equipment, the method comprises: Obtain the bare metal historical delivery information of the bare metal server and the bare metal current pool information corresponding to the bare metal server; Based on a preset bare metal feature, determining a historical delivery ratio of bare metal for each sub-feature in the bare metal feature according to the bare metal historical delivery information, and determining a current pool entry ratio of bare metal for each sub-feature in the bare metal feature according to the bare metal current pool entry information; A ratio difference between the current pool entry ratio and the historical delivery ratio is obtained, and the bare metal stored in the resource pool of the bare metal server is replenished according to the ratio difference.
2. The method according to claim 1, characterized in that The bare metal feature includes: bare metal machine specifications; the sub-feature includes: bare metal sub-machine specifications; Determining the historical bare metal delivery ratio of each sub-feature in the bare metal feature based on the bare metal historical delivery information includes: According to the bare metal historical delivery information, obtain the historical delivery count of bare metal for each sub-machine specification and the total historical delivery count of bare metal for all sub-machine specifications; According to the historical delivery times and the total historical delivery times, a historical delivery ratio of bare metal of each sub-machine specification is determined.
3. The method according to claim 2, characterized in that The obtaining a ratio difference between the current pool entry ratio and the historical delivery ratio, and replenishing the bare metal stored in the resource pool of the bare metal server according to the ratio difference, includes: Subtracting the current bare metal entry ratio of each sub-machine specification from the historical bare metal delivery ratio of each sub-machine specification to obtain the machine specification ratio difference of the bare metal of each sub-machine specification; Sorting the machine specification ratio differences of the bare metals of the sub-machine specifications in ascending order, and setting a higher priority supplementary order for the bare metals of the sub-machine specifications with smaller sorting numbers than for the bare metals of the sub-machine specifications with larger sorting numbers; The bare metal stored in the resource pool of the bare metal server is replenished according to the replenishment order.
4. The method according to claim 1, wherein The bare metal feature includes: the bare metal system version number; the sub-feature includes: the bare metal subsystem version number; The determining, based on the bare metal historical delivery information, the historical delivery ratios of bare metals of different sub-features in the bare metal feature includes: According to the bare metal historical delivery information, obtain the historical delivery count of bare metal for each subsystem version number and the total historical delivery count of bare metal for all subsystem version numbers; According to the historical delivery times and the total historical delivery times, a historical delivery ratio of bare metal of each subsystem version number is determined.
5. The method according to claim 4, characterized in that The obtaining a ratio difference between the current pool entry ratio and the historical delivery ratio, and replenishing the bare metal stored in the resource pool of the bare metal server according to the ratio difference, includes: Subtract the current bare metal entry ratio of each subsystem version number from the historical bare metal delivery ratio of each subsystem version number to obtain the system version ratio difference of the bare metal of each subsystem version number; Sorting the system version ratio differences of the bare metals of the subsystem version numbers in ascending order, and setting a higher priority supplementary order for the bare metals of the subsystem version numbers with smaller sorting numbers than for the bare metals of the subsystem version numbers with larger sorting numbers; The bare metal stored in the resource pool of the bare metal server is replenished according to the replenishment order.
6. The method according to claim 1, wherein The bare metal feature includes: bare metal machine specifications and bare metal system version number; the sub-feature includes: bare metal sub-machine specifications and bare metal subsystem version number; the method further includes: According to the bare metal historical delivery information and the bare metal current pool information, obtain the first historical delivery number of the bare metal of each sub-machine specification and the first historical total delivery number of the bare metal of all sub-machine specifications, and obtain the first current pool quantity of the bare metal of each sub-machine specification and the first current total pool quantity of the bare metal of all sub-machine specifications; Determining a first historical delivery ratio of bare metal for each sub-machine specification based on the first historical delivery count and the first total historical delivery count, and determining a first current pool entry ratio of bare metal for each sub-machine specification based on the first current pool entry quantity and the first total current pool entry quantity; Subtracting a first current entry ratio of bare metal of each sub-machine specification from the first historical delivery ratio to obtain a first ratio difference of bare metal of each sub-machine specification; The first ratio differences are sorted in ascending order, a first replenishment order with a higher priority is set for bare metals with smaller first ratio difference sorting numbers than for bare metals with larger sorting numbers, and the bare metals stored in the resource pool of the bare metal server are replenished according to the first replenishment order; After replenishing the resource pool of the bare metal server according to the first replenishment order, obtain the second historical delivery count of the bare metal of each subsystem version number in the same sub-machine specification, and the second historical total delivery count of the bare metal of all subsystem version numbers in the same sub-machine specification, and obtain the second current pool-entered quantity of the bare metal of each subsystem version number in the same sub-machine specification, and the second current pool-entered quantity of the bare metal of all subsystem version numbers in the same sub-machine specification; Determine, based on the second historical delivery count and the second total historical delivery count, a second historical delivery ratio of bare metal for each subsystem version number in the same sub-machine specification; and determine, based on the second current pool entry quantity and the second total current pool entry quantity, a second current pool entry ratio of bare metal for each subsystem version number in the same sub-machine specification; Subtracting the second current entry-pool ratio of bare metal for each subsystem version number in the same sub-machine specification from the second historical delivery ratio to obtain a second ratio difference of bare metal for each subsystem version number in the same sub-machine specification; The second ratio differences are sorted in ascending order, and a second replenishment order with a higher priority is set for the bare metal with a smaller second ratio difference sorting number than for the bare metal with a larger sorting number; the bare metal stored in the resource pool of the bare metal server is replenished according to the second replenishment order.
7. The method according to any one of claims 1 to 6, characterized in that After replenishing the bare metal stored in the resource pool of the bare metal server according to the ratio difference, the method further includes: Obtain updated historical delivery information of the bare metal servers after the resource pool is replenished, and updated current pool entry information of the bare metal servers after the resource pool is replenished; The updated historical delivery information is used as new bare metal historical delivery information, and the updated current pool entry information is used as new bare metal current pool entry information, and the steps of returning a preset bare metal feature, determining the historical delivery ratio of bare metal of each sub-feature in the bare metal feature according to the bare metal historical delivery information, and determining the current pool entry ratio of bare metal of each sub-feature in the bare metal feature according to the bare metal current pool entry information.
8. A bare metal replenishment system, characterized in that: It includes a supplementary device and a bare metal server in communication with the supplementary device; wherein the resource pool of the bare metal server pre-stores bare metal; The bare metal server is configured to obtain the bare metal historical delivery information of the bare metal and the bare metal current pool entry information of the bare metal pre-stored in the resource pool, and send the bare metal historical delivery information and the bare metal current pool entry information to the supplementary device; The supplementary device is configured to obtain the bare metal historical delivery information and the bare metal current pool entry information from the bare metal server, and determine, based on a preset bare metal feature and the bare metal historical delivery information, a historical delivery ratio of bare metal for each sub-feature in the bare metal feature, and determine, based on the bare metal current pool entry information, a current pool entry ratio of bare metal for each sub-feature in the bare metal feature; The replenishment device is further configured to obtain a ratio difference between the current pool entry ratio and the historical delivery ratio, and replenish the bare metal stored in the resource pool of the bare metal server according to the ratio difference; The bare metal server is further configured to store the replenished bare metal into the resource pool.
9. A bare metal replenishing device, characterized in that: Applied to supplementary equipment, the device comprises: A bare metal information acquisition module is used to obtain the bare metal historical delivery information of the bare metal server and the bare metal current pool information corresponding to the bare metal server; a feature ratio acquisition module for determining, based on a preset bare metal feature and according to the bare metal historical delivery information, a historical bare metal delivery ratio of each sub-feature in the bare metal feature, and determining, based on the bare metal current pool entry information, a current bare metal entry ratio of each sub-feature in the bare metal feature; The bare metal resource replenishment module is used to obtain the ratio difference between the current pool entry ratio and the historical delivery ratio, and replenish the bare metal stored in the resource pool of the bare metal server according to the ratio difference.
10. A supplementary 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 7 are implemented.
11. 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 7 are implemented.
Citation Information
Patent Citations
Bare metal service delivery method and device, computer equipment and storage medium
CN112286537A
Deployment method of bare metal server
CN112395084A