Resource management method and platform, computing device and computer readable medium
By predicting the createable volume and interruption rate in the available zone in the cloud management platform, users can choose the appropriate available zone, which solves the problem of inconvenient distribution of computing resources in the cloud computing platform and improves user experience and resource management efficiency.
Patent Information
- Application Number
- CN202310379454.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
When existing cloud computing platforms provide bidding instances, they cannot guarantee that the computing resources selected by users are provided by one host, resulting in inconvenient resource distribution, high management costs, and poor user experience.
By predicting the creation volume and interruption rate in each availability zone in the cloud management platform, users can intuitively select the availability zone that meets their needs, ensuring that computing resources are provided centrally, reducing waiting time and improving experience.
It enables users to manage and use computing resources more intuitively, reduces the waiting time for instance creation, improves user experience, and ensures the centralization and reliability of computing resources.
Smart Images

Figure CN118733209A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing technology, and in particular to a resource management method, platform, computing device and computer-readable medium. Background Art
[0002] In recent years, more and more enterprises have migrated their core businesses to cloud platforms as online services for the convenience of users. Public cloud platforms have a large number of computing resources. In order to ensure the reliability of services, they generally use multiple available zones (AZs) to provide cloud computing services. Among them, an available zone includes multiple hosts for creating elastic cloud servers.
[0003] The computing device provides a variety of cloud service instance operation strategies, such as on-demand instances, reserved instances, and spot instances. Among them, for on-demand instances and reserved instances, the computing device only needs to provide the corresponding fixed-duration customized purchase plan. For spot instances, idle cloud computing resources are generally sold at a certain discount price. Since users are required to provide a bidding price to bid, the computing device needs to provide users with idle computing resource information, historical price information, etc. The user can only successfully purchase if the price bid provided by the user is successful and the computing resources bid by the user are sufficient. However, during the operation of the spot instance purchased successfully by the user, when the cloud computing resources are insufficient, the computing device may delete the spot instance with a lower bid from the created spot instances, and then release its computing resources to users with higher prices, which will cause the operation of the corresponding spot instance to be interrupted.
[0004] In the existing dynamic instance creation process, the computing device only displays the total amount of idle computing resources in each available zone. The total amount of idle computing resources in the available zone is often provided by multiple hosts in the available zone. Therefore, when the total amount of idle computing resources is relatively scattered on multiple hosts, the computing device will provide the smaller idle computing resources that can be provided on each host to the user to create the required spot instance. However, in actual applications, if the computing resources purchased by the spot instance created by the user are distributed on different hosts, there may be problems such as inconvenience in reading the corresponding host memory when using these computing resources to perform computing tasks. Therefore, in order to facilitate the use and management of computing resources, users are more willing to choose the same host to provide the computing resources required to create a spot instance. Therefore, the computing device only displays the total amount of idle computing resources in each available zone, and cannot guarantee that the computing resources purchased by the user through the spot instance are provided by one host.
[0005] When computing devices provide computing resources on different hosts based on users' needs to create spot instances, users may repeatedly cancel the creation and reselect other availability zones where spot instances can be created, which increases the creation waiting time and deteriorates the user's experience of purchasing or using cloud computing resources. Summary of the invention
[0006] The embodiments of the present application provide a resource management method, platform, computing device and computer-readable medium, which can provide users with centralized computing resources to facilitate users to use and manage computing resources. At the same time, it reduces the waiting time when users create response specification instances, and improves the user experience.
[0007] In a first aspect, an embodiment of the present application provides a resource management method, the method comprising: a cloud management platform receives a resource acquisition request sent by a user device, wherein the resource acquisition request is used to request computing resources managed by the cloud management platform; in response to the resource acquisition request, the cloud management platform displays a predicted value of the amount that can be created and a predicted value of the interruption rate that respectively correspond to the first type of instance of the specification required by the user in at least one availability zone at the current moment; the cloud management platform receives an operation request from the user to select the first availability zone, creates the first type of instance of the specification required by the user in the first availability zone, and provides the user with a first idle computing resource in the first availability zone.
[0008] It is understandable that the first type of instance mentioned above may be a dynamic instance. Based on the resource acquisition request sent by the user device, the cloud management platform may display multiple availability zones that meet the creation requirements of dynamic instances of the specifications required by the user. The user may select one of the availability zones as the first availability zone based on the predicted values of the amount that can be created and the predicted values of the interruption rate corresponding to the above multiple availability zones. In some embodiments, the first availability zone may be the availability zone with the largest predicted value of the amount that can be created and / or the lowest predicted value of the interruption rate among the above multiple availability zones.
[0009] In other embodiments, the cloud management platform can also automatically select the above-mentioned available zone for providing the computing resources required by the user. In this way, the resource management method provided by the present application can facilitate users to more intuitively see the number distribution of dynamic instances that can be created and the corresponding interruption rate corresponding to the idle computing resources managed by the cloud management platform, so that users can make choices more quickly and objectively.
[0010] In a possible implementation of the first aspect above, the method also includes: the cloud management platform displays the predicted value of the creatable quantity and the predicted value of the interruption rate corresponding to the creation of the first type of instance in at least one availability zone at the current moment, including: determining a first type of instance of the first specification that matches the specification required by the user; determining the predicted value of the creatable quantity of the first type of instance corresponding to the first specification from the first type of creatable quantity corresponding to the first type of instances of different specifications predicted at the current moment, and determining the predicted value of the interruption rate corresponding to the first type of instance of the first specification from the first type of interruption rates corresponding to the first type of instances of different specifications predicted at the current moment; and displaying the predicted value of the creatable quantity and the predicted value of the interruption rate.
[0011] In a possible implementation of the first aspect above, the method also includes: the cloud management platform predicts the first type of creatable quantity in the following manner: obtaining historical data on the creation of first type instances and second type instances in at least one availability zone, and idle state information corresponding to each host in at least one availability zone at the current moment, wherein the priority of the second type instances for obtaining computing resources is higher than the priority of the first type instances for obtaining computing resources, and the historical data includes at least the historical creation quantity corresponding to first type instances of different specifications, the number of second type instances created or deleted at the corresponding moment, and the number of corresponding first type instance operation interruptions caused; the idle state information includes one or more of the idle computing resource margin, idle memory resource margin or computing resource utilization that each host in at least one availability zone can provide at the current moment; based on the historical data and idle state information, the first type of creatable quantity and the first type of interruption rate are calculated.
[0012] The second dynamic instance may be a common instance. When the computing resources provided by the cloud management platform are insufficient, the dynamic instance with a lower bid may be deleted from the created dynamic instances, thereby releasing its computing resources to other instances with higher prices, such as the common instance, which will cause the operation of the corresponding dynamic instance to be interrupted.
[0013] In a possible implementation of the first aspect above, the method above also includes: the first type of creatable quantity includes a first creatable quantity corresponding to the first type of instance of the first specification, wherein the first creatable quantity is the sum of the creatable quantities of the first type of instance of the first specification corresponding to each host in the first availability zone.
[0014] It can be understood that the cloud management platform can determine the historical idle computing resources on each host in at least one availability zone based on the above historical data. Furthermore, combined with the idle computing resource margin that each host can provide at the current moment, the future idle resource amount of each host is obtained. The future idle resource amount of each host is then converted into the number of dynamic instances obtained by simulating the creation of dynamic instances of various specifications, that is, the creatable amount of dynamic instances of the corresponding specifications is based on the sum of the corresponding values of the simulated creation amount, and the creatable amount statistical value is determined. Among them, the creatable amount statistical value corresponds to the first type of creatable amount mentioned above.
[0015] In a possible implementation of the first aspect above, the method also includes: calculating the first type of creatable quantity based on historical data and idle status information, including: determining the second creatable quantity corresponding to the first type of instances of the first specification created on each host in at least one availability zone at the corresponding moment based on the historical creation quantity corresponding to the first type of instances of the first specification and the number of second type instances created or deleted at the corresponding moment; predicting the first creatable quantity of the first type of instances of the first specification in each availability zone at the current moment based on the sum of the second creatable quantities in each availability zone and the idle status information.
[0016] In a possible implementation of the first aspect above, the method also includes: the first type of interruption rate includes a first interruption rate corresponding to the first type of instance of the first specification, wherein the first interruption rate is determined in the following manner: according to the historical creation volume corresponding to the first type of instance of the first specification and the number of operation interruptions of the first type of instance caused by creating or deleting the second type of instance at the corresponding moment, the historical interruption rate at the corresponding moment is calculated and determined; according to the historical interruption rate and idle state information, the first interruption rate corresponding to the first type of instance of the first specification in each available zone at the current moment is predicted.
[0017] It can be understood that the calculation process of the above-mentioned first type of interruption rate can be: the cloud management platform calculates the ratio of the number of dynamic instances of different specifications interrupted due to the creation of ordinary instances in each host in at least one availability zone to the total number of dynamic instances of the corresponding specifications created in one or more periods of time, and uses the ratio as the historical interruption rate of the dynamic instances on each host. Then, based on the above-mentioned historical interruption rate, predict the interruption rate of the computing resources purchased using the corresponding dynamic instance to perform computing tasks in a certain time period or multiple time periods in the future. Then, the average value or mode value of the predicted interruption rate is used as the above-mentioned first type of interruption rate.
[0018] In a possible implementation of the first aspect above, the method also includes: at least one availability zone also includes a second availability zone, and the cloud management platform displays the predicted value of the creatable quantity and the predicted value of the interruption rate corresponding to the first type of instance of the specification required by the user created in at least one availability zone at the current moment, including: detecting that the third creatable quantity corresponding to the first type of instance of the specification required by the user created in the second availability zone is less than the first creatable quantity; and displaying the first availability zone above or before the second availability zone.
[0019] It is understandable that the cloud management platform may sort the at least one availability zone mentioned above from large to small according to the corresponding creation prediction value, and may also mark some recommendation marks for the availability zone with a larger creation prediction value.
[0020] In a possible implementation of the first aspect above, the method also includes: the cloud management platform displays the predicted value of the creatable quantity and the predicted value of the interruption rate corresponding to the first type of instance of the specification required by the user in at least one availability zone at the current moment, including: detecting that the second interruption rate corresponding to the first type of instance of the specification required by the user in the second availability zone is lower than the first interruption rate; and displaying the first availability zone above or before the second availability zone.
[0021] It is understandable that the cloud management platform may sort the at least one availability zone from low to high according to the corresponding predicted interruption rate value, and may also mark some recommendation marks for the availability zone with a lower predicted interruption rate value.
[0022] In a possible implementation of the first aspect above, the method also includes: creating a first type of instance of the specification required by the user in the first availability zone, including: determining a first host corresponding to the maximum score according to the scores corresponding to multiple hosts in the first availability zone, wherein the score is determined according to a third interruption rate corresponding to the creation of the first type of instance on the corresponding host; creating the first type of instance of the specification required by the user on the determined first host.
[0023] It is understandable that the cloud management platform can score multiple hosts in the first availability zone according to the third interruption rate. For example, the lower the third interruption rate corresponding to the creation of dynamic instances of the specifications required by the user on each host in the first availability zone, the higher the score of the corresponding host.
[0024] In other embodiments, multiple hosts in the first availability zone may be scored based on the first creatable quantity. For example, the larger the value of the first creatable quantity corresponding to the dynamic instance of the specification required by the user created on each host in the first availability zone, the higher the score of the corresponding host.
[0025] In the second aspect, an embodiment of the present application provides a cloud management platform, including: an ordering module, which is used for resource acquisition requests sent by user devices, wherein the resource acquisition requests are used to request computing resources managed by the cloud management platform; it is also used for the cloud management platform to display, in response to the resource acquisition requests, the predicted values of the amount that can be created and the predicted values of the interruption rate corresponding to the first type of instances of the specifications required by the user in at least one availability zone at the current moment; a submission module, which is used to receive an operation request from the user to select the first availability zone, create the first type of instances of the specifications required by the user in the first availability zone, and provide the user with the first idle computing resources in the first availability zone.
[0026] In a possible implementation of the second aspect above, the platform also includes: an availability zone recommendation module, used to determine a first type of instance of a first specification that matches the specification required by a user, and to determine a predicted value of the creatable quantity of the first type of instance corresponding to the first specification from the first type of creatable quantity corresponding to the first type of instance of different specifications predicted at the current moment, and to determine a predicted value of the interruption rate of the first type of instance corresponding to the first specification from the first type of interruption rate corresponding to the first type of instance of different specifications predicted at the current moment.
[0027] In a possible implementation of the second aspect above, the platform also includes: a dynamic instance management module, which is used to predict the first type of createable quantity and the first type of interruption rate based on the acquired historical data of creating the first type of instances and the second type of instances in at least one availability zone, and the idle status information corresponding to each host in at least one availability zone at the current moment.
[0028] In a possible implementation of the second aspect above, the platform also includes: a status collection module, used to obtain historical data of creating first-type instances and second-type instances in at least one availability zone, and idle status information corresponding to each host in at least one availability zone at the current moment.
[0029] In a possible implementation of the second aspect, the platform further includes: a scoring module, configured to score multiple hosts in the first availability zone and determine a first host corresponding to a maximum score.
[0030] In a possible implementation of the second aspect, creating a first type of instance with specifications required by a user in a first available zone includes: a submission module creating the first type of instance with specifications required by the user on a first host.
[0031] In a third aspect, an embodiment of the present application provides a computing device, comprising: one or more processors; one or more memories; one or more memories storing one or more programs, and when one or more programs are executed by one or more processors, the electronic device executes the above-mentioned resource management method.
[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored, and when the instructions are executed on a computer, the computer executes the above-mentioned resource management method.
[0033] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which implements the above-mentioned resource management method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1a According to an embodiment of the present application, a schematic diagram of an application scenario of purchasing an elastic cloud server is shown.
[0035] Figure 1b According to an embodiment of the present application, a schematic diagram of an application scenario of purchasing an elastic cloud server is shown.
[0036] Figure 1c According to an embodiment of the present application, a schematic diagram of a task creation failure interface is shown.
[0037] Figure 2a According to an embodiment of the present application, an example diagram of an existing dynamic instance creation interface is shown.
[0038] Figure 2b According to an embodiment of the present application, a distribution diagram of idle computing resources in an available zone is shown.
[0039] Figure 3 According to an embodiment of the present application, a structural diagram of a cloud management platform is shown.
[0040] Figure 4 According to an embodiment of the present application, a structural diagram of another cloud management platform is shown.
[0041] Figure 5 According to an embodiment of the present application, a schematic diagram of the interaction flow of various modules for implementing a resource management method is shown.
[0042] Figure 6a According to an embodiment of the present application, a schematic diagram of a dynamic instance basic configuration interface is shown.
[0043] Figure 6b According to an embodiment of the present application, a schematic diagram of a dynamic instance network configuration interface is shown.
[0044] Figure 6c According to an embodiment of the present application, a schematic diagram of a dynamic instance advanced configuration interface is shown.
[0045] Figure 6d According to an embodiment of the present application, a schematic diagram of a dynamic instance information confirmation interface is shown.
[0046] Figure 7a According to an embodiment of the present application, a schematic diagram of another dynamic instance creation interface is shown.
[0047] Figure 7b According to an embodiment of the present application, a schematic diagram of a task creation success interface is shown.
[0048] Figure 8 According to an embodiment of the present application, a flow chart of an implementation of a resource management method is shown.
[0049] Fig. 9 According to an embodiment of the present application, a structural diagram of a server 20 is shown. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions provided by the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0051] For ease of understanding, the above-mentioned on-demand instances and reserved instances and the same type of methods of selling computing resources are referred to as "ordinary instances" below, and spot instances and the same type of methods of selling computing resources are referred to as "dynamic instances" below.
[0052] Figure 1a According to an embodiment of the present application, a schematic diagram of an application scenario of purchasing an elastic cloud server is shown.
[0053] like Figure 1a As shown, the scene includes an electronic device 10. The electronic device 10 displays an elastic cloud server sales interface 101. When a user needs to purchase an elastic cloud server, he can click a buy now button 102 on the elastic cloud server sales interface 101 displayed on the electronic device 10. At this time, the electronic device 10 can display Figure 1b The purchase settings interface 103 is shown.
[0054] Understandably, Figure 1b On the purchase setting interface 103 shown, the electronic device 10 provides a variety of cloud service instance operation strategies, and the user can choose the corresponding cloud service instance type according to their own needs to purchase cloud computing resources. For example, the user selects the computing mode as bidding computing, and the bidding type is the bidding mode, which is the dynamic instance described in this application. The user can select the availability zone for creating the required dynamic instance on the display interface of the electronic device 10. However, when the idle computing resources of the required dynamic instance in the availability zone selected by the user are insufficient, the dynamic instance creation will fail. In some embodiments, when the resources of the dynamic instance are insufficient, the electronic device 10 may frequently pop up the creation failure interface, refer to Figure 1c The task creation failure interface 104 is shown.
[0055] Therefore, in the existing dynamic instance creation process, when the user Figure 1b After selecting the instance type to be purchased in the purchase setting interface 103 shown in FIG. Figure 2a The dynamic instance creation interface 201 is shown.
[0056] Understandably, Figure 2a The dynamic instance creation interface 201 shown in the figure mainly includes parameter information 202 of the virtual machine for creating the dynamic instance, a historical price line chart 203, and multiple available zone information boxes 204. The parameter information 202 includes the name of the virtual machine, the number of vCPUs, the memory size, etc., such as aaa-bbb-cc, xvCPU, nGB shown in Figure 2. After filling in the creation requirements, the dynamic instance creation interface 201 will display the historical price information of the dynamic instance, refer to Figure 2a The historical price line chart 203 is shown. At the same time, multiple availability zone information boxes 204 are also displayed, which include the availability zone name, the total amount of idle computing resources in the availability zone (the remaining amount shown in the figure), the price of the availability zone, and the interruption rate. For example, availability zone 1, remaining amount: xvCPU, nGB, reference price: A, and interruption rate: ab%. It can be understood that the above-mentioned availability zone information boxes 204 can be sorted according to the total amount of idle computing resources (the remaining amount shown in the figure), and the user can select the availability zone with a larger total amount of idle computing resources on the creation page according to their own needs to create the required dynamic instance.
[0057] However, in the existing dynamic instance creation process, the computing device only displays the total amount of idle computing resources in each availability zone. The total amount of idle computing resources is often provided by one or more hosts in the availability zone. The distribution of the total amount of idle computing resources in the availability zone on the hosts in the availability zone can be as follows: Figure 2b shown.
[0058] refer to Figure 2bAs shown in the availability zone 1 in , the total amount of idle computing resources in the availability zone 1 is composed of the idle computing resources in hosts 01 to 06 in the availability zone. For example, the computing resources corresponding to the dynamic instance required by the user are 4vCPUs, 8GB, and the purchase quantity is 2. Correspondingly, the idle computing resources of each host in the availability zone 1 include: the idle computing resources of host 01 are 2vCPUs, 2GB; the idle computing resources of host 02 are 2vCPUs, 4GB; the idle computing resources of host 03 are 2vCPUs, 4GB; the idle computing resources of host 04 are 2vCPUs, 6GB; the idle computing resources of host 05 are 0vCPUs, 0GB; the idle computing resources of host 06 are 0vCPUs, 0GB. Therefore, according to the idle computing resource distribution of each host in the availability zone 1 above, it can be known that the total amount of idle computing resources in the availability zone 1 is 8vCPUs, 16GB.
[0059] However, in actual applications, if the computing resources purchased by the spot instance created by the user are distributed on different hosts, there may be problems such as inconvenience in reading the memory of the corresponding host when using these computing resources to perform computing tasks. Therefore, in order to facilitate the use and management of computing resources, users are more willing to choose the same host to provide the computing resources required to create spot instances. Therefore, although the total amount of idle computing resources in Availability Zone 1 can meet the user's dynamic instance creation needs, the computing resources required by the user will be provided by different hosts. In this way, when the user uses these computing resources to perform computing tasks, it is necessary to configure additional interfaces to read the memory on different hosts, thereby increasing the user's management cost. Based on the above situation, the user may also cancel the creation of dynamic instances in Availability Zone 1 and reselect other availability zones to create the required dynamic instances. This will increase the creation waiting time and make the user's experience of purchasing or using cloud computing resources worse. Therefore, the computing device only displays the total amount of idle computing resources in each availability zone, and cannot guarantee that the user can create a dynamic instance on a host in the selected availability zone.
[0060] In order to solve the above problems, the present application provides a resource management method, which is applied to an elastic cloud service management platform or a computing device for running the platform. Specifically, the method uses the collected idle computing resources of each host in each available zone and the historical information of creating dynamic instances and ordinary instances on each host to predict the amount of dynamic instances of different specifications that can be created in each available zone, and the interruption rate of the computing resources purchased using the corresponding dynamic instances that may be interrupted during the execution of computing tasks. Based on this, the computing device can match one or more available zones that can meet the user's creation needs according to the received parameter information of the dynamic instance that the user wants to create. The matched available zones can be further displayed on the order interface for the user to select. In this way, the user can intuitively see the various available zones that can create dynamic instances of the required specifications, as well as the predicted values of the amount of dynamic instances that can be created and the predicted values of the interruption rate of each available zone for the required specifications on the order interface of the computing device, so as to facilitate the user to make a choice.
[0061] It can be understood that the idle computing resources of each host in each of the above-mentioned available zones can be obtained through status information such as the number of idle central processing units (CPUs) on each host, CPU utilization, and the total amount of remaining memory.
[0062] Among them, the above-mentioned prediction process of the amount of dynamic instances of different specifications that can be created in each available zone can be, for example, by analyzing the historical information of the creation or deletion of common instances and dynamic instances collected on the host. The historical information can, for example, include the resources occupied by the creation of common instances and dynamic instances on each host for one or more periods of time. For example, the amount of resources that can be used to create dynamic instances on each host in a certain time period or multiple time periods in the future can be predicted based on the above-mentioned historical information and the number of idle CPUs, CPU utilization, total remaining memory, network load, and currently created virtual machine information on each host. The amount of resources can be called the amount of idle resources of each host in the future prediction time period. Then, the future idle resource amount of each host is converted into the number of dynamic instances obtained by simulating the creation of dynamic instances of various specifications, that is, the amount of dynamic instances of the corresponding specifications that can be created. At this time, the amount of dynamic instances of different specifications corresponding to each host that can be created is added up, and the prediction result of the amount of dynamic instances of different specifications that can be created in the available zone can be obtained. The above prediction process can also be: statistics on the creation volume of dynamic instances of different specifications in each availability zone within one or more historical time periods, and then predict the creation volume corresponding to the required computing resources set by the computing device in the future for creating dynamic instances of different specifications in each availability zone.
[0063] The above-mentioned prediction process of the interruption rate can be, for example: counting the ratio of the number of dynamic instances interrupted due to common instance creation and hardware errors in each host in each available zone to the total number of dynamic instance creations within one or more periods of time, and taking the ratio as the historical interruption rate of the dynamic instances on each host. Then, based on the above-mentioned historical interruption rate, predict the interruption rate of computing tasks performed by computing resources purchased using corresponding dynamic instances in a certain time period or multiple time periods in the future. For example, in a certain period of history, the number of dynamic instances that can be created on a host in the available zone is a, and the corresponding statistical number of dynamic instances interrupted due to common instance creation and hardware errors is b, then the historical interruption rate corresponding to the creation of the above-mentioned dynamic instances on the host is "b*100% / a". Then, according to the prediction algorithm, predict the interruption rate corresponding to the creation of the above-mentioned dynamic instances on the host in a certain period of time in the future. Similarly, the interruption rate corresponding to the creation of dynamic instances of corresponding specifications on other hosts in the available zone in a certain period of time in the future can also be calculated by referring to the above-mentioned calculation process. At this point, the computing device can calculate the average historical interruption rate corresponding to each host in the availability zone, and then based on the calculated average value, it can predict the interruption rate corresponding to the dynamic instance of the corresponding specification created and run in the availability zone within a certain period of time in the future.
[0064] In some embodiments, the multiple availability zones matched above can also be sorted according to the predicted creatable quantity and / or interruption rate of dynamic instances of corresponding specifications, so as to facilitate users to select availability zones with sufficient creatable quantity or low interruption rate to create dynamic instances. For example, users can select the availability zone that can create the largest number of dynamic instances of the required specifications from the multiple availability zones displayed on the ordering interface, that is, the availability zone with the highest creatable quantity to create dynamic instances. Users can also select the availability zone with the lowest interruption rate from the multiple availability zones displayed on the ordering interface to create dynamic instances.
[0065] It can be understood that for a dynamic instance that has been created, the user can purchase the dynamic instance after confirmation to obtain the corresponding sold computing resources to perform computing tasks. Among the multiple availability zones displayed on the above ordering interface, some availability zones have a large amount of creatable capacity and a high cost-effectiveness, but the corresponding interruption rate may also be high. Other availability zones have a small amount of creatable capacity and a low cost-effectiveness, but the corresponding interruption rate may be low. Users can also make a comprehensive assessment of the matching degree between each availability zone and their own needs based on the predicted values of the creatable capacity and interruption rate corresponding to each availability zone displayed on the ordering interface to complete the selection. This is also conducive to improving the user's purchasing experience.
[0066] In some embodiments, the above order placement interface may also mark some recommendation marks for available areas with a large amount of creation or a low interruption rate. For example, a green recommendation mark or a recommendation mark of another color may be added to an available area with a large amount of creation, so that the user can quickly identify it, which is not limited here.
[0067] Accordingly, if the user selects an availability zone with a green recommendation mark, the user can further select one or more hosts in the selected availability zone for creating a dynamic instance of the required specifications. In other embodiments, the computing device can also automatically select the availability zone with a green recommendation mark for the user through the running cloud management platform, and automatically match one or more hosts in the availability zone that are currently suitable for creating a dynamic instance of the required specifications for the user. This helps save the user time in selecting availability zones and hosts, and also helps improve the user experience.
[0068] It is understandable that in other embodiments, the above-mentioned method for predicting the amount of dynamic instances of different specifications that can be created and the method for predicting the interruption rate can also be predicted in other ways different from the above-mentioned example methods, which are not limited here.
[0069] It can be understood that the computing resources sold corresponding to the dynamic instances created in the above-mentioned availability zones may be, for example, computing resources provided by virtual machines created through virtualization technology based on host resources. Among them, the virtual processors (vCPUs) used to provide computing resources on each virtual machine may be simulated through virtualization technology based on the processing power provided by the central processing unit (CPU) on the host. In addition, a host CPU may simulate multiple vCPUs.
[0070] Therefore, in the process of predicting the amount of dynamic instances that can be created and the interruption rate in each available zone, the host status information collected by the computing device may include the number of idle CPUs, CPU utilization, the total amount of remaining memory, the network load, and the current virtual machine list, etc., which are not limited here. In addition, the host history information collected by the computing device may include hardware error logs, historical records of creating or deleting ordinary instances or dynamic instances, etc. Among them, the historical records of creating or deleting ordinary instances or dynamic instances on each host may include the number of corresponding instances created within the corresponding historical time and the reason records for the corresponding instances being deleted. The reason record may, for example, be a record of the dynamic instance being deleted due to insufficient resources during the creation of an ordinary instance, or the dynamic instance being deleted due to a hardware error, or the dynamic instance being deleted due to the service time of the dynamic instance reaching a preset time.
[0071] Combine the following Figure 3 The structure of a cloud management platform for managing common instances or dynamic instance creation is shown, Figure 4 The structure of another cloud management platform implemented based on the resource management method provided by the present application is shown, and Figure 5 The implementation process of the resource management method shown in the figure specifically describes the detailed implementation process of the resource management method provided by this application.
[0072] Figure 3 A structural diagram of a cloud management platform is shown.
[0073] like Figure 3 As shown, the cloud management platform 300 may include a status collection module 310 , an order placement module 320 , a scoring module 330 , and a submission module 340 .
[0074] The status collection module 310 is used to interact with the host in each availability zone and regularly collect the status information of each host in each availability zone. For example, the status collection module 310 and the availability zones 1 to n in the figure regularly collect the status information of each host in the availability zones 1 to n.
[0075] The ordering module 320 is used to collect parameter information of the required dynamic instance input by the user and display the recommendation results for the available zones.
[0076] The scoring module 330 is used to score the host according to the status information of the host collected by the status collection module.
[0077] The submission module 340 is used to create a dynamic instance required by the user on the selected host.
[0078] In the process of managing cloud computing resources, the scoring module 330 can determine the availability zone based on the parameter information of the dynamic instance to be created input by the user, and then determine the host in the selected availability zone for creating the dynamic instance of the required specification. The ordering module 320 can display each availability zone on the ordering interface for the user to select.
[0079] but, Figure 3 The cloud management platform shown cannot provide users with the number of dynamic instances that can be created in an availability zone, so users cannot determine whether the selected availability zone meets the requirements for creating the required dynamic instances.
[0080] Based on the above Figure 3 The structure of the cloud management platform shown in the figure is as follows: Figure 4 A structural diagram of another cloud management platform is shown.
[0081] like Figure 4 As shown, the cloud management platform 400 may include a status collection module 410 , an ordering module 430 , a scoring module 450 , and a submission module 460 , and may also include a dynamic instance management module 420 and an availability zone recommendation module 440 .
[0082] Among them, the status collection module 410, the order module 430 and the submission module 460 are similar to the above Figure 3 The status collection module 310, order placement module 320, and submission module 340 shown in the figure are the same, and their functions can refer to the above Figure 3 The relevant description in will not be repeated here.
[0083] The availability zone recommendation module 440 is used to collect parameter information of the required dynamic instances input by the user according to the order module 430, and the dynamic instance management module 420 predicts the number of dynamic instances of different specifications that can be created in each availability zone, and the interruption rate of the computing resources purchased using the corresponding dynamic instances during the execution of computing tasks, and matches one or more availability zones that can meet the user's creation needs.
[0084] The dynamic instance management module 420 is used to predict the number of dynamic instances of different specifications that can be created in each availability zone, and the interruption rate of computing resources purchased using corresponding dynamic instances that may be interrupted during the execution of computing tasks.
[0085] The scoring module 450 is used to score the hosts in the selected availability zone according to the interruption rate corresponding to the creation of dynamic instances of corresponding specifications by each host in the selected availability zone predicted by the dynamic instance management module 420. In addition, the scoring module 450 is also used to automatically select the availability zone with the highest matching degree with the user's dynamic instance creation requirements from one or more availability zones matched by the availability zone recommendation module 440 that can meet the user's creation requirements, and automatically match the host currently suitable for creating the dynamic instance of the specification required by the user in the availability zone.
[0086] based on Figure 4 The structure diagram of the cloud management platform 400 is shown below. Figure 5 The specific implementation process of the resource management method provided by this application is introduced in detail.
[0087] Figure 5 According to the embodiment of the present application, a schematic diagram of the implementation process of a resource management method is shown. It can be understood that Figure 5 The illustrated process involves interactions among a status collection module 410 , a dynamic instance management module 420 , an order placement module 430 , an available zone recommendation module 440 , a scoring module 450 , and a submission module 460 .
[0088] Specifically, Figure 5 As shown, the implementation process includes the following steps:
[0089] 501: The status collection module 410 collects status information and historical data of each host in each available zone.
[0090] Exemplarily, the status collection module 410 regularly collects status information and historical information of each host in each available zone. The status information of the host at least includes the number of idle CPUs, CPU utilization, total remaining memory, network load, and current virtual machine list, and the historical data at least includes hardware error logs, historical records of creation and deletion of common instances or dynamic instances, etc.
[0091] It can be understood that the status collection module 410 collects the current status information and historical data of all hosts in each availability zone to provide data support to the dynamic instance management module 420 when predicting the creatable quantity and interruption rate of dynamic instances of different specifications in each availability zone.
[0092] 502: The dynamic instance management module 420 predicts the creatable quantity and interruption rate of dynamic instances of different specifications in each availability zone.
[0093] The above-mentioned interruption rate refers to the interruption rate at which the computing resources purchased using the corresponding dynamic instance may be interrupted during the execution of the computing task.
[0094] Exemplarily, the dynamic instance management module 420 predicts the number of dynamic instances of different specifications that can be created in each availability zone, as well as the interruption rate of the computing resources purchased using the corresponding dynamic instances during the execution of computing tasks, based on the status information of each host in each availability zone collected in step 501 and the historical data of creating dynamic instances and ordinary instances on each host.
[0095] Among them, the above-mentioned prediction process of the amount of dynamic instances of different specifications that can be created in each available zone can be, for example, by analyzing the historical information of the creation or deletion of common instances and dynamic instances collected on the host. The historical information can, for example, include the resources occupied by the creation of common instances and dynamic instances on each host for one or more periods of time. For example, the amount of resources that can be used to create dynamic instances on each host in a certain time period or multiple time periods in the future can be predicted based on the above-mentioned historical information and the number of idle CPUs, CPU utilization, total remaining memory, network load, and currently created virtual machine information on each host. The amount of resources can be called the amount of idle resources of each host in the future prediction time period. Then, the future idle resource amount of each host is converted into the number of dynamic instances obtained by simulating the creation of dynamic instances of various specifications, that is, the amount of dynamic instances of the corresponding specifications that can be created. At this time, the amount of dynamic instances of different specifications corresponding to each host that can be created is added up, and the prediction result of the amount of dynamic instances of different specifications that can be created in the available zone can be obtained. The above prediction process can also be: statistics on the creation volume of dynamic instances of different specifications in each availability zone within one or more historical time periods, and then predict the creation volume corresponding to the required computing resources set by the computing device in the future for creating dynamic instances of different specifications in each availability zone.
[0096] The above-mentioned prediction process of the interruption rate can be, for example: counting the ratio of the number of dynamic instances interrupted due to common instance creation and hardware errors in each host in each available zone to the total number of dynamic instance creations within one or more periods of time, and taking the ratio as the historical interruption rate of the dynamic instances on each host. Then, based on the above-mentioned historical interruption rate, predict the interruption rate of computing tasks performed by computing resources purchased using corresponding dynamic instances in a certain time period or multiple time periods in the future. For example, in a certain period of history, the number of dynamic instances that can be created on a host in the available zone is a, and the corresponding statistical number of dynamic instances interrupted due to common instance creation and hardware errors is b, then the historical interruption rate corresponding to the creation of the above-mentioned dynamic instances on the host is "b*100% / a". Then, according to the prediction algorithm, predict the interruption rate corresponding to the creation of the above-mentioned dynamic instances on the host in a certain period of time in the future. Similarly, the interruption rate corresponding to the creation of dynamic instances of corresponding specifications on other hosts in the available zone in a certain period of time in the future can also be calculated by referring to the above-mentioned calculation process. At this point, the computing device can calculate the average historical interruption rate corresponding to each host in the availability zone, and then based on the calculated average value, it can predict the interruption rate corresponding to the dynamic instance of the corresponding specification created and run in the availability zone within a certain period of time in the future.
[0097] It is understood that the above prediction algorithm can be, for example, a FBprophet (a time series prediction algorithm) time series model, etc., which is not limited here. In addition, by predicting the amount and interruption rate of dynamic instances of different specifications that can be created in each available zone, visual data information is provided to users, the success rate of dynamic instance creation is increased, and the user experience is improved.
[0098] 503: The dynamic instance management module 420 sends the predicted information such as the creatable quantity and the interruption rate to the available zone recommendation module 440.
[0099] Exemplarily, the dynamic instance management module 420 sends the predicted information such as the creatable quantity and interruption rate of dynamic instances of different specifications in each availability zone to the availability zone recommendation module 440 .
[0100] 504: The order module 430 collects parameter information of the dynamic instance required by the user.
[0101] Exemplarily, the order module 430 collects parameter information of the dynamic instance to be created, and the parameter information includes at least the specification of the dynamic instance to be created, the purchase quantity, the purchase memory size, the purchase duration, etc.
[0102] In some embodiments, the specific process of the order module 430 collecting the parameter information of the dynamic instance required by the user in the order interface can be, for example: the user Figure 6a The options in the basic configuration interface 601a shown in the figure complete the basic configuration of the parameter information. The user order interface 601a includes configuration steps 601, regional information 602, calculation mode 603, available zone recommendation module 604 bidding type 605, specification information 606, operation strategy 607, dynamic instance creatable quantity summary table 608 and purchase quantity and purchase duration buttons 609, etc. The user needs to select or fill in the parameter information corresponding to the dynamic instance required by the user according to the instructions of the above content. In some embodiments, the above-mentioned dynamic instance creatable quantity summary table 608 can be predicted before the user fills in the parameter information, or it can be predicted after the user fills in the parameter information, which is not limited here.
[0103] In some embodiments, after the user fills in the parameter information of the required dynamic instance, he or she also needs to configure the network configuration of the required dynamic instance, as well as advanced configuration information such as the login key. Figure 6b The instructions in the network configuration interface 601b shown in the figure complete the dynamic instance network configuration required by the user. The various configurations in the above network configuration can be default options or options selected by the user. For example, in the network selection item 610, the network selected by the user is "Xxxxxx", or it can be an automatically assigned IP address, which is not limited here. In addition, Figure 6bThe extended network card 611, security group 612, and security group example table 613 may all be default selections or may be determined by the user, and are not limited here.
[0104] In addition, users can also make some other related settings for dynamic instances. For example, users can set the method of logging in to the dynamic instance after successful creation. Figure 6c The cloud server name 614, login credentials 615, user name 616, and password 617 shown in the intermediate and advanced configuration interface 601c are set. Figure 6c Select specific login credentials according to the instructions of the relevant setting options, such as selecting password login and setting the password information for login. Correspondingly, the order placement interface also provides the user with an information confirmation interface, such as Figure 6d The information confirmation interface 601d is shown. The information confirmation interface 601d includes basic configuration 618, network configuration 619, advanced configuration 620, and purchase duration and purchase quantity selection buttons 609. Among them, the basic configuration 618 includes the region, computing mode, bidding type, available zone, and specification information of the virtual machine selected by the user, and the purchase duration and purchase quantity selection box 609 displays the purchase quantity and purchase duration selected by the user. The network configuration 619 includes network information, extended network card information, and security group information. The advanced configuration 620 includes the cloud server name, login credentials, and login password set by the user.
[0105] It can be understood that the user can confirm whether the parameter information and related setting information for creating the required dynamic instance shown in the information confirmation interface 601d are correct. When the user finds that the parameter information and related setting information of the required dynamic instance are wrong, the user can modify the information through the modification buttons of the basic configuration 618, network configuration 619 and advanced configuration 620, such as the button for modifying the pen shape in the figure. Finally, after confirming that the filled information is correct, the user clicks the Submit button.
[0106] It can be understood that when parameter information and related setting information are incorrectly selected, the user can promptly discover the error information through the confirmation interface 601d and take corresponding modification measures to ensure that the parameter information of the required dynamic instance is correct.
[0107] 505: the order placing module 430 sends the collected parameter information of the dynamic instance required by the user to the available zone recommendation module 440.
[0108] Exemplarily, the order placing module 430 sends the collected parameter information of the dynamic instance required by the user to the available zone recommendation module 440 .
[0109] 506: The availability zone recommendation module 440 matches the availability zone that meets the required dynamic instance creation requirements based on the received parameter information of the dynamic instance required by the user and the predicted creatable quantity and interruption rate of dynamic instances of different specifications in each availability zone.
[0110] Exemplarily, the availability zone recommendation module 440 matches one or more availability zones that meet the required dynamic instance creation requirements based on the received parameter information of the dynamic instances required by the user and the predicted creatable quantity and interruption rate of dynamic instances of different specifications in each availability zone.
[0111] 507: The available zone recommendation module 440 sends the matching result to the order placement module 430.
[0112] It can be understood that the availability zone recommendation module 440 sends the matching availability zone to the order module 430, as well as information such as the creatable quantity and interruption rate of the dynamic instance required by the user in the matching availability zone.
[0113] 508: The ordering module 430 displays the recommended availability zones and determines the availability zones that provide the required computing resources for the user.
[0114] Exemplarily, the order module 430 displays the recommended availability zones and determines the availability zones that provide the required computing resources for the user. The above matching availability zones can be displayed in the order interface of the order module 430 to facilitate user selection.
[0115] It is understandable that the ordering module 430 can determine the available zone for creating the required dynamic instance based on the user's selection result, or can determine the available zone for creating the required dynamic instance based on the selection result automatically selected for the user by the scoring module 450.
[0116] It is understood that when multiple available zones are matched, the order placing module 430 may also mark some recommendation marks for the available zones with a large amount of creation or a low interruption rate. For example, a green recommendation mark or a recommendation mark of another color may be added to the available zone with a large amount of creation, so that the user can quickly identify it, which is not limited here.
[0117] 509: The ordering module 430 sends the relevant information of the selected available zone to the scoring module 450.
[0118] Exemplarily, the determination result of the availability zone includes: the name of the availability zone and information such as the amount of dynamic instances required by the user that can be created and the interruption rate in the availability zone.
[0119] 510: The scoring module 450 scores all hosts in the selected availability zone and determines a host for creating a dynamic instance required by the user.
[0120] Exemplarily, after the user selects the determined availability zone, the scoring module 450 scores the hosts in the selected availability zone and determines the host for creating the dynamic instance required by the user.
[0121] It can be understood that in some embodiments, the scoring module 450 scores the hosts according to the interruption rate corresponding to the creation of dynamic instances of corresponding specifications by the hosts in the selected availability zone predicted by the dynamic instance management module 420. For example, the hosts with lower interruption rate corresponding to the creation of dynamic instances of the specifications required by the user have higher scores. In other embodiments, the hosts can also be scored according to the predicted number of dynamic instances required by the user that can be created on each host. For example, Figure 4 Take host a and host b as an example. The dynamic instance required by the user can be successfully created on both host a and host b. Execute step 502 to predict the number of dynamic instances that can be created on host a and host b. For example, the number of dynamic instances that can be created on host a is 32, and the number that can be created on host b is 8. It can be understood that the more dynamic instances that can be created on the host, the higher the score. Therefore, when scoring, the score of host a is higher than that of host b.
[0122] In some embodiments, all hosts in the selected availability zone are ranked, and hosts with higher scores are ranked higher. Figure 7a In the dynamic instance creation interface 701 shown, availability zone 1 is selected as the availability zone, and the ranking of all hosts in the availability zone is recorded in table 702. It can be seen from table 702 that the higher the host score, the higher the ranking, and the lower the interruption rate of the dynamic instance required by the user on the corresponding host or the more dynamic instances that can be created. The scoring module 450 can select one or more hosts with higher rankings to create the dynamic instance required by the user.
[0123] 511: The scoring module 450 sends the confirmation information of the host for creating the required dynamic instance to the submission module 460.
[0124] Exemplarily, the scoring module 450 sends the determination information of the host for creating the required dynamic instance to the submission module 460 .
[0125] 512: The submission module 460 creates the required dynamic instance on the selected host based on the received determination information.
[0126] Exemplarily, the submission module 460 creates the required dynamic instance on the selected host based on the received determination information.
[0127] It is understood that after the dynamic instance required by the user is successfully created, a successful creation feedback notification will pop up to the user, refer to Figure 7bThe task creation success interface 703 shown pops up a “Task creation success!” feedback notification.
[0128] It can be understood that in the present application, the dynamic instance management module 420 predicts the number of dynamic instances of different specifications that can be created in each availability zone, which can help users quickly determine the probability of successfully creating the dynamic instance required by the user in the selected availability zone, reducing the user's creation time and improving the success rate of creation. At the same time, the scoring module 450 can also automatically select the determined availability zone on behalf of the user, and determine the host for creating the dynamic instance required by the user in the selected availability zone, reducing the user's waiting time and user operations.
[0129] Combine the following Figure 8 The specific implementation process of a resource management method provided by this application is described in detail. Figure 8 According to the embodiment of the present application, a flowchart of a resource management method is shown. It can be understood that the execution subject of each step in the method can be an elastic cloud service management platform or a computing device used to run the platform. The specific structure of the management platform has been combined with Figure 4 This has been explained in detail above and will not be repeated here.
[0130] like Figure 8 As shown, the process includes the following steps:
[0131] 801: Regularly collect the current status and historical information of each host in each availability zone.
[0132] Exemplarily, the management platform regularly collects the current status information and historical information of each host in each availability zone, wherein the current status information at least includes the number of remaining CPUs, CPU utilization, total remaining memory, network load, and current virtual machine list, etc. The historical information at least includes hardware error logs, historical records of creation or deletion of common instances or dynamic instances, etc.
[0133] 802: Predict the number of dynamic instances of different specifications that can be created and the interruption rate in each availability zone.
[0134] It can be understood that step 802 can refer to the relevant description in the above step 502, and will not be repeated here.
[0135] 803: Collect parameter information of the dynamic instance required by the user.
[0136] It can be understood that the above parameter information at least includes the specifications of the dynamic instance to be created, the purchase quantity, the purchase memory size, the purchase duration, etc.
[0137] 804: Based on the received parameter information of the dynamic instance required by the user and the predicted creatable quantity and interruption rate of dynamic instances of different specifications in each availability zone, match the availability zone that meets the required dynamic instance creation requirements.
[0138] 805: Display the matching availability zones and determine the availability zone used to create the dynamic instance.
[0139] It is understood that when multiple availability zones are matched, some recommendation marks may be added to the availability zones with a large amount of creation or a low interruption rate. For example, a green recommendation mark or a recommendation mark of another color may be added to the availability zone with a large amount of creation, so that the user can quickly identify it, and there is no limitation here.
[0140] 806: Score all hosts in the selected availability zone.
[0141] It can be understood that step 806 can refer to the relevant description in the above step 510, and will not be repeated here.
[0142] 807: Based on the scoring result, determine a host for creating the dynamic instance required by the user, and create the dynamic instance on the selected host.
[0143] It can be understood that, according to the scoring result of step 806, a host for creating the dynamic instance required by the user is determined, and the dynamic instance is created on the selected host.
[0144] It is understood that the above-selected availability zone can be the availability zone with a green recommendation mark selected by the user in the ordering interface. In other embodiments, the above-mentioned availability zone with a green recommendation mark can also be automatically selected for the user by the running management platform, which is beneficial to saving the user time in selecting an availability zone and a host, and is also beneficial to improving the user's usage experience.
[0145] It can be understood that the present application also provides a server device for executing the resource management method provided by the present application. To facilitate understanding of the technical solution implemented by the present application, the hardware structure of the server 20 is introduced below.
[0146] further, Fig. 9 According to an embodiment of the present application, a schematic diagram of the structure of a server 20 is shown. Fig. 9 As shown, for executing the application provided Figure 8The server 20 of the resource management method shown may include one or more processors 201, system memory 202, non-volatile memory (NVM) 203, input / output (I / O) device 204, communication interface 205, and system control logic 206 for coupling the processor 201, system memory 202, non-volatile memory 203, communication interface 204 and input / output (I / O) device 205.
[0147] Wherein: Processor 201 may include one or more single-core or multi-core processors. In some embodiments, processor 201 may include any combination of general-purpose processors and special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, processor 201 may be used to execute the resource management method provided in this application.
[0148] The system memory 202 is a volatile memory, such as a random-access memory (RAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), etc. The system memory is used to temporarily store data and / or instructions. For example, in some embodiments, the system memory 202 can be used to store historical information of each host in the above-mentioned available area.
[0149] The non-volatile memory 203 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. In some embodiments, the non-volatile memory 203 may include any suitable non-volatile memory such as a flash memory and / or any suitable non-volatile storage device, such as a hard disk drive (HDD), a compact disc (CD), a digital versatile disc (DVD), a solid-state drive (SSD), etc. In some embodiments, the non-volatile memory 203 may also be a removable storage medium, such as a secure digital (SD) memory card, etc.
[0150] In particular, the system memory 202 and the non-volatile memory 203 may respectively include: a temporary copy and a permanent copy of the instruction 207. The instruction 207 may include: a program instruction that, when executed by at least one of the processors 201, enables the server 20 to implement the resource management method provided in each embodiment of the present application.
[0151] The input / output (I / O) device 204 may include a user interface to enable a user to interact with the server 20. For example, in some embodiments, the input / output (I / O) device 204 may include an output device such as a display for displaying an order page of an order module in the server 20, and may also include input devices such as a keyboard, a mouse, and a touch screen. Product developers may interact with the server 20 through the user interface and input devices such as a keyboard, a mouse, and a touch screen.
[0152] The communication interface 205 may include a transceiver for providing a wired or wireless communication interface for the server 20, thereby communicating with any other suitable device through one or more networks. In some embodiments, the communication interface 205 may be integrated into other components of the server 20, for example, the communication interface 205 may be integrated into the processor 101. In some embodiments, the server 20 may communicate with other devices through the communication interface 205.
[0153] System control logic 206 may include any suitable interface controller to provide any suitable interface with other modules of server 20. For example, in some embodiments, system control logic 206 may include one or more memory controllers to provide interfaces to system memory 202 and non-volatile memory 203.
[0154] In some embodiments, at least one of the processors 201 may be packaged together with the logic of one or more controllers for the system control logic 206 to form a system in package (SIP). In other embodiments, at least one of the processors 201 may also be integrated with the logic of one or more controllers for the system control logic 206 on the same chip to form a system-on-chip (SoC).
[0155] It can be understood that the server 20 can be any electronic device that can execute the resource management method provided in the present application, including but not limited to computers, servers, tablet computers, handheld computers, etc., and the embodiments of the present application are not limited thereto.
[0156] It is understood that the structure of the server 20 shown in the embodiment of the present application does not constitute a specific limitation on the server 20. In other embodiments of the present application, the server 20 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0157] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.
[0158] Program code may be applied to input instructions to perform the functions described herein and to generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0159] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0160] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including but not limited to floppy disks, optical disks, optical disks, read-only memories (CD-ROMS), magneto-optical disks, read-only memories (ROM), random access memories (RAM), erasable programmable read-only memories (EPROM), electrically erasable programmable read-only memories (EEPROM), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Accordingly, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
[0161] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0162] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.
[0163] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the resource management method provided by the present application, or instruct the computing device to execute the resource management method provided by the present application.
[0164] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0165] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.
[0166] The present application discloses also relates to a module for executing the operations in the text. The module can be constructed specifically for the required purpose or it can include a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program can be stored in a computer-readable medium, such as, but not limited to, any type of disk, including a floppy disk, an optical disk, a CD-ROM, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic or optical card, an application-specific integrated circuit (ASIC) or any type of medium suitable for storing electronic instructions, and each can be coupled to a computer system bus. In addition, the computer mentioned in the specification may include a single processor or may be an architecture involving multiple processors for increased computing power.
[0167] It is understood that references to "one embodiment" or "embodiment" in the specification mean that the specific features, structures, or characteristics described in conjunction with the embodiment are included in at least one exemplary implementation or technology disclosed in the present application. The appearance of the phrase "in one embodiment" in various places in the specification does not necessarily all refer to the same embodiment.
[0168] Additionally, the language used in this specification has been primarily selected for readability and instructional purposes and may not have been selected to delineate or limit the disclosed subject matter.Accordingly, this disclosure is intended to illustrate but not to limit the scope of the concepts discussed herein.
Claims
1. A resource management method, It is characterized in that include: The cloud management platform receives a resource acquisition request sent by a user device, wherein the resource acquisition request is used to request computing resources managed by the cloud management platform; In response to the resource acquisition request, the cloud management platform displays the predicted value of the amount that can be created and the predicted value of the interruption rate that respectively correspond to the first type of instances of the specification required by the user in at least one available zone at the current moment; The cloud management platform receives an operation request from a user to select a first availability zone, and creates a first type of instance of the specification required by the user in the first availability zone to provide the user with a first idle computing resource in the first availability zone.
2. The method according to claim 1, It is characterized in that The cloud management platform displays the predicted values of the creatable quantity and the predicted values of the interruption rate corresponding to the creation of the first type of instances in at least one available zone at the current moment, including: determining a first class of instances of a first specification matching a specification required by a user; Determine a predicted value of the creatable quantity of the first type of instances corresponding to the first specification from the first type of creatable quantities corresponding to the first type of instances of different specifications that have been predicted at the current moment, and, Determine a predicted value of the interruption rate of the first type of instance corresponding to the first type of instance of ... The predicted value of the amount that can be created and the predicted value of the interruption rate are displayed.
3. The method according to claim 2, It is characterized in that The cloud management platform predicts the first category of creatable quantity in the following manner: Acquire historical data of creating first-type instances and second-type instances in the at least one availability zone, and idle state information corresponding to each host in the at least one availability zone at the current moment, wherein the priority of the second-type instances for acquiring computing resources is higher than the priority of the first-type instances for acquiring computing resources, and, The historical data at least includes the historical creation quantity corresponding to the first type instances of different specifications, the quantity of the second type instances created or deleted at the corresponding time, and the quantity of the operation interruption of the first type instances caused by the corresponding operation; the idle state information includes one or more of the idle computing resource margin, idle memory resource margin or computing resource utilization rate that each host in the at least one available zone can provide at the current time; Based on the historical data and the idle state information, the first-category creatable quantity and the first-category interruption rate are calculated.
4. The method according to claim 3, It is characterized in that The first type of creatable quantity includes a first type of creatable quantity corresponding to the first specification, wherein: The first creatable quantity is the sum of the creatable quantities of the first type of instances of the first specification on each host in the first availability zone.
5. The method according to claim 4, It is characterized in that The calculating the first category of creatable quantity based on the historical data and the idle state information includes: Determine, based on the historical creation quantity corresponding to the first type of instances of the first specification and the quantity of the second type of instances created or deleted at the corresponding moment, a second creatable quantity corresponding to the first type of instances of the first specification created on each host in the at least one availability zone at the corresponding moment; The first creatable quantity of the first type of instances of the first specification in each availability zone at the current moment is predicted according to the sum of the second creatable quantities in each availability zone and the idle state information.
6. The method according to claim 3, It is characterized in that The first type of interruption rate includes a first interruption rate corresponding to a first type of instance of the first specification, wherein the first interruption rate is determined in the following manner: Calculate and determine the historical interruption rate at a corresponding moment according to the historical creation quantity of the first type of instances of the first specification and the number of operation interruptions of the first type of instances caused by the creation or deletion of the second type of instances at a corresponding moment; A first interruption rate corresponding to the first type of instance of the first specification in each available zone at a current moment is predicted according to the historical interruption rate and the idle state information.
7. The method according to claim 6, It is characterized in that The at least one availability zone also includes a second availability zone, and, The cloud management platform displays the predicted values of the creatable quantity and the predicted values of the interruption rate corresponding to the first type of instances with the specifications required by the user created in at least one available zone at the current moment, including: It is detected that a third creatable quantity corresponding to the first type of instances with the specifications required by the user created in the second availability zone is smaller than the first creatable quantity; The first available area is displayed above or before the second available area.
8. The method according to claim 7, It is characterized in that The cloud management platform displays the predicted values of the creatable quantity and the predicted values of the interruption rate corresponding to the first type of instances with the specifications required by the user created in at least one available zone at the current moment, including: It is detected that a second interruption rate corresponding to the first type of instance with the specification required by the user created in the second availability zone is lower than the first interruption rate; The first available area is displayed above or before the second available area.
9. The method according to any one of claims 1 to 8, It is characterized in that The step of creating a first type of instance with a specification required by the user in the first available zone includes: Determine, according to scores corresponding to a plurality of hosts in the first availability zone, a first host corresponding to a maximum score, wherein the score is determined according to a third interruption rate corresponding to the creation of the first type of instance on the corresponding host; A first type instance of the specification required by the user is created on the determined first host.
10. A cloud management platform, It is characterized in that The platform includes: An ordering module, used for receiving a resource acquisition request sent by a user device, wherein the resource acquisition request is used to request computing resources managed by a cloud management platform; The order placing module is further used to respond to the resource acquisition request and display the predicted value of the amount that can be created and the predicted value of the interruption rate that respectively correspond to the first type of instance of the specification required by the user in at least one available zone at the current moment; The submission module is used to create a first type of instance of the specification required by the user in the first availability zone according to the received operation request of the user selecting the first availability zone, so as to provide the user with a first idle computing resource in the first availability zone.
11. The platform according to claim 10, It is characterized in that The platform also includes: The available zone recommendation module is used to determine a first type of instance of a first specification that matches the specification required by the user, and determine a predicted value of the creatable quantity of the first type of instance corresponding to the first specification from the predicted creatable quantities of the first type of instances corresponding to different specifications at the current moment, and, The method is used to determine a predicted value of the interruption rate of the first type of instance corresponding to the first specification from the first type of interruption rates corresponding to the first type of instances of different specifications predicted at the current moment.
12. The platform according to claim 10, It is characterized in that The platform also includes: A dynamic instance management module is used to predict the first type of creatable quantity and the first type of interruption rate based on the historical data of creating the first type of instances and the second type of instances in the at least one availability zone and the idle state information corresponding to each host in the at least one availability zone at a current moment.
13. The platform according to claim 10, It is characterized in that The platform also includes: The status collection module is used to obtain historical data of creating first-type instances and second-type instances in the at least one available zone, and idle status information corresponding to each host in the at least one available zone at a current moment.
14. The platform according to claim 10, It is characterized in that The platform also includes: The scoring module is used to score multiple hosts in the first available zone and determine a first host corresponding to a maximum score.
15. A platform according to any one of claims 10 to 14, It is characterized in that The step of creating a first type of instance with a specification required by the user in the first available zone includes: The submission module creates a first type instance of the specification required by the user on the first host.
16. A computing device, It is characterized in that include: one or more processors; One or more memories; the one or more memories store one or more programs, and when the one or more programs are executed by the one or more processors, the computing device executes the resource management method according to any one of claims 1 to 9.
17. A computer readable medium, It is characterized in that The readable medium stores instructions, which, when executed on a computer, enable the computer to execute the resource management method according to any one of claims 1 to 9.
