Cloud host allocation method, device and storage medium

By querying the current usage rate of cloud hosts in real time and determining the maximum usage rate, and combining user level and cloud host type to judge the sold-out situation of cloud hosts, the problem of untimely update of cloud host inventory information and user hierarchical processing is solved, and the accuracy and efficiency of cloud host allocation is improved.

CN114168330BActive Publication Date: 2025-03-18BEIJING HUIJUN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111481258.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-06
Publication Date
2025-03-18
Estimated Expiration
2041-12-06

AI Technical Summary

Technical Problem

The cloud host inventory information is not updated in time, resulting in errors in cloud host allocation; when the number of allocable cloud hosts in cloud host inventory reaches the critical value, if users frequently apply for or cancel the cloud host, errors are also prone to occur; and the existing technology cannot treat different users in a hierarchical manner.

Method used

By querying the current usage rate of the cloud host in real time, determine the maximum usage rate, and determine the cloud host sold-out water level line based on the user's level and the type of cloud host. When receiving the user's cloud host allocation request, the size of the maximum usage rate and the sold-out water level line is determined. If the maximum usage rate is less than the sold-out water level line, the cloud host will be allocated; otherwise, the allocation request will be rejected.

Benefits of technology

It solves the problem of untimely update of cloud host inventory information, improves the accuracy and efficiency of cloud host allocation, and can be processed according to user level and cloud host type, avoiding errors when users frequently apply for or log out of cloud hosts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114168330B_ABST
    Figure CN114168330B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a cloud host allocation method, device and storage medium, the method comprising: real-time query of the current usage rate of the cloud host, and determining the maximum usage rate of the cloud host through the current usage rate; determining the cloud host sold-out watermark according to the user's level and the type of the cloud host; upon receiving a cloud host allocation request sent by the user, judging the size of the maximum usage rate and the cloud host sold-out watermark; and in the case where the maximum usage rate is less than the cloud host sold-out watermark, allocating a user cloud host to the user according to the cloud host allocation request. The above technical means are adopted to solve the problems in the prior art that the cloud host inventory information is not updated in time, when the number of cloud hosts that can be allocated in the cloud host inventory reaches a critical value, if the user frequently applies for or cancels the cloud host, errors are likely to occur, and different users cannot be graded when allocating cloud hosts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of cloud computing, and in particular to a method, device and storage medium for allocating a cloud host. Background Art

[0002] As a public Internet infrastructure service for users, cloud hosts are widely used with the development of cloud computing. Before or after using a cloud host, users need to apply for or cancel a cloud host, so the inventory of cloud hosts is constantly changing. When allocating cloud hosts to users, the existing technology uses an asynchronous method to update the cloud host inventory, which can lead to untimely updates of cloud host inventory information and prone to errors in cloud host allocation. When the number of cloud hosts that can be allocated in the cloud host inventory reaches a critical value, errors are also prone to occur if users frequently apply for or cancel cloud hosts. The existing technology also cannot treat different users in a graded manner when allocating cloud hosts.

[0003] In the process of realizing the concept disclosed in the present invention, the inventors found that there are at least the following technical problems in the related technology: the cloud host inventory information is not updated in a timely manner, and when the number of cloud hosts that can be allocated in the cloud host inventory reaches a critical value, if users frequently apply for or cancel cloud hosts, errors are prone to occur, and different users cannot be treated in a graded manner when allocating cloud hosts. Summary of the invention

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present disclosure provide a cloud host allocation method, device and storage medium, so as to at least solve the problems in the prior art that the cloud host inventory information is not updated in a timely manner, when the number of cloud hosts that can be allocated in the cloud host inventory reaches a critical value, if users frequently apply for or cancel cloud hosts, errors are likely to occur, and different users cannot be treated in a graded manner when allocating cloud hosts.

[0005] The purpose of this disclosure is achieved through the following technical solutions:

[0006] In a first aspect, an embodiment of the present disclosure provides a method for allocating a cloud host, comprising: querying the current usage rate of the cloud host in real time, and determining the maximum usage rate of the cloud host through the current usage rate; determining the cloud host sold-out watermark according to the user's level and the type of the cloud host; upon receiving a cloud host allocation request sent by the user, judging the magnitude of the maximum usage rate and the cloud host sold-out watermark; and when the maximum usage rate is less than the cloud host sold-out watermark, allocating a user cloud host to the user according to the cloud host allocation request.

[0007] In an exemplary embodiment, the maximum usage rate of the cloud host is determined by the current usage rate, including: when the current usage rate is greater than the maximum usage rate, updating the maximum usage rate with the current usage rate; when the current usage rate is less than the difference between the maximum usage rate and the recovery allocation buffer ratio, updating the maximum usage rate with the current usage rate, wherein the recovery allocation buffer ratio is used to indicate the minimum difference between the maximum usage rate and the cloud host sold-out watermark of the user cloud host that can be reallocated to the user after the maximum usage rate is greater than the cloud host sold-out watermark; when the current usage rate is not less than the difference between the maximum usage rate and the recovery allocation buffer ratio, not updating the maximum usage rate.

[0008] In an exemplary embodiment, before querying the current usage rate of the cloud host in real time, the method also includes: monitoring the cloud host in real time through a cloud host monitoring system to see whether a scale expansion event occurs; and when the scale expansion event is monitored to occur in the cloud host, updating the current usage rate according to the scale expansion information indicating the scale expansion event.

[0009] In an exemplary embodiment, before querying the current usage rate of the cloud host in real time, the method further includes: monitoring the cloud host in real time through a cloud host monitoring system whether at least one of the following events occurs: a cloud host deregistration event and a cloud host application event; in the case of monitoring that the cloud host deregistration event occurs, updating the current usage rate according to the deregistration event information indicating the cloud host deregistration event; in the case of monitoring that the cloud host application event occurs, updating the current usage rate according to the application event information indicating the cloud host application event.

[0010] In an exemplary embodiment, determining a sold-out waterline of a cloud host according to a level of a user and a type of the cloud host includes: obtaining a level of the user, wherein the level of the user includes: an important user and an ordinary user; obtaining a type of the cloud host, wherein the type of the cloud host includes: a general-purpose cloud host and a graphics processing cloud host; and determining a sold-out waterline of the cloud host according to the level of the user and the type of the cloud host.

[0011] In an exemplary embodiment, upon receiving a cloud host allocation request sent by the user, after determining the size of the maximum usage rate and the cloud host sold-out waterline, the method further includes: when the maximum usage rate is less than the cloud host sold-out waterline, allocating a user cloud host to the user based on the cloud host allocation request and the difference between the maximum usage rate and the cloud host sold-out waterline; and when the maximum usage rate is not less than the cloud host sold-out waterline, rejecting the cloud host allocation request.

[0012] In an exemplary embodiment, after rejecting the cloud host allocation request when the maximum usage rate is not less than the cloud host sold-out watermark, the method further includes: querying the current usage rate in real time, and determining the maximum usage rate through the current usage rate; when the recovery allocation buffer ratio is less than the difference between the maximum usage rate and the cloud host sold-out watermark, allocating a user cloud host to the user according to the cloud host allocation request and the difference between the maximum usage rate and the cloud host sold-out watermark; wherein the recovery allocation buffer ratio is used to indicate the minimum difference between the maximum usage rate and the cloud host sold-out watermark of the user cloud host that can be re-allocated to the user after the maximum usage rate is not less than the cloud host sold-out watermark.

[0013] In an exemplary embodiment, the method includes: obtaining the level of the user, wherein the level of the user includes an important user and an ordinary user; obtaining the type of the cloud host, wherein the type of the cloud host includes a general-purpose cloud host and a graphics processing cloud host; and determining the recovery allocation buffer ratio according to the level of the user and the type of the cloud host.

[0014] In a second aspect, an embodiment of the present disclosure provides a cloud host allocation device, comprising: a first determination module, used to query the current usage rate of the cloud host in real time, and determine the maximum usage rate of the cloud host through the current usage rate; a second determination module, used to determine the cloud host sold-out watermark according to the user's level and the type of the cloud host; a judgment module, used to judge the size of the maximum usage rate and the cloud host sold-out watermark when receiving a cloud host allocation request sent by the user; an allocation module, used to allocate a user cloud host to the user according to the cloud host allocation request when the maximum usage rate is less than the cloud host sold-out watermark.

[0015] In a third aspect, an embodiment of the present disclosure provides an electronic device. The electronic device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; the memory is used to store computer programs; and the processor is used to implement the cloud host allocation method or image processing method as described above when executing the program stored in the memory.

[0016] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the cloud host allocation method or image processing method described above is implemented.

[0017] The above technical solution provided by the embodiment of the present disclosure has at least some or all of the following advantages compared with the prior art: real-time query of the current usage rate of the cloud host, and determination of the maximum usage rate of the cloud host through the current usage rate; determination of the cloud host sold-out watermark according to the user's level and the type of the cloud host; upon receiving a cloud host allocation request sent by the user, judging the size of the maximum usage rate and the cloud host sold-out watermark; and in the case where the maximum usage rate is less than the cloud host sold-out watermark, allocating a user cloud host to the user according to the cloud host allocation request. The above technical means are adopted to solve the problems in the prior art such as the untimely update of cloud host inventory information, when the number of cloud hosts that can be allocated in the cloud host inventory reaches a critical value, if users frequently apply for or cancel cloud hosts, errors are prone to occur, and different users cannot be graded when allocating cloud hosts, thereby improving the accuracy and efficiency of cloud host allocation. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] Figure 1 A hardware structure block diagram of a computer terminal of a cloud host allocation method according to an embodiment of the present disclosure is schematically shown;

[0021] Figure 2 A flowchart schematically shows a method for allocating a cloud host according to an embodiment of the present disclosure;

[0022] Figure 3 A schematic diagram schematically shows a case where the number of allocable cloud hosts reaches a critical value according to an embodiment of the present disclosure;

[0023] Figure 4 A schematic diagram schematically shows a method for allocating a cloud host according to an embodiment of the present disclosure;

[0024] Figure 5 A schematic diagram schematically shows a flow chart of a cloud host allocation method according to an embodiment of the present disclosure;

[0025] Figure 6 A structural block diagram of a cloud host allocation device according to an embodiment of the present disclosure is schematically shown;

[0026] Figure 7The structural block diagram of an electronic device provided by an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0027] The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present disclosure may be combined with each other without conflict.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0029] The method embodiments provided in the embodiments of the present disclosure can be executed in a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 The hardware structure block diagram of a computer terminal of a cloud host allocation method according to an embodiment of the present disclosure is schematically shown. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (the processor 102 may include but is not limited to a microprocessor (Microprocessor Unit, referred to as MPU) or a programmable logic device (Programmable logic device, referred to as PLD) and other processing devices and a memory 104 for storing data. Optionally, the above-mentioned computer terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.

[0030] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the allocation method of the cloud host in the embodiment of the present disclosure. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0031] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0032] In this implementation, a distribution method running on the above cloud host is provided. Figure 2 A flowchart of a cloud host allocation method according to an embodiment of the present disclosure is schematically shown. Figure 2 As shown, the process includes the following steps:

[0033] Step S202: querying the current usage rate of the cloud host in real time, and determining the maximum usage rate of the cloud host according to the current usage rate;

[0034] Step S204, determining the cloud host sold-out waterline according to the user's level and the type of the cloud host;

[0035] Step S206, upon receiving the cloud host allocation request sent by the user, determining the size of the maximum usage rate and the cloud host sold-out watermark;

[0036] Step S208 , when the maximum usage rate is less than the cloud host sold-out watermark, allocate a user cloud host to the user according to the cloud host allocation request.

[0037] The embodiment of the present disclosure solves the problem of untimely update of cloud host inventory information by querying the current utilization rate of the cloud host in real time. Real-time query means querying according to a preset time period.

[0038] It should be noted that the current usage rate of the cloud host can be the current selling rate of the entire resource pool of the cloud host, and the maximum usage rate of the cloud host can be the maximum selling rate of the entire resource pool of the cloud host. Alternatively, the cloud hosts in the current usage rate of the cloud host and the maximum usage rate of the cloud host are all cloud host clusters. Through the present disclosure, the current usage rate of the cloud host is queried in real time, and the maximum usage rate of the cloud host is determined by the current usage rate; the cloud host sold-out watermark is determined according to the user's level and the type of the cloud host; when the cloud host allocation request sent by the user is received, the size of the maximum usage rate and the cloud host sold-out watermark is judged; when the maximum usage rate is less than the cloud host sold-out watermark, the user cloud host is allocated to the user according to the cloud host allocation request. The above technical means are adopted to solve the problems in the prior art that the cloud host inventory information is not updated in time, when the number of cloud hosts that can be allocated in the cloud host inventory reaches the critical value, if the user frequently applies for or cancels the cloud host, errors are prone to occur, and different users cannot be graded when allocating cloud hosts, thereby improving the accuracy and efficiency of cloud host allocation.

[0039] In step S202, the maximum usage rate of the cloud host is determined by the current usage rate, including: when the current usage rate is greater than the maximum usage rate, updating the maximum usage rate with the current usage rate; when the current usage rate is less than the difference between the maximum usage rate and the recovery allocation buffer ratio, updating the maximum usage rate with the current usage rate, wherein the recovery allocation buffer ratio is used to indicate the minimum difference between the maximum usage rate and the cloud host sold-out watermark of the user cloud host that can be reallocated to the user after the maximum usage rate is greater than the cloud host sold-out watermark; when the current usage rate is not less than the difference between the maximum usage rate and the recovery allocation buffer ratio, the maximum usage rate is not updated.

[0040] When allocating a user cloud host to a user, it is necessary to consider the maximum usage rate of the cloud host and the cloud host sold-out waterline, and the maximum usage rate needs to be determined by the current usage rate of the cloud host. The maximum usage rate of the cloud host, wherein the cloud host refers to all cloud hosts in the cloud host cluster or all cloud hosts in the cloud host inventory. The maximum usage rate is determined by the current usage rate: when the current usage rate is greater than the maximum usage rate or when the current usage rate is less than the difference between the maximum usage rate and the recovery allocation buffer ratio, the maximum usage rate is updated with the current usage rate. When the current usage rate is not less than the difference between the maximum usage rate and the recovery allocation buffer ratio, the maximum usage rate is not updated. By increasing the recovery allocation buffer ratio, the embodiment of the present disclosure can solve the problem that when the number of allocable cloud hosts in the cloud host inventory reaches a critical value, if users frequently apply for or cancel cloud hosts, errors are likely to occur.

[0041] Figure 3 A schematic diagram showing that the number of allocable cloud hosts reaches a critical value according to an embodiment of the present disclosure is shown as follows: Figure 3 As shown:

[0042] Optionally, the allocation of cloud hosts can be understood as the sale of cloud hosts by cloud host manufacturers. In the prior art, when the resources sold by a cloud host are close to the inventory of cloud hosts that can be sold, if there are users who frequently apply for or release cloud hosts, the sale of cloud hosts will be in a "swinging" state, and the user experience will be poor. If the total inventory of a cloud host is 100, and the sold-out water level of a cloud host is 90%, where , that is, the maximum number of cloud hosts that can be sold is 90, and it is in a period of sales state shock, if users A and B apply for resources at the same time, due to the small number of released cloud hosts, the two users are unlikely to apply successfully at the same time. Among them, releasing a cloud host means that a cloud host deregistration event occurs.

[0043] The disclosed embodiment increases the allocation recovery buffer ratio, for example, setting the allocation recovery buffer ratio to 5%, that is, when the maximum usage rate of the cloud host is 5% lower than the cloud host sold-out waterline, when the maximum usage rate of the cloud host is 85%, the cloud host allocation request can be received, and the operation of allocating cloud hosts to users can be resumed, that is, the sale of cloud hosts can be resumed. Through the above technical solution, if users A and B apply for resources at the same time, the possibility of the two users' simultaneous successful applications will increase due to the increase in the allocation recovery buffer ratio.

[0044] Before executing step S202, that is, before querying the current usage rate of the cloud host in real time, the method also includes: monitoring the cloud host in real time through a cloud host monitoring system to see whether a scale expansion event occurs; and when it is monitored that the cloud host has the scale expansion event, updating the current usage rate according to the scale expansion information used to indicate the scale expansion event.

[0045] The scale expansion events include: physical server expansion of the physical servers corresponding to the cloud host cluster, that is, increasing the capacity of the cloud host cluster by adding physical servers; multiple cloud host clusters are connected, that is, the original cloud host cluster is connected to other cloud host clusters, thereby expanding the capacity of the original cloud host cluster.

[0046] The disclosed embodiment adds a cloud host monitoring system, and through real-time monitoring by the cloud host monitoring system, when the cloud host has the scale expansion event, the current usage rate is updated according to the scale expansion information indicating the scale expansion event. The scale expansion information is the size of the capacity of the expanded cloud host cluster corresponding to the scale expansion event.

[0047] Before executing step S202, that is, before querying the current usage rate of the cloud host in real time, the method also includes: monitoring the cloud host in real time through a cloud host monitoring system whether at least one of the following events occurs: a cloud host deregistration event and a cloud host application event; when the cloud host deregistration event is monitored to occur, updating the current usage rate according to the deregistration event information indicating the cloud host deregistration event; when the cloud host application event is monitored to occur, updating the current usage rate according to the application event information indicating the cloud host application event.

[0048] It should be noted that if a user successfully applies for a cloud host, the current usage rate of the cloud host at this time will increase when queried in real time. If some users cancel the cloud host, the current usage rate of the cloud host at this time will decrease when queried in real time. The disclosed embodiment adds a cloud host monitoring system. Through real-time monitoring by the cloud host monitoring system, it is found that a cloud host cancellation event or a cloud host application event occurs on the cloud host, and the current usage rate needs to be updated according to the cancellation event information or the application event information. The cancellation event information includes the capacity of the cloud host cancelled in the cloud host cancellation event. The application event information includes the capacity of the cloud host applied for by the user in the cloud host application event.

[0049] In step S204, the sold-out waterline of the cloud host is determined according to the user's level and the type of the cloud host, including: obtaining the user's level, wherein the user's level includes: important users and ordinary users; obtaining the type of the cloud host, wherein the type of the cloud host includes: general-purpose cloud host and graphics processing cloud host; determining the sold-out waterline of the cloud host according to the user's level and the type of the cloud host.

[0050] The disclosed embodiment solves the problem that the prior art cannot classify different users in the allocation of cloud hosts by using a user classification method. At the same time, the disclosed embodiment also classifies cloud hosts, and the cloud host sold-out waterline can be determined according to the level of the user and the type of the cloud host. It should be noted that the disclosed embodiment can classify the level of the user into multiple user levels, including but not limited to: important users and ordinary users; the disclosed embodiment can classify the type of the cloud host into multiple cloud host types, including but not limited to: general-purpose cloud hosts and graphics processing cloud hosts. Among them, the graphics processing type cloud host, that is, the GPU type cloud host, is a computing service based on the GPU (Graphics Processing Unit) application, with outstanding graphics processing capabilities and high-performance computing capabilities, and is suitable for application scenarios such as large-scale online games, video decoding, 3D graphics applications, and deep learning. The general-purpose cloud host is a balance of computing, memory, and network resources, which can meet the application resource requirements in most scenarios, and is recommended for small and medium-sized applications and small and medium-sized databases.

[0051] After executing step S206, that is, when receiving the cloud host allocation request sent by the user, after determining the size of the maximum usage rate and the cloud host sold-out waterline, the method further includes: when the maximum usage rate is less than the cloud host sold-out waterline, allocating a user cloud host to the user based on the cloud host allocation request and the difference between the maximum usage rate and the cloud host sold-out waterline; when the maximum usage rate is not less than the cloud host sold-out waterline, rejecting the cloud host allocation request.

[0052] If the maximum usage rate is less than the cloud host sold-out watermark, it means that a cloud host can be allocated at this time, that is, the cloud host allocation request can be responded to or agreed to, and a user cloud host is allocated to the user according to the cloud host allocation request and the difference between the maximum usage rate and the cloud host sold-out watermark. In other words, after responding to the cloud host allocation request, the maximum usage rate is first considered to be not greater than the cloud host sold-out watermark.

[0053] Optionally, after responding to the cloud host allocation request, the difference between the maximum usage rate and the cloud host sold-out watermark is less than a preset threshold.

[0054] That is to say, when the number of cloud hosts that can be allocated in the cloud host inventory is about to reach the critical value, after allocating the user cloud host, the maximum usage rate cannot exceed the cloud host sold-out watermark by too much, because if it seriously exceeds the cloud host sold-out watermark, it will affect the stability of cloud host allocation.

[0055] Optionally, when receiving the inventory query request sent by the user, the magnitude of the maximum usage rate and the cloud host sold-out watermark may be determined.

[0056] In an optional embodiment, after rejecting the cloud host allocation request when the maximum usage rate is not less than the cloud host sold-out watermark, the method further includes: querying the current usage rate in real time, and determining the maximum usage rate through the current usage rate; when the recovery allocation buffer ratio is less than the difference between the maximum usage rate and the cloud host sold-out watermark, allocating a user cloud host to the user according to the cloud host allocation request and the difference between the maximum usage rate and the cloud host sold-out watermark; wherein the recovery allocation buffer ratio is used to indicate that after the maximum usage rate is not less than the cloud host sold-out watermark, the minimum difference between the maximum usage rate and the cloud host sold-out watermark of the user cloud host can be re-allocated to the user.

[0057] When the maximum usage rate is greater than or equal to the cloud host sold-out watermark, cloud hosts can be allocated only when the recovery allocation buffer ratio is less than the difference between the maximum usage rate and the cloud host sold-out watermark.

[0058] Figure 4 A schematic diagram schematically shows a method for allocating a cloud host according to an embodiment of the present disclosure, such as Figure 4 As shown:

[0059] Compared with general-purpose cloud hosts, GPU cloud hosts, or graphics processing cloud hosts, have less elastic requirements, more stable user requirements, and less sudden or shrinking demand scenarios, so the sold-out level can be set higher than that of general-purpose cloud hosts, where the sold-out level is the sold-out level of cloud hosts. User value is used to identify user attributes. User A can bring more value and is an important customer. User B is cheaper than user A and is an ordinary user, so the sold-out level for user A can be set higher than that for user B. As shown in the figure, the sold-out levels for user A and user B for general-purpose cloud hosts are 90% and 85% respectively; at the same time, the recovery sold-out buffer ratio of user A is also smaller than that of user B. In the figure, the recovery sold-out buffer ratios for user A and user B for general-purpose cloud hosts are 5% and 10% respectively, where the recovery sold-out buffer ratio is the recovery allocation buffer ratio, and cloud host sales are the allocation of cloud hosts. That is, when the sold cloud host resources reach 85% of the total inventory, ordinary user B cannot apply for more cloud host resources, but important user A can still apply for cloud host resources. Only when the sold cloud host resources reach 90% of the total inventory, important user A can no longer apply for new resources. That is, important users have a higher cloud host allocation priority than ordinary users.

[0060] In an optional embodiment, the level of the user is obtained, wherein the level of the user includes an important user and an ordinary user; the type of the cloud host is obtained, wherein the type of the cloud host includes: a general-purpose cloud host and a graphics processing cloud host; and the recovery allocation buffer ratio is determined according to the level of the user and the type of the cloud host.

[0061] The disclosed embodiment first classifies the users and categorizes the cloud hosts, and then determines the recovery allocation buffer ratio according to the user's level and the type of the cloud host.

[0062] In order to better understand the above technical solution, the embodiments of the present disclosure also provide an optional embodiment for explaining the above technical solution.

[0063] Figure 5 A schematic diagram of a cloud host allocation method according to an embodiment of the present disclosure is shown as follows: Figure 5 As shown, the process includes the following steps:

[0064] S502: monitoring the cloud host in real time through the cloud host monitoring system whether a scale expansion event, a cloud host deregistration event, and a cloud host application event occur, and updating the current utilization rate of the cloud host according to the above events;

[0065] S504: querying the current usage rate of the cloud host in real time, and determining the maximum usage rate of the cloud host according to the current usage rate;

[0066] S506: Determine a cloud host sold-out watermark according to the user's level and the type of the cloud host;

[0067] S508: upon receiving the cloud host allocation request sent by the user, determining the magnitude of the maximum usage rate and the cloud host sold-out watermark;

[0068] S510: when the maximum usage rate is less than the cloud host sold-out watermark, allocating a user cloud host to the user according to the cloud host allocation request;

[0069] S512: When the maximum usage rate is not less than the cloud host sold-out watermark, reject the cloud host allocation request, query the current usage rate in real time, and determine the maximum usage rate through the current usage rate; when the recovery allocation buffer ratio is less than the difference between the maximum usage rate and the cloud host sold-out watermark, allocate a user cloud host to the user according to the cloud host allocation request and the difference between the maximum usage rate and the cloud host sold-out watermark.

[0070] Through the present disclosure, the current usage rate of the cloud host is queried in real time, and the maximum usage rate of the cloud host is determined by the current usage rate; the cloud host sold-out watermark is determined according to the user's level and the type of the cloud host; when a cloud host allocation request sent by the user is received, the size of the maximum usage rate and the cloud host sold-out watermark is judged; when the maximum usage rate is less than the cloud host sold-out watermark, a user cloud host is allocated to the user according to the cloud host allocation request. The above technical means are adopted to solve the problems in the prior art such as the untimely update of cloud host inventory information, when the number of cloud hosts that can be allocated in the cloud host inventory reaches a critical value, if users frequently apply for or cancel cloud hosts, errors are prone to occur, and different users cannot be graded when allocating cloud hosts, thereby improving the accuracy and efficiency of cloud host allocation.

[0071] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk), including a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present disclosure.

[0072] In this embodiment, a cloud host allocation device is also provided, and the cloud host allocation device is used to implement the above-mentioned embodiments and preferred implementation modes, which have been described and will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0073] Figure 6 A block diagram schematically shows a structure of a cloud host allocation device according to an optional embodiment of the present disclosure. Figure 6 As shown, the device comprises:

[0074] A first determination module 602 is used to query the current usage rate of the cloud host in real time, and determine the maximum usage rate of the cloud host according to the current usage rate;

[0075] A second determination module 604 is used to determine a cloud host sold-out watermark according to the user's level and the type of the cloud host;

[0076] A determination module 606 is configured to determine the size of the maximum usage rate and the cloud host sold-out watermark when receiving the cloud host allocation request sent by the user;

[0077] The allocation module 608 is configured to allocate a user cloud host to the user according to the cloud host allocation request when the maximum usage rate is less than the cloud host sold-out watermark.

[0078] The embodiment of the present disclosure solves the problem of untimely update of cloud host inventory information by querying the current utilization rate of the cloud host in real time. Real-time query means querying according to a preset time period.

[0079] Through the present disclosure, the current usage rate of the cloud host is queried in real time, and the maximum usage rate of the cloud host is determined by the current usage rate; the cloud host sold-out watermark is determined according to the user's level and the type of the cloud host; when a cloud host allocation request sent by the user is received, the size of the maximum usage rate and the cloud host sold-out watermark is judged; when the maximum usage rate is less than the cloud host sold-out watermark, a user cloud host is allocated to the user according to the cloud host allocation request. The above technical means are adopted to solve the problems in the prior art such as the untimely update of cloud host inventory information, when the number of cloud hosts that can be allocated in the cloud host inventory reaches a critical value, if users frequently apply for or cancel cloud hosts, errors are prone to occur, and different users cannot be graded when allocating cloud hosts, thereby improving the accuracy and efficiency of cloud host allocation.

[0080] Optionally, the first determination module 602 is also used to update the maximum usage rate with the current usage rate when the current usage rate is greater than the maximum usage rate; and to update the maximum usage rate with the current usage rate when the current usage rate is less than the difference between the maximum usage rate and the recovery allocation buffer ratio, wherein the recovery allocation buffer ratio is used to indicate the minimum difference between the maximum usage rate and the cloud host sold-out waterline of the user cloud host that can be reallocated to the user after the maximum usage rate is greater than the cloud host sold-out waterline; and the maximum usage rate is not updated when the current usage rate is not less than the difference between the maximum usage rate and the recovery allocation buffer ratio.

[0081] When allocating a user cloud host to a user, it is necessary to consider the maximum usage rate of the cloud host and the cloud host sold-out waterline, and the maximum usage rate needs to be determined by the current usage rate of the cloud host. The maximum usage rate of the cloud host, wherein the cloud host refers to all cloud hosts in the cloud host cluster or all cloud hosts in the cloud host inventory. The maximum usage rate is determined by the current usage rate: when the current usage rate is greater than the maximum usage rate or when the current usage rate is less than the difference between the maximum usage rate and the recovery allocation buffer ratio, the maximum usage rate is updated with the current usage rate. When the current usage rate is not less than the difference between the maximum usage rate and the recovery allocation buffer ratio, the maximum usage rate is not updated. By increasing the recovery allocation buffer ratio, the embodiment of the present disclosure can solve the problem that when the number of allocable cloud hosts in the cloud host inventory reaches a critical value, if users frequently apply for or cancel cloud hosts, errors are likely to occur.

[0082] Figure 3 A schematic diagram showing that the number of allocable cloud hosts reaches a critical value according to an embodiment of the present disclosure is shown as follows: Figure 3 As shown:

[0083] Optionally, the allocation of cloud hosts can be understood as the sale of cloud hosts by cloud host manufacturers. In the prior art, when the resources sold by a cloud host are close to the inventory of cloud hosts that can be sold, if there are users who frequently apply for or release cloud hosts, the sale of cloud hosts will be in a "swinging" state, and the user experience will be poor. If the total inventory of a cloud host is 100, and the sold-out water level of the cloud host is 90%, which means that the maximum number of cloud hosts that can be sold is 90, and it is in a period of sales state shock, if users A and B apply for resources at the same time, due to the small number of released cloud hosts, the two users will most likely not be able to apply successfully at the same time. Among them, releasing a cloud host means that a cloud host deregistration event has occurred.

[0084] The disclosed embodiment increases the allocation recovery buffer ratio, for example, setting the allocation recovery buffer ratio to 5%, that is, when the maximum usage rate of the cloud host is 5% lower than the cloud host sold-out waterline, when the maximum usage rate of the cloud host is 85%, the cloud host allocation request can be received, and the operation of allocating cloud hosts to users can be resumed, that is, the sale of cloud hosts can be resumed. Through the above technical solution, if users A and B apply for resources at the same time, the possibility of the two users' simultaneous successful applications will increase due to the increase in the allocation recovery buffer ratio.

[0085] Optionally, the first determination module 602 is also used to monitor in real time through a cloud host monitoring system whether a scale expansion event occurs on the cloud host; when it is monitored that the scale expansion event occurs on the cloud host, the current usage rate is updated according to the scale expansion information indicating the scale expansion event.

[0086] The scale expansion events include: physical server expansion of the physical servers corresponding to the cloud host cluster, that is, increasing the capacity of the cloud host cluster by adding physical servers; multiple cloud host clusters are connected, that is, the original cloud host cluster is connected to other cloud host clusters, thereby expanding the capacity of the original cloud host cluster.

[0087] The disclosed embodiment adds a cloud host monitoring system, and through real-time monitoring by the cloud host monitoring system, when the cloud host has the scale expansion event, the current usage rate is updated according to the scale expansion information indicating the scale expansion event. The scale expansion information is the size of the capacity of the expanded cloud host cluster corresponding to the scale expansion event.

[0088] Optionally, the first determination module 602 is also used to monitor in real time through the cloud host monitoring system whether at least one of the following events occurs on the cloud host: a cloud host deregistration event and a cloud host application event; when it is monitored that the cloud host has the cloud host deregistration event, the current usage rate is updated according to the deregistration event information indicating the cloud host deregistration event; when it is monitored that the cloud host has the cloud host application event, the current usage rate is updated according to the application event information indicating the cloud host application event.

[0089] It should be noted that if a user successfully applies for a cloud host, the current usage rate of the cloud host at this time will increase when queried in real time. If some users cancel the cloud host, the current usage rate of the cloud host at this time will decrease when queried in real time. The disclosed embodiment adds a cloud host monitoring system. Through real-time monitoring by the cloud host monitoring system, it is found that a cloud host cancellation event or a cloud host application event occurs on the cloud host, and the current usage rate needs to be updated according to the cancellation event information or the application event information. The cancellation event information includes the capacity of the cloud host cancelled in the cloud host cancellation event. The application event information includes the capacity of the cloud host applied for by the user in the cloud host application event.

[0090] Optionally, the second determination module 604 is also used to obtain the level of the user, wherein the level of the user includes: important users and ordinary users; obtain the type of the cloud host, wherein the type of the cloud host includes: general-purpose cloud host and graphics processing cloud host; determine the cloud host sold-out waterline according to the level of the user and the type of the cloud host.

[0091] The disclosed embodiment solves the problem that the prior art cannot classify different users in the allocation of cloud hosts by using a user classification method. At the same time, the disclosed embodiment also classifies cloud hosts, and the cloud host sold-out waterline can be determined according to the level of the user and the type of the cloud host. It should be noted that the disclosed embodiment can classify the level of the user into multiple user levels, including but not limited to: important users and ordinary users; the disclosed embodiment can classify the type of the cloud host into multiple cloud host types, including but not limited to: general-purpose cloud hosts and graphics processing cloud hosts. Among them, the graphics processing type cloud host, that is, the GPU type cloud host, is a computing service based on the GPU (Graphics Processing Unit) application, with outstanding graphics processing capabilities and high-performance computing capabilities, and is suitable for application scenarios such as large-scale online games, video decoding, 3D graphics applications, and deep learning. The general-purpose cloud host is a balance of computing, memory, and network resources, which can meet the application resource requirements in most scenarios, and is recommended for small and medium-sized applications and small and medium-sized databases.

[0092] Optionally, the judgment module 606 is also used to allocate a user cloud host to the user based on the cloud host allocation request and the difference between the maximum usage rate and the cloud host sold-out waterline when the maximum usage rate is less than the cloud host sold-out waterline; and to reject the cloud host allocation request when the maximum usage rate is not less than the cloud host sold-out waterline.

[0093] If the maximum usage rate is less than the cloud host sold-out watermark, it means that a cloud host can be allocated at this time, that is, the cloud host allocation request can be responded to or agreed to, and a user cloud host is allocated to the user according to the cloud host allocation request and the difference between the maximum usage rate and the cloud host sold-out watermark. In other words, after responding to the cloud host allocation request, the maximum usage rate is first considered to be not greater than the cloud host sold-out watermark.

[0094] Optionally, after responding to the cloud host allocation request, the difference between the maximum usage rate and the cloud host sold-out watermark is less than a preset threshold.

[0095] That is to say, when the number of cloud hosts that can be allocated in the cloud host inventory is about to reach the critical value, after allocating the user cloud host, the maximum usage rate cannot exceed the cloud host sold-out watermark by too much, because if it seriously exceeds the cloud host sold-out watermark, it will affect the stability of cloud host allocation.

[0096] Optionally, the allocation module 608 is also used to query the current usage rate in real time and determine the maximum usage rate through the current usage rate; when the recovery allocation buffer ratio is less than the difference between the maximum usage rate and the cloud host sold-out waterline, a user cloud host is allocated to the user according to the cloud host allocation request and the difference between the maximum usage rate and the cloud host sold-out waterline; wherein the recovery allocation buffer ratio is used to indicate that after the maximum usage rate is not less than the cloud host sold-out waterline, the minimum difference between the maximum usage rate and the cloud host sold-out waterline of the user cloud host can be re-allocated to the user.

[0097] When the maximum usage rate is greater than or equal to the cloud host sold-out watermark, cloud hosts can be allocated only when the recovery allocation buffer ratio is less than the difference between the maximum usage rate and the cloud host sold-out watermark.

[0098] Figure 4 A schematic diagram schematically shows a method for allocating a cloud host according to an embodiment of the present disclosure, such as Figure 4 As shown:

[0099] Compared with general-purpose cloud hosts, GPU cloud hosts, or graphics processing cloud hosts, have less elastic requirements, more stable user requirements, and less sudden or shrinking demand scenarios, so the sold-out level can be set higher than that of general-purpose cloud hosts, where the sold-out level is the sold-out level of cloud hosts. User value is used to identify user attributes. User A can bring more value and is an important customer. User B is cheaper than user A and is an ordinary user, so the sold-out level for user A can be set higher than that for user B. As shown in the figure, the sold-out levels for user A and user B for general-purpose cloud hosts are 90% and 85% respectively; at the same time, the recovery sold-out buffer ratio of user A is also smaller than that of user B. In the figure, the recovery sold-out buffer ratios for user A and user B for general-purpose cloud hosts are 5% and 10% respectively, where the recovery sold-out buffer ratio is the recovery allocation buffer ratio, and cloud host sales are the allocation of cloud hosts. That is, when the sold cloud host resources reach 85% of the total inventory, ordinary user B cannot apply for more cloud host resources, but important user A can still apply for cloud host resources. Only when the sold cloud host resources reach 90% of the total inventory, important user A can no longer apply for new resources. That is, important users have a higher cloud host allocation priority than ordinary users.

[0100] Optionally, the allocation module 608 is also used to obtain the level of the user, wherein the level of the user includes important users and ordinary users; obtain the type of the cloud host, wherein the type of the cloud host includes: a general-purpose cloud host and a graphics processing cloud host; and determine the recovery allocation buffer ratio according to the level of the user and the type of the cloud host.

[0101] The disclosed embodiment first classifies the users and categorizes the cloud hosts, and then determines the recovery allocation buffer ratio according to the user's level and the type of the cloud host.

[0102] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0103] An embodiment of the present disclosure provides an electronic device.

[0104] Figure 7 The structural block diagram of an electronic device provided by an embodiment of the present disclosure is schematically shown.

[0105] Reference Figure 7 As shown, the electronic device 700 provided by the embodiment of the present disclosure includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 communicate with each other through the communication bus 704; the memory 703 is used to store computer programs; the processor 701 is used to implement the steps in any of the above method embodiments when executing the program stored in the memory.

[0106] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the input / output device is connected to the processor.

[0107] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0108] S1, querying the current usage rate of the cloud host in real time, and determining the maximum usage rate of the cloud host according to the current usage rate;

[0109] S2, determining a cloud host sold-out watermark according to the user's level and the type of the cloud host;

[0110] S3, upon receiving the cloud host allocation request sent by the user, determining the size of the maximum usage rate and the cloud host sold-out watermark;

[0111] S4: when the maximum usage rate is less than the cloud host sold-out watermark, allocate a user cloud host to the user according to the cloud host allocation request.

[0112] The embodiments of the present disclosure further provide a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0113] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0114] S1, querying the current usage rate of the cloud host in real time, and determining the maximum usage rate of the cloud host according to the current usage rate;

[0115] S2, determining a cloud host sold-out watermark according to the user's level and the type of the cloud host;

[0116] S3, upon receiving the cloud host allocation request sent by the user, determining the size of the maximum usage rate and the cloud host sold-out watermark;

[0117] S4: when the maximum usage rate is less than the cloud host sold-out watermark, allocate a user cloud host to the user according to the cloud host allocation request.

[0118] The computer-readable storage medium may be included in the device / apparatus described in the above embodiment; or it may exist independently without being assembled into the device / apparatus. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0119] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0120] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0121] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present disclosure can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present disclosure is not limited to any specific combination of hardware and software.

[0122] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for allocating a cloud host, characterized in that: include: Query the current usage rate of the cloud host in real time, and determine the maximum usage rate of the cloud host according to the current usage rate; Determine the cloud host sold-out watermark based on the user's level and the type of the cloud host; Upon receiving the cloud host allocation request sent by the user, determining the size of the maximum usage rate and the cloud host sold-out watermark; When the maximum usage rate is less than the cloud host sold-out watermark, allocating a user cloud host to the user according to the cloud host allocation request; Wherein, determining the maximum utilization rate of the cloud host according to the current utilization rate includes: When the current usage rate is greater than the current maximum usage rate, the maximum usage rate is updated with the current usage rate; wherein the current maximum usage rate represents the maximum selling rate of the entire resource pool of the cloud host within a preset time period; When the current usage rate is less than the difference between the current maximum usage rate and the recovery allocation buffer ratio, the maximum usage rate is updated with the current usage rate, wherein the recovery allocation buffer ratio is used to indicate the minimum difference between the maximum usage rate and the cloud host sold-out watermark that can be used to re-allocate the user's cloud host to the user after the current maximum usage rate is greater than the cloud host sold-out watermark; When the current usage rate is not less than the difference between the current maximum usage rate and the recovery allocation buffer ratio, the maximum usage rate is not updated; When allocating a cloud host, the updated maximum usage rate is determined as the maximum usage rate of the cloud host.

2. The method according to claim 1, characterized in that Before querying the current usage rate of the cloud host in real time, the method further includes: Monitor in real time through the cloud host monitoring system whether a scale expansion event occurs to the cloud host; In the case where the scale expansion event occurs on the cloud host, the current usage rate is updated according to the scale expansion information indicating the scale expansion event.

3. The method according to claim 1, characterized in that Before querying the current usage rate of the cloud host in real time, the method further includes: Monitor the cloud host in real time through the cloud host monitoring system whether at least one of the following events occurs on the cloud host: a cloud host deregistration event and a cloud host application event; When the cloud host logout event is detected, updating the current usage rate according to logout event information indicating the cloud host logout event; In the case where the cloud host application event is monitored to occur in the cloud host, the current usage rate is updated according to application event information indicating the cloud host application event.

4. The method according to claim 1, characterized in that: The step of determining the cloud host sold-out watermark according to the user level and the type of the cloud host includes: Acquire the level of the user, wherein the level of the user includes: important user and ordinary user; Obtaining the type of the cloud host, wherein the types of the cloud host include: a general-purpose cloud host and a graphics processing cloud host; The cloud host sold-out watermark is determined according to the level of the user and the type of the cloud host.

5. The method according to claim 1, characterized in that In the case of receiving the cloud host allocation request sent by the user, after determining the size of the maximum usage rate and the cloud host sold-out watermark, the method further includes: When the maximum usage rate is less than the cloud host sold-out watermark, allocating a user cloud host to the user according to the cloud host allocation request and the difference between the maximum usage rate and the cloud host sold-out watermark; When the maximum usage rate is not less than the cloud host sold-out watermark, the cloud host allocation request is rejected.

6. The method according to claim 5, characterized in that After rejecting the cloud host allocation request when the maximum usage rate is not less than the cloud host sold-out watermark, the method further includes: querying the current usage rate in real time, and determining the maximum usage rate through the current usage rate; When the recovery allocation buffer ratio is less than the difference between the maximum usage rate and the cloud host sold-out watermark, allocating a user cloud host to the user according to the cloud host allocation request and the difference between the maximum usage rate and the cloud host sold-out watermark; The recovery allocation buffer ratio is used to indicate the minimum difference between the maximum usage rate and the cloud host sold-out watermark that can be used to reallocate the user's cloud host to the user after the maximum usage rate is not less than the cloud host sold-out watermark.

7. The method according to claim 1 or 6, characterized in that: include: Acquire the level of the user, wherein the level of the user includes important users and ordinary users; Obtaining the type of the cloud host, wherein the types of the cloud host include: a general-purpose cloud host and a graphics processing cloud host; The recovery allocation buffer ratio is determined according to the level of the user and the type of the cloud host.

8. A cloud host allocation device, characterized in that: include: A first determination module is used to query the current usage rate of the cloud host in real time, and determine the maximum usage rate of the cloud host according to the current usage rate; A second determination module is used to determine a cloud host sold-out watermark according to the user's level and the type of the cloud host; A determination module, configured to determine the magnitude of the maximum usage rate and the cloud host sold-out watermark upon receiving a cloud host allocation request sent by the user; An allocation module, configured to allocate a user cloud host to the user according to the cloud host allocation request when the maximum usage rate is less than the cloud host sold-out watermark; Wherein, determining the maximum utilization rate of the cloud host according to the current utilization rate includes: When the current usage rate is greater than the current maximum usage rate, the maximum usage rate is updated with the current usage rate; wherein the current maximum usage rate represents the maximum selling rate of the entire resource pool of the cloud host within a preset time period; When the current usage rate is less than the difference between the current maximum usage rate and the recovery allocation buffer ratio, the maximum usage rate is updated with the current usage rate, wherein the recovery allocation buffer ratio is used to indicate the minimum difference between the maximum usage rate and the cloud host sold-out watermark that can be used to re-allocate the user's cloud host to the user after the current maximum usage rate is greater than the cloud host sold-out watermark; When the current usage rate is not less than the difference between the current maximum usage rate and the recovery allocation buffer ratio, the maximum usage rate is not updated; When allocating a cloud host, the updated maximum usage rate is determined as the maximum usage rate of the cloud host.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Resource allocation method, device and system, equipment and medium

    CN110858161A

  • Capacity expansion method, electronic equipment and computer readable storage medium

    CN113407112A