Virtual machine capacity resource control methods, devices, storage media and electronic devices

By acquiring business data information of virtual machines, determining their role categories, and adjusting capacity resources, the problem of virtual machine resource waste in cloud servers is solved, and resource utilization and allocation efficiency are improved.

CN117093318BActive Publication Date: 2026-11-17CHINA TELECOM CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210520010.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-12
Publication Date
2026-11-17
Estimated Expiration
2042-05-12

AI Technical Summary

Technical Problem

Virtual machines in cloud servers cannot accurately estimate capacity requirements, leading to resource waste and low capacity utilization.

Method used

By acquiring business data information of virtual machines, their role categories are determined, and capacity resource regulation is carried out based on role categories, including time-series clustering and whitelist management for scaling down.

Benefits of technology

It improves the utilization rate of cloud server capacity resources, avoids the waste of virtual machines over-applying for resources to ensure normal business operations, and improves the efficiency and stability of resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117093318B_ABST
    Figure CN117093318B_ABST
Patent Text Reader

Abstract

This disclosure provides a method, apparatus, storage medium, and electronic device for virtual machine capacity resource regulation, relating to the field of cloud server technology. The virtual machine capacity resource regulation method first acquires the business data information of each virtual machine in the cloud server; wherein, the business data information refers to the configuration parameter information required by the virtual machine when executing business; determines the role category of each virtual machine based on the business data information; determines the capacity requirement of each virtual machine based on the role category; and regulates the capacity resources of the corresponding virtual machine based on the capacity requirements. This solves the problem of low utilization of cloud server capacity resources and achieves the technical effect of improving the utilization rate of cloud server capacity resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of cloud server technology, and in particular to a method, apparatus, storage medium and electronic device for virtual machine capacity resource regulation. Background Technology

[0002] Elastic Compute Service (ECS) is a simple, efficient, secure, reliable computing service with elastic scalability. Users can quickly create or release any number of virtual machines without purchasing hardware in advance. Its management is simpler and more efficient than that of physical servers, and therefore it is widely used in various industries.

[0003] In practical applications, cloud servers require reasonable allocation of capacity resources among virtual machines. This typically involves each virtual machine submitting a request for capacity before allocation. Since virtual machines cannot accurately predict their own capacity needs, they often request more capacity resources than their own operations require, leading to a waste of cloud server capacity resources.

[0004] Therefore, the utilization rate of cloud server capacity resources is currently low. Summary of the Invention

[0005] This disclosure provides a method, apparatus, storage medium, and electronic device for regulating virtual machine capacity resources, thereby improving the capacity resource utilization of cloud servers.

[0006] In a first aspect, one embodiment of this disclosure provides a method for regulating virtual machine capacity resources, including:

[0007] Obtain business data information of each virtual machine in the cloud server; where business data information refers to the configuration parameter information required by the virtual machine when executing business.

[0008] Determine the role category of each virtual machine based on business data information;

[0009] The capacity requirements of each virtual machine are determined based on the role category, and the capacity resources of the corresponding virtual machines are adjusted based on the capacity requirements.

[0010] In one optional embodiment of this disclosure, the role category of each virtual machine is determined based on business data information, including:

[0011] Based on business data information, time-series clustering is performed on each virtual machine to obtain multiple cluster sets;

[0012] For each cluster set, based on whether each virtual machine executes the business corresponding to the cluster set, each virtual machine in the cluster set is divided into at least two category subsets; wherein, the category subsets include at least a task category subset and a non-task category subset;

[0013] For each virtual machine, the role category of the virtual machine is determined based on the category of the subset of categories to which the virtual machine belongs.

[0014] In one optional embodiment of this disclosure, the cluster set includes at least one of: processor utilization set, traffic data set, memory data set, and disk data set.

[0015] In an optional embodiment of this disclosure, the cluster set includes at least: a processor utilization set and a traffic data set. The role category of the virtual machine is determined based on the category of the subset to which the virtual machine belongs, including:

[0016] If a virtual machine belongs to a task category subset within the processor utilization set and also belongs to a task category subset within the traffic data set, then the virtual machine is identified as a traffic interface machine.

[0017] In an optional embodiment of this disclosure, the cluster set includes at least: a processor utilization set and a disk data set. The role category of the virtual machine is determined based on the category of the subset to which the virtual machine belongs, including:

[0018] If the virtual machine belongs to a subset of task categories in the processor utilization set and a subset of task categories in the disk data set, then the virtual machine is identified as the disk read / write interface.

[0019] In an optional embodiment of this disclosure, the cluster set includes at least: a traffic data set and a disk data set. The role category of the virtual machine is determined based on the category of the subset to which the virtual machine belongs, including:

[0020] If the virtual machine belongs to both the task category subset of the traffic data set and the task category subset of the disk data set, then the virtual machine is identified as a traffic process machine.

[0021] In one optional embodiment of this disclosure, if the current capacity resources of the cloud server are insufficient, the capacity requirements of each virtual machine are determined according to the role category, and capacity resource adjustment is performed on the corresponding virtual machines based on each capacity requirement, including:

[0022] Determine whether the character category belongs to the pre-configured whitelist for reduced size;

[0023] If the role category belongs to the scaling-down whitelist, then the virtual machine will be adjusted for other capacity resources besides scaling-down based on the pre-configured preset capacity requirements corresponding to the role category.

[0024] If the role category is not in the scaling-down whitelist, then the virtual machine corresponding to the role category will be scaled down.

[0025] Secondly, one embodiment of this disclosure provides a virtual machine capacity resource regulation device, the device comprising:

[0026] The acquisition module is used to acquire business data information of each virtual machine in the cloud server; among which, business data information refers to the configuration parameter information required by the virtual machine when executing business.

[0027] The first determination module is used to determine the role category of each virtual machine based on business data information;

[0028] The second determination module is used to determine the capacity requirements of each virtual machine according to the role category, and to adjust the capacity resources of the corresponding virtual machines based on the capacity requirements.

[0029] Thirdly, one embodiment of this disclosure provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the method described above.

[0030] Fourthly, one embodiment of this disclosure provides an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the above-described method by executing the executable instructions.

[0031] The technical solution disclosed herein has the following beneficial effects:

[0032] The above-mentioned virtual machine capacity resource regulation method determines the capacity requirements of each virtual machine based on the role category, and finally regulates the capacity resources of the corresponding virtual machine based on the capacity requirements. This can avoid the situation in the traditional method where some virtual machines request more capacity resources in order to ensure the normal operation of their own business, thereby solving the technical problem of low utilization of cloud server capacity resources and achieving the technical effect of improving the utilization rate of virtual machine capacity resources.

[0033] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0034] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0035] Figure 1 This diagram illustrates an application scenario of a virtual machine capacity resource regulation method according to this exemplary embodiment.

[0036] Figure 2 This diagram illustrates a virtual machine capacity resource regulation method according to an exemplary embodiment.

[0037] Figure 3 This diagram illustrates a virtual machine capacity resource regulation method according to an exemplary embodiment.

[0038] Figure 4 This diagram illustrates a virtual machine capacity resource regulation method according to an exemplary embodiment.

[0039] Figure 5 This diagram illustrates the structure of a virtual machine capacity resource regulation device in this exemplary embodiment.

[0040] Figure 6 A schematic diagram of the structure of an electronic device in this exemplary embodiment is shown. Detailed Implementation

[0041] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this disclosure more comprehensive and complete, and to fully convey the concept of exemplary embodiments to those skilled in the art. The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a full understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced with one or more specific details omitted, or other methods, components, apparatus, steps, etc., can be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of this disclosure.

[0042] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0043] The flowchart shown in the attached diagram is merely an illustrative example and does not necessarily include all steps. For example, some steps may be broken down, while others may be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0044] In related technologies, Elastic Compute Service (ECS) is a simple, efficient, secure, reliable, and elastically scalable computing service. Users can quickly create or release any number of virtual machines without purchasing hardware in advance. Its management is simpler and more efficient than physical servers, and therefore it is widely used in various industries. In practical applications, cloud servers require reasonable allocation of capacity resources among virtual machines. Generally, each virtual machine in the cloud server submits a request for capacity before allocation. Because virtual machines cannot accurately predict their own capacity needs, they often request more capacity resources to ensure the normal operation of their own business, leading to a waste of cloud server capacity resources. Therefore, the utilization rate of cloud server capacity resources is currently low.

[0045] In view of the above problems, this disclosure provides a method for regulating virtual machine capacity resources to solve the technical problem of low utilization of cloud server capacity resources, thereby improving the utilization rate of virtual machine capacity resources. The following is a brief introduction to the application environment of the virtual machine capacity resource regulation method provided in this disclosure:

[0046] Please see Figure 1 The virtual machine capacity resource regulation method provided in this embodiment is applied to a cloud server system 10. The cloud server system includes multiple virtual machines 101 and a terminal server 102. Different virtual machines 101 are used to execute different services, generate capacity resource requests according to their own services, and send the capacity resource requests to the terminal server 102. The terminal server 102 is used to receive the capacity resource requests of each virtual machine 101 and to reasonably allocate capacity resources according to each capacity resource request to ensure the normal operation of each virtual machine 101.

[0047] The following example uses the aforementioned terminal server as the execution subject, illustrating how this virtual machine capacity resource allocation method is applied to the terminal server to allocate capacity resources to each virtual machine. Please refer to [link to relevant documentation]. Figure 2 The virtual machine capacity resource regulation method provided in this embodiment includes the following steps 201-203:

[0048] Step 201: The terminal server obtains the business data information of each virtual machine in the cloud server.

[0049] The business data information refers to the configuration parameters required by the virtual machine when executing business operations, such as the number of cores, memory size, number and size of network ports, disk capacity, type of business being executed, and execution time. Of course, this embodiment does not limit the type or specific content of the business data information and can be set according to actual circumstances. This business data information can be pre-set and stored on the terminal server by staff, or it can be reported to the terminal server by each virtual machine in real time or at regular intervals.

[0050] Step 202: The terminal server determines the role category of each virtual machine based on the business data information.

[0051] Role categories are used to characterize the type of business performed by a virtual machine, such as traffic business, disk business, memory business, CPU (central processing unit) business, etc. For example, if the business data information is traffic data, then the virtual machine is a traffic machine, etc. If the business data information is disk utilization, then the virtual machine is a disk or disk interface, etc., and so on. The terminal server determines the specific role category of each virtual machine.

[0052] Step 203: The terminal server determines the capacity requirements of each virtual machine according to the role category, and adjusts the capacity resources of the corresponding virtual machines based on the capacity requirements.

[0053] Virtual machines with different roles execute different services, and the capacity requirements for these services vary. For example, U-shield services require high real-time performance and therefore have a large capacity requirement. However, general storage services have lower real-time requirements and therefore lower capacity requirements per unit of time. For school or office building-related services, the capacity requirement may be higher during working hours and lower during non-working hours.

[0054] The embodiments disclosed herein determine the capacity requirements of each virtual machine based on the role category, and finally adjust the capacity resources of the corresponding virtual machines based on the capacity requirements. This avoids the situation in traditional methods where some virtual machines request more capacity resources in order to ensure the normal operation of their own business, thereby solving the technical problem of low utilization of cloud server capacity resources and achieving the technical effect of improving the utilization rate of virtual machine capacity resources.

[0055] Please see Figure 3 In an optional embodiment of this disclosure, step 202, where the terminal server determines the role category of each virtual machine based on business data information, includes the following steps 301-303:

[0056] Step 301: The terminal server performs time-series clustering on each virtual machine based on business data information to obtain multiple cluster sets.

[0057] For example, based on time-series clustering methods, all current virtual machines can be divided into sets such as processor utilization, traffic data, memory data, and disk data. This embodiment does not impose any limitations on the number or specific type of cluster sets; it only requires dividing all virtual machines into several cluster sets based on their business data information. It should be explained that virtual machines within the same cluster set have the same type of business data or business configuration parameter information. In other words, the business processes executed by the virtual machines within a cluster set are essentially the same or completely the same.

[0058] Step 302: For each cluster set, the terminal server divides each virtual machine in the cluster set into at least two category subsets according to whether each virtual machine executes the business corresponding to the cluster set.

[0059] The category subset includes at least a task category subset and a non-task category subset. Virtual machines in the task category subset execute the business corresponding to their respective cluster set, such as disk operations, memory operations, and CPU operations. Conversely, virtual machines in the non-task category subset do not execute the business corresponding to their respective cluster set. For example, regarding the processor utilization set, virtual machine 1 has a CPU utilization of 2% or lower. Because it has processor utilization data, it is classified into the processor utilization set. However, since its CPU utilization of 2% is almost zero, it means that CPU operations are not the primary task of this virtual machine, so it is marked as a non-task category and classified into the non-task subset. Similarly, virtual machine 2 has a CPU utilization of 45% or higher. Because it has processor utilization data, it is classified into the processor utilization set. Furthermore, its CPU utilization of 45% is relatively high, meaning that CPU operations are one of the primary tasks of this virtual machine, so it is marked as a task category and classified into the task category subset.

[0060] Step 303: For each virtual machine, the terminal server determines the role category of the virtual machine based on the category of the subset to which the virtual machine belongs.

[0061] The service categories and actual execution of virtual machines in each category subset are basically the same. However, a virtual machine may perform more than one service, such as simultaneously performing traffic services and disk services. Therefore, this embodiment of the disclosure determines the role category of the virtual machine based on the category subset to which the virtual machine belongs, so as to determine all types of services performed by the virtual machine to the greatest extent, thereby improving the reliability of the role category determined based on the category subset, further optimizing the allocation method of capacity resource regulation, maximizing the utilization rate of capacity resources, and improving the reliability of capacity resource regulation in this embodiment of the disclosure.

[0062] In one optional embodiment of this disclosure, the cluster set includes at least one of: processor utilization set, traffic data set, memory data set, and disk data set.

[0063] The clustering set in this embodiment includes at least one of the following: processor utilization set, traffic data set, memory data set, and disk data set. In other words, all virtual machines are divided into these four sets. These four sets comprehensively encompass the service types of each virtual machine. The server terminal can directly classify virtual machines into the corresponding sets based on their service data information through simple comparison, without needing to configure various partitioning models and corresponding complex algorithms. This method is simple and fast, saves computing resources, improves the efficiency of virtual machine clustering, and further improves the efficiency of capacity resource control. If the clustering set includes: processor utilization set, traffic data set, memory data set, and disk data set, the following situations may occur:

[0064] In the first scenario, if the aforementioned cluster set includes at least: a processor utilization set and a traffic data set, then step 303 above, where the terminal server determines the virtual machine's role category based on the category of the virtual machine's subset, includes the following step A:

[0065] Step A: If the virtual machine belongs to the task category subset in the processor utilization set and the virtual machine belongs to the task category subset in the traffic data set, the terminal server will identify the virtual machine as the traffic interface machine.

[0066] A traffic interface machine refers to a machine that standardizes data transmission between two or more systems. For example, it standardizes data sent from device 1 according to the requirements of device 2 before sending it to device 2. If a virtual machine belongs to both the task category subset within the processor utilization set and the task category subset within the traffic data set, it means that the virtual machine has high CPU utilization and performs both CPU and traffic data tasks, thus it is necessarily a traffic interface machine. By using the results of temporal clustering, the role category of a virtual machine can be quickly determined based on the category of its subset, without the need for complex analysis or algorithm comparison. This is convenient and fast, greatly improving the efficiency of determining the virtual machine role category and further enhancing the efficiency of the virtual machine capacity resource control method provided in this embodiment.

[0067] In the second scenario, if the aforementioned cluster set includes at least: a processor utilization set and a disk data set, then step 303 above, where the terminal server determines the virtual machine's role category based on the category of the virtual machine's subset, includes the following step B:

[0068] Step B: If the virtual machine belongs to the task category subset in the processor utilization set and the virtual machine belongs to the task category subset in the disk data set, the terminal server will identify the virtual machine as the disk read / write interface.

[0069] A disk read / write interface refers to a data channel for reading data from or writing data to a disk. If a virtual machine belongs to a task category subset within the processor utilization set and also belongs to a task category subset within the disk data set, then the virtual machine possesses both disk data and traffic data, and therefore must be a disk read / write interface. By using the results of temporal clustering, the role category of a virtual machine can be quickly determined based on the category of its subset, without the need for complex analysis or algorithm comparison. This convenience and speed significantly improve the efficiency of determining the virtual machine role category, further enhancing the efficiency of the virtual machine capacity resource control method provided in this embodiment.

[0070] In the third scenario, if the aforementioned cluster set includes at least: a traffic data set and a disk data set, then step 303 above, where the terminal server determines the virtual machine's role category based on the category of the virtual machine's subset, includes the following step C:

[0071] Step C: If the virtual machine belongs to the task category subset in the traffic data set and the virtual machine belongs to the task category subset in the disk data set, the terminal server will identify the virtual machine as a traffic process machine.

[0072] A flow process machine refers to a device that executes network traffic in the process layer. If a virtual machine belongs to both the task category subset of the flow data set and the task category subset of the disk data set, then the virtual machine possesses both disk data and flow data, and is therefore necessarily a flow process machine capable of using network traffic for the disk. By analyzing the results of temporal clustering, the role category of a virtual machine can be quickly determined based on the category of its subset, without requiring complex analysis or algorithm comparison. This convenience and speed significantly improve the efficiency of determining the role category of virtual machines, further enhancing the efficiency of the virtual machine capacity resource control method provided in this embodiment.

[0073] Please see Figure 4 In an optional embodiment of this disclosure, if the current capacity resources of the cloud server are insufficient, step 203 above, where the terminal server determines the capacity requirements of each virtual machine according to the role category and adjusts the capacity resources of the corresponding virtual machines based on each capacity requirement, includes the following steps 401-403:

[0074] Step 401: The terminal server determines whether the role category belongs to the pre-configured shrinkage whitelist.

[0075] For example, virtual machines performing critical business operations, such as traffic interface machines, should not be scaled down or even shut down even if they currently have sufficient capacity resources, in order to prioritize the transfer of corresponding capacity resources to other virtual machines with insufficient capacity resources. Therefore, this implementation configures a scaling-down whitelist to avoid this situation when performing scaling-down processing. However, it should be noted that this scaling-down whitelist can be configured according to the actual situation, and this embodiment does not impose specific limitations.

[0076] Step 402: If the role category belongs to the shrinkage whitelist, the terminal server will adjust the virtual machine's capacity resources other than shrinkage based on the pre-configured preset capacity requirements corresponding to the role category.

[0077] In other words, if the current role category is in the pre-set shrinkage whitelist, the terminal server will not shrink the virtual machine corresponding to that role category, but it can perform other capacity resource adjustment behaviors other than shrinkage, such as increasing the capacity of the virtual machine, dividing the capacity resource area, and transferring capacity resources from other virtual machines to the virtual machine.

[0078] Step 403: If the role category is not in the scaling-down whitelist, the terminal server will scale down the virtual machine corresponding to the role category.

[0079] If the role category is not on the scaling-down whitelist, it means that the virtual machine corresponding to the role category is a regular virtual machine and the business it executes is a regular business. Once the current capacity resources of the cloud server are insufficient, the terminal server can scale down the virtual machine corresponding to the role category to allocate capacity resources to other virtual machines with insufficient capacity resources.

[0080] This disclosure embodiment configures a scaling-down whitelist. Only when a role category is not on the scaling-down whitelist will the terminal server scale down the virtual machine corresponding to that role category. This avoids the problem of mistakenly shutting down virtual machines that are responsible for important business operations, thereby improving the stability and reliability of the cloud server system and further enhancing the stability and reliability of the virtual machine capacity resource control method provided in this disclosure embodiment.

[0081] Please see Figure 5 In order to implement the above-mentioned virtual machine capacity resource regulation method, one embodiment of this disclosure provides a virtual machine capacity resource regulation device 500. Figure 5 A schematic architecture diagram of the virtual machine capacity resource control device 500 is shown, including: an acquisition module 510, a first determination module 520, and a second determination module 530, wherein:

[0082] The acquisition module 510 is used to acquire business data information of each virtual machine in the cloud server; wherein, business data information refers to the configuration parameter information required by the virtual machine when executing business.

[0083] The first determining module 520 is used to determine the role category of each virtual machine based on business data information;

[0084] The second determining module 530 is used to determine the capacity requirements of each virtual machine according to the role category, and to adjust the capacity resources of the corresponding virtual machine based on each capacity requirement.

[0085] In an optional embodiment, the first determining module 520 is specifically used to: perform time-series clustering on each virtual machine based on business data information to obtain multiple cluster sets; for each cluster set, divide each virtual machine in the cluster set into at least two category subsets according to whether each virtual machine executes the business corresponding to the cluster set; wherein, the category subset includes at least a task category subset and a non-task category subset; for each virtual machine, determine the role category of the virtual machine according to the category of the category subset to which the virtual machine belongs.

[0086] In an optional embodiment, the cluster set includes at least one of the following: a processor utilization set, a traffic data set, a memory data set, and a disk data set.

[0087] In an optional embodiment, the cluster set includes at least a processor utilization set and a traffic data set. The first determining module 520 is specifically used to determine the virtual machine as a traffic interface machine if the virtual machine belongs to the task category subset in the processor utilization set and the virtual machine belongs to the task category subset in the traffic data set.

[0088] In an optional embodiment, the cluster set includes at least a processor utilization set and a disk data set. The first determining module 520 is specifically used to determine the virtual machine as a disk read / write interface if the virtual machine belongs to the task category subset in the processor utilization set and the virtual machine belongs to the task category subset in the disk data set.

[0089] In an optional embodiment, the cluster set includes at least a traffic data set and a disk data set. The first determining module 520 is specifically used to determine the virtual machine as a traffic process machine if the virtual machine belongs to the task category subset in the traffic data set and the virtual machine belongs to the task category subset in the disk data set.

[0090] In an optional embodiment, the second determining module 530 is specifically used to determine whether the role category belongs to a pre-configured scaling-down whitelist; if the role category belongs to the scaling-down whitelist, then the virtual machine is adjusted for other capacity resources besides scaling-down based on the pre-configured preset capacity requirements corresponding to the role category; if the role category does not belong to the scaling-down whitelist, then the virtual machine corresponding to the role category is scaled down.

[0091] Exemplary embodiments of this disclosure also provide a computer-readable storage medium that can be implemented as a program product including program code, which, when run on an electronic device, causes the electronic device to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of this disclosure. In one embodiment, the program product can be implemented as a portable compact disc read-only memory (CD-ROM) including program code and can run on an electronic device, such as a personal computer. However, the program product of this disclosure is not limited thereto. In this document, the readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0092] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0093] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.

[0094] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0095] Program code for performing the operations of this disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider). In embodiments of this disclosure, the program code stored in a computer-readable storage medium, when executed, can implement any step of the virtual machine capacity resource management method described above.

[0096] Please see Figure 6 Exemplary embodiments of this disclosure also provide an electronic device 600, which can be a backend server for an information platform. Reference is made below. Figure 6 This electronic device 600 will be described. It should be understood that... Figure 6 The electronic device 600 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0097] like Figure 6 As shown, the electronic device 600 is presented in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, and a bus 630 connecting different system components (including storage unit 620 and processing unit 610).

[0098] The storage unit stores program code, which can be executed by the processing unit 610 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of the present invention. For example, the processing unit 610 can perform actions such as... Figure 2 The methods and steps shown are as follows.

[0099] Storage unit 620 may include volatile storage units, such as random access memory (RAM) 621 and / or cache memory 622, and may further include read-only memory (ROM) 623.

[0100] Storage unit 620 may also include a program / utility 624 having a set (at least one) of program modules 625, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0101] Bus 630 may include a data bus, an address bus, and a control bus.

[0102] Electronic device 600 can also communicate with one or more external devices 2000 (e.g., keyboards, pointing devices, Bluetooth devices, etc.) via input / output (I / O) interface 640. Electronic device 600 can also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 650. As shown, network adapter 650 communicates with other modules of electronic device 600 via bus 630. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0103] In this embodiment of the disclosure, when the program code stored in the electronic device is executed, any step in the virtual machine capacity resource regulation method described above can be implemented.

[0104] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to exemplary embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0105] Those skilled in the art will understand that various aspects of this disclosure can be implemented as systems, methods, or program products. Therefore, various aspects of this disclosure can be embodied in entirely hardware implementations, entirely software implementations (including firmware, microcode, etc.), or implementations combining hardware and software aspects, collectively referred to herein as “circuit,” “module,” or “system.” Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.

[0106] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is defined only by the appended claims.

Claims

1. A method for regulating virtual machine capacity resources, characterized in that, include: Obtain business data information of each virtual machine in the cloud server; wherein, the business data information refers to the configuration parameter information required by the virtual machine when executing business; Determining the role category of each virtual machine based on the business data information includes: performing time-series clustering on each virtual machine based on the business data information to obtain multiple cluster sets; for each cluster set, dividing each virtual machine in the cluster set into at least two category subsets according to whether each virtual machine executes the business corresponding to the cluster set; wherein, the category subsets include at least a task category subset and a non-task category subset; for each virtual machine, determining the role category of the virtual machine according to the category of the category subset to which the virtual machine belongs; The capacity requirements of each virtual machine are determined according to the role category, and the capacity resources of the corresponding virtual machine are adjusted based on the capacity requirements.

2. The virtual machine capacity resource regulation method according to claim 1, characterized in that, The cluster set includes at least one of the following: processor utilization set, traffic data set, memory data set, and disk data set.

3. The virtual machine capacity resource regulation method according to claim 2, characterized in that, The cluster set includes at least: the processor utilization set and the traffic data set. Determining the role category of the virtual machine based on the category of the subset to which the virtual machine belongs includes: If the virtual machine belongs to the task category subset in the processor utilization set and the virtual machine belongs to the task category subset in the traffic data set, then the virtual machine is identified as a traffic interface machine.

4. The virtual machine capacity resource regulation method according to claim 2, characterized in that, The cluster set includes at least: the processor utilization set and the disk data set. Determining the role category of the virtual machine based on the category of the subset to which the virtual machine belongs includes: If the virtual machine belongs to a task category subset in the processor utilization set and the virtual machine belongs to a task category subset in the disk data set, then the virtual machine is identified as a disk read / write interface.

5. The virtual machine capacity resource regulation method according to claim 2, characterized in that, The cluster set includes at least the traffic data set and the disk data set. Determining the role category of the virtual machine based on the category of the subset to which the virtual machine belongs includes: If the virtual machine belongs to both the task category subset in the traffic data set and the task category subset in the disk data set, then the virtual machine is identified as a traffic process machine.

6. The virtual machine capacity resource regulation method according to claim 1, characterized in that, If the current capacity resources of the cloud server are insufficient, the step of determining the capacity requirements of each virtual machine according to the role category, and adjusting the capacity resources of the corresponding virtual machine based on the capacity requirements, includes: Determine whether the character category belongs to a pre-configured whitelist for scaling down; If the role category belongs to the scaling-down whitelist, then the virtual machine will be adjusted for other capacity resources besides scaling-down based on the pre-configured preset capacity requirements corresponding to the role category. If the role category is not in the scaling-down whitelist, then the virtual machine corresponding to the role category will be scaled down.

7. A virtual machine capacity resource regulation device, characterized in that, The device includes: The acquisition module is used to acquire business data information of each virtual machine in the cloud server; wherein, the business data information refers to the configuration parameter information required by the virtual machine when executing business. The first determining module is configured to determine the role category of each virtual machine based on the business data information, including: performing time-series clustering on each virtual machine based on the business data information to obtain multiple cluster sets; for each cluster set, dividing each virtual machine in the cluster set into at least two category subsets according to whether each virtual machine executes the business corresponding to the cluster set; wherein, the category subsets include at least a task category subset and a non-task category subset; for each virtual machine, determining the role category of the virtual machine according to the category of the category subset to which the virtual machine belongs; The second determining module is used to determine the capacity requirements of each virtual machine according to the role category, and to adjust the capacity resources of the corresponding virtual machine based on the capacity requirements.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1 to 6.

9. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the method of any one of claims 1 to 6 by executing the executable instructions.

Citation Information

Patent Citations

  • Resource scheduling method and device, and related equipment

    CN111176792A