Nothing Special   »   [go: up one dir, main page]

CN104539708B - A kind of capacity reduction method, device and the system of cloud platform resource - Google Patents

A kind of capacity reduction method, device and the system of cloud platform resource Download PDF

Info

Publication number
CN104539708B
CN104539708B CN201410848185.1A CN201410848185A CN104539708B CN 104539708 B CN104539708 B CN 104539708B CN 201410848185 A CN201410848185 A CN 201410848185A CN 104539708 B CN104539708 B CN 104539708B
Authority
CN
China
Prior art keywords
instances
virtual machine
target
deleting
target application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410848185.1A
Other languages
Chinese (zh)
Other versions
CN104539708A (en
Inventor
叶会
王提政
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Huawei Digital Technologies Co Ltd
Original Assignee
Hangzhou Huawei Digital Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Huawei Digital Technologies Co Ltd filed Critical Hangzhou Huawei Digital Technologies Co Ltd
Priority to CN201410848185.1A priority Critical patent/CN104539708B/en
Publication of CN104539708A publication Critical patent/CN104539708A/en
Application granted granted Critical
Publication of CN104539708B publication Critical patent/CN104539708B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiments of the invention provide a kind of capacity reduction method, device and the system of cloud platform resource.The example removal request to intended application in cloud platform is received, example removal request carries application identities and quantity identity, and quantity identity represents that the quantity for the example that intended application needs to delete is N;Target virtual machine is found out from cloud platform according to the mark of intended application, all target virtual machines all include the example of intended application;Obtain the species of application belonging to each example and the quantity of the example of every kind of application in target virtual machine;The species and the quantity of the example of every kind of application applied according to belonging to each example in target virtual machine, N number of example of the intended application is deleted in target virtual machine using default capacity reducing strategy.The present invention uses certain strategy, the possibility of free virtual machine occurs after increasing capacity reducing, while example is tried one's best and concentrate in several virtual machines of minority, to improve the utilization rate of resources of virtual machine, saves operation cost.

Description

Capacity reduction method, device and system for cloud platform resources
Technical Field
The invention relates to the technical field of communication, in particular to a method, a device and a system for capacity reduction of cloud platform resources.
Background
Cloud computing is a mode of delivery and use of services, which distributes computing tasks over a resource pool consisting of a large number of computers, enabling various application systems to acquire computing power, storage space, and information services as needed. The cloud computing is basically characterized in that resources are used according to needs, the resources can be dynamically expanded, the application elastic computing is adopted, and the resources are provided for application development users in a service mode through a network. In the cloud computing era, the cloud platform provides the software development platform as a service for application development users, the operation environment and operation maintenance work of the application are completed by the cloud platform, and the application development users only need to pay attention to the logic implementation of the application.
The instances are determined according to the instantaneous response speed of the virtual machines when the instances are started in the virtual machines, the response speed of each virtual machine is different due to different numbers and types of the running instances of each virtual machine, and for a single virtual machine, the response speeds of the same virtual machine in different periods are different due to different running instances and types of the virtual machine. The distribution of instances across virtual machines in a cloud platform is thus chaotic.
The elastic computing is one of basic characteristics of cloud computing, and means that an application development user flexibly uses computing resources according to actual business or computing needs, corresponding payment is carried out according to the amount of the virtual machine resources on a cloud platform, and on-demand use, on-demand delivery and on-demand payment are really realized. Therefore, when the access request to the application from the outside is reduced, in order to avoid resource waste and save the operation cost of an application provider, it is desirable to reduce the number of instances of the application to reduce the capacity of the virtual machine resources on the cloud platform, thereby realizing efficient utilization of the platform resources.
Currently, in the aspect of application capacity reduction of a cloud platform, there is no better capacity reduction strategy, and the existing capacity reduction technology is usually to delete instances of a target application from a late order to an early order in a virtual machine on the cloud platform by starting the instances of the target application.
Because the instances are randomly distributed on the virtual machines in the cloud platform, after the instances are deleted according to the starting time, the distribution of the instances in the virtual machines is scattered and unordered, the integration and distribution of the instances of the virtual machines are lack of planning and are not easy to concentrate, the probability of idle of the virtual machines is very low, especially when a large amount of external access is suddenly reduced, the scattered distribution of the instances wastes the unnecessary payment cost of cloud platform resources, and the capacity reduction integration of the virtual machine resources of the cloud platform cannot be effectively carried out, so that the utilization rate of the virtual machine resources is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a system for capacity reduction of cloud platform resources, so that virtual machines with empty instances appear as far as possible after capacity reduction, the instances are concentrated as far as possible in a few virtual machines, and resources of the completely idle virtual machines are released, so as to improve utilization rate of the resources of the virtual machines.
According to a first aspect of the embodiments of the present invention, a method for capacity reduction of cloud platform resources is provided, where the cloud platform resources are virtual machine resources on a cloud platform, and a virtual machine includes an application instance; receiving an instance deleting request for a target application on a cloud platform, wherein the instance deleting request carries a quantity identifier and an identifier of the target application; the number identifier indicates that the number of the instances which need to be deleted by the target application is N, where N is an integer greater than 0; finding out a target virtual machine from the cloud platform according to the identifier of the target application, wherein the target virtual machine is all virtual machines containing the instance of the target application; obtaining the type of the application to which each instance belongs and the number of the instances of each application in the target virtual machine; and deleting the N instances of the target application in the target virtual machine by adopting a preset capacity reduction strategy according to the type of the application to which each instance in the target virtual machine belongs and the quantity of the instances of each application.
With reference to the first aspect, in a first possible implementation manner of the first aspect, after deleting N instances of the target application in the target virtual machine by using a preset capacity reduction policy, the method further includes: checking whether an idle virtual machine appears in the target virtual machine, wherein the number of instances contained in the idle virtual machine is zero; and if the idle virtual machine appears in the target virtual machine, releasing the idle virtual machine. .
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the target virtual machine includes at least two special virtual machines, the special virtual machines only include instances of the target application, and a total number of the instances included in all the special virtual machines is greater than or equal to N; the deleting N instances of the target application in the target virtual machine by using the preset capacity reduction policy includes: and deleting N instances from the at least one special virtual machine according to the sequence of the number of the instances contained in each special virtual machine from small to large.
With reference to the first aspect, or with reference to any one of the foregoing possible implementation manners of the first aspect, in a third possible implementation manner of the first aspect, the deleting N instances from the at least one special virtual machine in the order from a small number to a large number of instances included in each special virtual machine specifically includes: and if the number of the instances contained in the special virtual machine with the minimum number of the instances is greater than or equal to N, deleting N instances from the special virtual machine with the minimum number of the instances.
With reference to the first aspect, or with reference to any one of the foregoing possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, the deleting N instances from the at least one special virtual machine in the order from a small number to a large number of instances included in each special virtual machine specifically includes: if the number of the instances contained in the special virtual machine with the least number of the instances is less than N, deleting all the instances in the first M special virtual machines according to the sequence, wherein the deleted number is recorded as N-X, so that the number of the instances contained in the M + 1-th special virtual machine in the sequence is greater than or equal to X, X is the residual deleted number of the instances of the target application, and M and X are both integers greater than 0; x instances are deleted in the M +1 th special virtual machine in the above order.
With reference to the first aspect, or with reference to any one of the foregoing possible implementation manners of the first aspect, in a fifth possible implementation manner of the first aspect, the target virtual machine includes at least one special virtual machine, where the special virtual machine only includes an instance of the target application, and a total number of the instances in all the special virtual machines is less than N; the deleting N instances of the target application in the target virtual machine by using the preset capacity reduction policy includes: deleting all the instances in all the special virtual machines, and recording the deleted number as N-Y; and deleting Y instances of the target application from at least one remaining target virtual machine according to the sequence of the total number of the instances contained in each remaining target virtual machine from less to more, wherein Y is the remaining deletion number of the instances of the target application, and Y is an integer greater than 0.
With reference to the first aspect, or with reference to any one of the foregoing possible implementation manners of the first aspect, in a sixth possible implementation manner of the first aspect, the deleting Y instances of the target application from at least one remaining target virtual machine in an order that a total number of instances included in each remaining target virtual machine is from a small number to a large number specifically includes: and if the number of the instances of the target application in the remaining target virtual machines with the minimum total number of the instances is greater than or equal to Y, deleting Y instances of the target application in the remaining target virtual machines with the minimum total number of the instances.
With reference to the first aspect, or with reference to any one of the foregoing possible implementation manners of the first aspect, in a seventh possible implementation manner of the first aspect, the deleting Y instances of the target application from at least one remaining target virtual machine in an order that a total number of instances included in each remaining target virtual machine is from a small number to a large number specifically includes: if the number of the instances containing the target application in the remaining target virtual machines with the smallest total number of the instances is less than Y, deleting all the instances containing the target application from the first M1 remaining target virtual machines according to the sequence, wherein the deleted number is recorded as Y-X1, so that the number of the instances containing the target application in the M1+1 th remaining target virtual machine in the sequence is greater than or equal to X1, the X1 is the remaining deleted number of the instances of the target application, and the M1 and the X1 are both integers greater than 0; deleting the X1 instances of the target application from the M1+1 th remaining target virtual machine in the sequence.
With reference to the first aspect, or with reference to any one of the foregoing possible implementation manners of the first aspect, in an eighth possible implementation manner of the first aspect, the deleting, in the target virtual machine, the N instances of the target application by using a preset capacity reduction policy includes: and deleting the N instances of the target application from at least one target virtual machine according to the sequence of the total number of the instances contained in each target virtual machine from less to more.
With reference to the first aspect, or with reference to any one of the foregoing possible implementation manners of the first aspect, in a ninth possible implementation manner of the first aspect, the deleting N instances of the target application from at least one target virtual machine in an order that a total number of the instances included in each target virtual machine is from a small number to a large number specifically includes: and if the number of the instances of the target application in the target virtual machine with the minimum total number of the instances is greater than or equal to N, deleting the N instances of the target application in the target virtual machine with the minimum total number of the instances.
With reference to the first aspect, or with reference to any one of the foregoing possible implementation manners of the first aspect, in a tenth possible implementation manner of the first aspect, the deleting N instances of the target application from at least one target virtual machine in an order that a total number of the instances included in each target virtual machine is from a small number to a large number specifically includes: if the number of the instances containing the target application in the target virtual machine with the smallest total number of the instances is smaller than N, deleting all the instances of the target application from the first M2 target virtual machines according to the sequence, wherein the deleted number is recorded as N-X2, so that the number of the instances containing the target application in the M2+1 th target virtual machine in the sequence is larger than or equal to X2, X2 is the remaining deleted number of the instances of the target application, and M2 and X2 are both integers larger than 0; deleting the X2 instances of the target application in the M2+1 th target virtual machine in the sequence.
With reference to the first aspect, or with reference to any one of the foregoing possible implementation manners of the first aspect, in an eleventh possible implementation manner of the first aspect, the method further includes: and when the total number of the instances contained in each of the target virtual machines is the same, preferentially deleting the instances of the target application contained in the target virtual machine with the least application types.
With reference to the first aspect, or with reference to any one of the foregoing possible implementation manners of the first aspect, in a twelfth possible implementation manner of the first aspect, the method further includes: and when the total number of the instances contained in each of the target virtual machines is the same and the types of the applications contained in each of the target virtual machines are also the same, preferentially deleting the instance of the target application contained in the target virtual machine with the least number of the instances of the target application.
With reference to the first aspect, or with reference to any one of the foregoing possible implementations of the first aspect, in a thirteenth possible implementation of the first aspect, the method further includes: when the total number of the instances contained in each of the target virtual machines is the same, the number of the application types contained in each of the target virtual machines is also the same, and the number of the instances containing the target application is also the same, preferentially deleting the instance of the target application contained in the target virtual machine where the instance with the latest or earliest starting time of the target application is located, or randomly selecting any one of the target virtual machines to delete the instance of the target application.
With reference to the first aspect, or with reference to any one of the foregoing possible implementation manners of the first aspect, in a fourteenth possible implementation manner of the first aspect, where the target virtual machine includes only one special virtual machine, the special virtual machine includes only an instance of the target application, a total number of the instances included in the special virtual machine is greater than or equal to N, and deleting, by using a preset reduction policy, the N instances of the target application in the target virtual machine includes: n instances are deleted in the special virtual machine.
According to a second aspect of the embodiments of the present invention, there is provided a capacity reduction apparatus for cloud platform resources, where the apparatus includes: the cloud platform comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving an instance deleting request for a target application on the cloud platform, and the instance deleting request carries a quantity identifier and an identifier of the target application; the number identifier indicates that the number of the instances which need to be deleted by the target application is N, where N is an integer greater than 0; the searching module is used for searching a target virtual machine from the cloud platform according to the identifier of the target application received by the receiving module, wherein the target virtual machine is all virtual machines containing the instance of the target application; the obtaining module is used for obtaining the type of the application to which each instance belongs and the number of the instances of each application in the target virtual machine searched by the searching module; and the policy module is used for deleting the N instances of the target application in the target virtual machine by adopting a preset capacity reduction policy according to the type of the application to which each instance belongs and the number of the instances of each application in the target virtual machine, which are obtained by the obtaining module.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the apparatus further includes a checking module and a releasing module, where the checking module is configured to check whether an idle virtual machine appears in the target virtual machine, and a number of instances included in the idle virtual machine is zero; and if the checking module checks that the idle virtual machine appears in the target virtual, the releasing module is used for releasing the idle virtual machine.
With reference to the second aspect, or with reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the policy module includes a counting unit and a deleting unit; the target virtual machine comprises at least one special virtual machine, and the special virtual machine only comprises an example of the target application; the counting unit is used for judging the relation between the total number of the instances in all the special virtual machines and N; if the counting unit determines that the total number of the instances in all the special virtual machines is greater than or equal to N, the deleting unit is used for deleting N instances from at least one special virtual machine according to the sequence of the number of the instances contained in each special virtual machine from small to large.
With reference to the second aspect, or with reference to any one of the foregoing possible implementations of the second aspect, in a third possible implementation of the first aspect, the counting unit is further configured to determine a relationship between the number of instances in the special virtual machine that includes the least number of instances and N; if the counting unit determines that the number of instances in the special virtual machine with the minimum number of instances is greater than or equal to N, the deleting unit is specifically configured to delete N instances in the special virtual machine with the minimum number of instances.
With reference to the second aspect, or with reference to any one of the foregoing possible implementation manners of the second aspect, in a fourth possible implementation manner of the first aspect, the counting unit is further configured to determine a relationship between the number of instances in the special virtual machine that includes the least number of instances and N; if the counting unit determines that the number of instances in the special virtual machine with the minimum number of instances is less than N, the deleting unit is specifically configured to: deleting all the instances in the first M special virtual machines according to the sequence, wherein the deleted number is recorded as N-X, the number of the instances contained in the M + 1-th special virtual machine in the sequence is larger than or equal to X, X is the residual deletion number of the instances of the target application, and M and X are integers larger than 0; x instances are deleted in the M +1 th special virtual machine in the above order.
With reference to the second aspect, or with reference to any one of the foregoing possible implementations of the second aspect, in a fifth possible implementation of the first aspect, the policy module includes a counting unit and a deleting unit; the target virtual machine comprises at least one special virtual machine, and the special virtual machine only comprises an example of the target application; the counting unit is used for judging the relation between the total number of the instances in all the special virtual machines and N; if the counting unit determines that the total number of instances in all the special virtual machines is less than N, the deleting unit is configured to: deleting all the instances in all the special virtual machines, and recording the deleted number as N-Y; and deleting Y instances of the target application from at least one remaining target virtual machine according to the sequence of the total number of the instances contained in each remaining target virtual machine from less to more, wherein Y is the remaining deletion number of the instances of the target application, and Y is an integer greater than 0.
With reference to the second aspect, or with reference to any one of the foregoing possible implementation manners of the second aspect, in a sixth possible implementation manner of the first aspect, the counting unit is further configured to determine a relationship between the number of instances of the target application included in the remaining target virtual machine with the smallest number of instances and Y; if the counting unit determines that the number of the instances of the target application included in the remaining target virtual machine with the smallest number of the included instances is greater than or equal to Y, the deleting unit is specifically configured to delete Y instances of the target application in the special virtual machine with the smallest number of the included instances.
With reference to the second aspect, or with reference to any one of the foregoing possible implementation manners of the second aspect, in a seventh possible implementation manner of the first aspect, the counting unit is further configured to determine a relationship between the number of instances of the target application included in the remaining target virtual machine with the smallest number of instances and Y;
if the counting unit determines that the number of the instances of the target application included in the remaining target virtual machines with the smallest number of the included instances is less than Y, the deleting unit is specifically configured to: deleting all instances of the target application from the first M1 remaining target virtual machines according to the sequence, wherein the deleted number is recorded as Y-X1, the number of the instances containing the target application in the M1+1 th remaining target virtual machine in the sequence is greater than or equal to X1, X1 is the remaining deleted number of the instances of the target application, and M1 and X1 are integers greater than 0; deleting the X1 instances of the target application from the M1+1 th remaining target virtual machine in the sequence.
With reference to the second aspect, or with reference to any one of the foregoing possible implementation manners of the second aspect, in an eighth possible implementation manner of the first aspect, the policy module is specifically configured to delete the N instances of the target application from the at least one target virtual machine according to an order that a total number of the instances included in each target virtual machine is from a small number to a large number.
With reference to the second aspect, or with reference to any one of the foregoing possible implementations of the second aspect, in a ninth possible implementation of the first aspect, the policy module includes a counting unit and a deleting unit; the counting unit is used for judging the relation between the number of the instances of the target application contained in the target virtual machine with the least number of the instances and N; if the counting unit determines that the number of instances including the target application in the target virtual machine with the minimum total number of included instances is greater than or equal to N, the deleting unit is specifically configured to delete N instances of the target application in the target virtual machine with the minimum total number of included instances.
With reference to the second aspect, or with reference to any one of the foregoing possible implementations of the second aspect, in a tenth possible implementation of the first aspect, the policy module includes a counting unit and a deleting unit; the counting unit is used for judging the relation between the number of the instances of the target application contained in the target virtual machine with the least number of the instances and N; if the counting unit determines that the number of instances including the target application in the target virtual machine with the minimum total number of instances included in the target virtual machine is less than N, the deleting unit is specifically configured to: deleting all instances of the target application from the first M2 target virtual machines according to the sequence, wherein the deleted number is recorded as N-X2, the number of the instances containing the target application in the M2+1 target virtual machine in the sequence is greater than or equal to X2, X2 is the residual deletion number of the instances of the target application, and M2 and X2 are integers greater than 0; deleting the X2 instances of the target application in the M2+1 th target virtual machine in the sequence.
With reference to the second aspect, or with reference to any one of the foregoing possible implementations of the second aspect, in an eleventh possible implementation of the first aspect, the policy module includes a counting unit and a deleting unit; the target virtual machine only comprises a special virtual machine, and the special virtual machine only comprises an example of the target application; the counting unit is used for judging the relation between the total number of the instances in the special virtual machine and N; if the counting unit determines that the total number of the instances in the special virtual machine is greater than or equal to N, the deleting unit is used for deleting N instances from the special virtual machine.
According to a third aspect of the embodiments of the present invention, there is provided a capacity reduction system for cloud platform resources, where the system includes: the system comprises a user terminal and a cloud platform; the user terminal is used for sending an instance deleting request for a target application on the cloud platform to the cloud platform, wherein the instance deleting request carries a quantity identifier and an identifier of the target application; the number identifier indicates that the number of the instances which need to be deleted by the target application is N, where N is an integer greater than 0; the cloud platform is used for receiving an instance deletion request sent by the user terminal; finding out a target virtual machine according to the identification of the target application, wherein the target virtual machine is all virtual machines containing the instances of the target application; obtaining the type of the application to which each instance belongs and the number of the instances of each application in the target virtual machine; and deleting the N instances of the target application in the target virtual machine by adopting a preset capacity reduction strategy according to the type of the application to which each instance in the target virtual machine belongs and the quantity of the instances of each application.
According to the technical scheme provided by the embodiment of the invention, when the deletion of the instance is performed for capacity reduction, the types and the number of the running instances in the virtual machines are obtained, and according to the information, a certain strategy is adopted to preferentially select the virtual machines with few instances for instance deletion operation, or the virtual machines only containing the instances of the target application are selected firstly and also preferentially select the virtual machines with few instances for instance deletion operation, so that the virtual machines with fewer instances are easier to select when the instances are deleted, the instances are concentrated in a few virtual machines as much as possible after the ordered deletion operation, and the possibility of the idle virtual machines is greatly improved. Therefore, once the idle virtual machine appears, the virtual machine can be released, the resource utilization rate of the cloud platform virtual machine is improved, the energy consumption of the cloud platform is reduced, and the physical resources of the virtual machine are released, so that the operation cost of the cloud platform resources is effectively reduced.
Drawings
FIG. 1 is a schematic diagram of two modes of a cloud platform application in the prior art;
fig. 2 is a schematic view of an application scenario of cloud platform resource reduction in an embodiment of the present invention;
FIG. 3 is a flowchart of a method for scaling cloud platform resources according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating example distribution information in a virtual machine according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a scenario of deleting an instance in a virtual machine according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating a scenario of deleting an instance in a virtual machine according to an embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating a scenario of deleting an instance in a virtual machine according to an embodiment of the present invention;
FIG. 8 is a schematic diagram illustrating a scenario of deleting an instance in a virtual machine according to an embodiment of the present invention;
FIG. 9 is a schematic diagram illustrating a scenario of deleting an instance in a virtual machine according to an embodiment of the present invention;
FIG. 10 is a schematic diagram illustrating a scenario of deleting an instance in a virtual machine according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating an application scenario of a deletion rule for an instance in a virtual machine according to an embodiment of the present invention;
FIG. 12 is a schematic diagram illustrating an example scenario in a migration integrated virtual machine according to an embodiment of the present invention;
fig. 13 is a schematic diagram of a cloud platform resource capacity reduction apparatus according to an embodiment of the present invention;
FIG. 14 is a diagram illustrating a policy module according to an embodiment of the present invention;
fig. 15 is a schematic diagram of a cloud platform resource capacity reduction system according to an embodiment of the present invention;
fig. 16 is a schematic structural diagram of a capacity reduction device for cloud platform resources according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a capacity reduction method, device and system for cloud platform resources.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the preferred embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Instance (Instance) is an automatically expanding computing unit of an Application (Application), which is the most basic embodiment of an Application, and is equivalent to a kind of mirror image or copy of the Application, which provides that all resources required by the Application can be used. It includes language runtime, application interface, and code and storage for the application. Each instance contains a security layer to ensure that the different instances do not interact with each other. At any given time, an application may run on one or more instances. The instance can be static or dynamic, the dynamic instance can be automatically started and closed according to the current requirement, the static instance is always running, and the performance of the application can be improved. Instances differ from application to application, while different instances under the same application are the same, all of which can provide a full set of usage resources for that application. Hereinafter, a virtual machine is denoted by "VM number", and different numbers denote different virtual machines; an application is denoted by "App number", an instance of an application is denoted by "App number-number", and different numbers denote different applications or different instances.
Currently, there are two main levels of application operation of a cloud platform: virtual machine level and container level. The virtual machine level refers to that one virtual machine runs one instance, the container level refers to that a plurality of containers are started on one virtual machine, resources among the containers are mutually isolated, and one instance runs in each container, as shown in fig. 1, fig. 1 is a schematic structural diagram of two modes of cloud platform application in the prior art.
According to the invention, on the container level of the cloud platform, resources among all containers are mutually isolated, one instance is operated in each container, and about dozens to hundreds of containers exist in each virtual machine, so that different types and different numbers of instances can be operated in each virtual machine, all instances belonging to the same application are called as the same instance, and the instances belonging to different applications are called as different instances. The invention aims to plan how to delete the virtual machines according to a certain strategy, so that the virtual machines are distributed more reasonably, and the resources of the virtual machines can be utilized more reasonably.
Referring to fig. 2, fig. 2 is a schematic view of an application scenario of cloud platform resource capacity reduction according to an embodiment of the present invention.
Taking a shopping website in twenty-one season as an example, due to the promotion activity, a considerable number of external users visit the shopping website in a certain period of time, and occupy the resources of the cloud platform virtual machine of many applications such as Taobao, Jingdong and Dangdui, and once the activity is finished, the user visit amount is greatly reduced. The process is embodied on a cloud platform, namely a great number of instances are operated during the activity, most of the instances do not need to be operated when the activity is finished, but because the previous instances are not deleted in time, a large number of virtual machine resources are occupied without reason, the waste and unreasonable allocation of resources are caused, and the application development user can not release more virtual machines, so that the operation cost is increased. In order to solve the problem, the invention provides a method, a device and a system for cloud platform resource capacity reduction.
Referring to fig. 3, fig. 3 is a flowchart of a cloud platform resource capacity reduction method according to an embodiment of the present invention, where the method includes:
s101: receiving an instance deleting request for a target application on a cloud platform, wherein the instance deleting request carries an application identifier and a quantity identifier; the application identification represents an application to which an instance of the target application belongs; the number flag indicates that the number of instances of the target application is N, which is an integer greater than 0.
The deletion request of the example can be sent by the user in real time or sent by the automatic telescopic service management system according to the preset timing; the deletion request of the instance comprises specific application identification, such as a special field for expressing which instance of the application the software developer wants to delete, for example, deleting hundreds or deleting new waves; and N represents the number of the instances which the software developer wants to delete in the operation.
In a specific implementation process, the application identifier and the quantity identifier are not limited to the form, and may be a field, a string of characters or numbers, a specific symbol, or a combined field; as long as it can represent a unique application identification or can indicate a specified number of instances of deletion.
S102: and finding out a target virtual machine from the cloud platform according to the application identifier of the target application, wherein the target virtual machine is a virtual machine containing an instance of the target application.
For example, when a developer of the pan wants to delete an instance of the pan, all virtual machines containing the instance of the pan are found with the unique ID numbers representing the pan, and are used as target virtual machines for the software developer to delete the instance for contraction.
S103: and obtaining the type of the application to which each instance belongs and the number of the instances of each application in the target virtual machine.
Acquiring distribution information as shown in fig. 4, where fig. 4 is a schematic diagram of example distribution information in a virtual machine, where the distribution information can clearly show information on which applications are included on each virtual machine VM, how many examples are provided for each application in each virtual machine VM, and in which virtual machines instances of a certain class are distributed, and there is at least one target virtual machine on the cloud platform, and of course, there is usually far more than one target virtual machine.
S104: and deleting the N instances of the target application in the target virtual machine by adopting a preset capacity reduction strategy according to the type of the application to which each instance belongs and the number of the instances of each application in the target virtual machine obtained in the S103.
After a series of deletion operations are performed by software developers of some applications, the instance distribution situation of the cloud platform virtual machine changes, and whether an idle virtual machine without any instance exists after deletion can be found by detecting the instance distribution of the virtual machine, especially detecting a target virtual machine. The detection time is flexible, regular detection can be carried out, detection can be carried out after the instance is deleted in one virtual machine, and detection can be carried out uniformly after all the N instances are deleted. When the idle virtual machine is detected, the idle virtual machine can be released, and the operation cost is reduced.
In a specific implementation of step S104, a certain capacity reduction policy is to be followed when deleting N instances, which may be selected as follows.
The first capacity reduction strategy is as follows: screening out virtual machines only containing target application instances from all target virtual machines as special virtual machines; according to the instance distribution information of each target virtual machine, when the total number of the instances in all the special virtual machines is larger than or equal to N, the special virtual machines can be arranged in sequence from a small number of the instances to a large number of the instances, the special virtual machine with the minimum number of the instances is selected firstly, and if the deletion of the N instances in the special virtual machine with the minimum number of the instances can be completed, the deletion is terminated. The most special case is that only one special virtual machine is provided, then the deletion of the instances can be directly carried out in the special virtual machine without sequencing, and if the total number of the instances in the special virtual machine is more than or equal to N, the deletion operation can be directly finished; if less than N, then strategy 3 may be implemented.
Taking fig. 5 as an example, fig. 5 is a schematic diagram of a scheme for deleting an instance in a virtual machine in an embodiment of the present invention, a virtual machine that only includes App1, including VM1, VM2, and VM3, can be found through step S102, and the total number of the instances included in the virtual machine is 5, 3, and 1, respectively, so that the virtual machine is arranged as VM3, VM2, and VM1 in the deletion order according to the number of the instances included in the virtual machine from a small number to a large number, the deletion operation is performed in VM3 first, and if a developer of App1 wants to delete 1 instance of App1, the deletion can be completed in VM3 directly.
The second capacity reduction strategy is as follows: screening out virtual machines only containing target application instances from all target virtual machines as special virtual machines; obtaining the total number of the instances in all the special virtual machines which is more than or equal to N according to the instance distribution information of each target virtual machine, arranging the special virtual machines according to the sequence of the number of the included instances from small to large, deleting all the instances in the first M special virtual machines according to the arrangement sequence, wherein the deleted number is recorded as N-X, so that the number of the instances including the target application in the M + 1-th special virtual machine in the sequence is more than or equal to X, X is the residual deletion number of the instances of the target application, and M and X are both integers more than 0; deleting X instances of the target application in the M +1 th special virtual machine in the sequence.
Taking fig. 6 as an example, fig. 6 is a schematic diagram of a scheme for deleting an example in a virtual machine in an embodiment of the present invention, a virtual machine that only includes App1 can be found through step S102 to include VM1, VM2, and VM3, and it can be known through step S103 that the total number of examples included in the virtual machine is 5, 3, and 1, respectively, so that the virtual machine is arranged in the order of VM3, VM2, and VM1 according to the number of examples included from as few as many as the virtual machine deletion order, a deletion operation is performed in VM3 first, and assuming that a developer of App1 wants to delete 3 examples of App1, but there are only 1 example of App1 in VM3, 1 example of App1 in VM3 is deleted first; since 2 apps 1 instances are also deleted, the deletion operation needs to be performed in the VM2 in sequence, and the number of apps 1 instances in the VM2 is greater than 2, so that 2 apps 1 in the VM2 are deleted, and the deletion task is completed.
The third capacity reduction strategy: screening out virtual machines only containing target application instances from all target virtual machines as special virtual machines; according to the example distribution information of each target virtual machine, when the total number of the examples in all the special virtual machines is smaller than N, all the examples in all the special virtual machines are deleted firstly, the deleted number is recorded as N-Y, then the remaining target virtual machines are arranged according to the total number of the various examples from small to large, the target virtual machine with the minimum total number of the various examples is selected firstly, if the target virtual machine with the minimum total number of the various examples can complete deletion of Y target application examples, deletion is terminated, wherein Y is the remaining deletion number of the target application examples, and Y is an integer larger than 0.
Taking fig. 7 as an example, fig. 7 is a schematic diagram of a scheme for deleting an example in a virtual machine in an embodiment of the present invention, a virtual machine including App1 may be found to include VM1, VM2, VM3, VM4, and VM5 through step S102, and it can be known through step S103 that a virtual machine including only App1 includes VM1 and VM2, and VM1 and VM2 include App1, where the numbers of the App1 are 4 and 2, respectively, and it is assumed that a developer of App1 wants to delete 7 App1 examples, since the sum of App1 examples included in VM1 and VM2 is 6 and is less than 7, all 6 App1 examples in VM1 and VM2 are deleted first; currently, virtual machines including App1 include VM3, VM4, and VM5, which respectively include various instances with total numbers of 2, 3, and 4, and then delete the virtual machines from as few as the total numbers of the various instances to VM3, VM4, and VM5, and delete the virtual machines in VM3 first, because the number of the remaining deletes is 7-6 — 1, and VM3 includes one App1 instance, the deletion in VM3 can be completed directly.
The fourth capacity reduction strategy: screening out virtual machines only containing target application instances from all target virtual machines as special virtual machines; according to the example distribution information of each target virtual machine, obtaining that the total number of examples in all the special virtual machines is smaller than N, deleting all the examples in all the special virtual machines, wherein the deleted number is marked as N-Y, then according to the arrangement sequence of the remaining target virtual machines from less to more than the total number of all the examples, deleting all the target application examples in the first M target virtual machines according to the arrangement sequence, wherein the deleted number is marked as Y-X, so that the number of the target application examples in the (M + 1) th target virtual machine in the arrangement sequence is larger than or equal to X, X is the remaining deleted number of the target application examples, and M and X are both integers larger than 0; deleting X instances of the target application in the M +1 th target virtual machine in the sequence.
Taking fig. 8 as an example, fig. 8 is a schematic diagram of a scheme for deleting an example in a virtual machine in an embodiment of the present invention, a virtual machine including App1 may be found to include VM1, VM2, VM3, VM4, and VM5 through step S102, and it can be known through step S103 that a virtual machine including only App1 includes VM1 and VM2, and VM1 and VM2 include App1, where the numbers of the App1 examples are 4 and 2, respectively, and it is assumed that developers of App1 want to delete 9 App1 examples, since the sum of App1 examples included in VM1 and VM2 is 6 and is less than 9, all 6 App1 examples in VM1 and VM2 are deleted first; currently, virtual machines including App1 include VM3, VM4 and VM5, which respectively include 2, 3 and 4 instances in total, and then the virtual machines are arranged into VM3, VM4 and VM5 according to the sequence from few to many instances in total, the deletion operation is firstly performed in VM3, since the number of the remaining deletions is 9-6 to 3, and VM3 only includes one App1 instance, so that one App1 instance is firstly deleted in VM3, then the deletion operation is performed in VM4 according to the sequence, since VM4 includes only one App1 instance, and the number of the remaining deletions is 9-6-1 to 2, so that only one App1 instance among the deletions is continuously deleted in VM4, and the number of the remaining deletions is 9-6-1 to 1, so that the deletion operation is continuously performed in the sequence 5, since there are 2 App1 instances in VM5, it is only necessary to delete 1 App1 instance in VM 5.
A fifth capacity reduction strategy: and arranging the target virtual machines according to the total number of the various types of examples from less to more, firstly selecting the target virtual machine with the minimum total number of the various types of examples, and if the target virtual machine with the minimum total number of the various types of examples can finish deleting the N target application examples, terminating deletion.
Taking fig. 9 as an example, fig. 9 is a schematic diagram of a scheme for deleting an example in a virtual machine in an embodiment of the present invention, a virtual machine including App1, including VM1, VM2, and VM3, can be found through step S102, and it can be known through step S103 that the total number of the virtual machines including the App1 is 5, 3, and 2, respectively, so that the VM3 is used as a target virtual machine for preferentially deleting the example, and if a developer of App1 wants to delete 1 App1 example, the virtual machine can be directly deleted in the VM 3.
A sixth capacity reduction strategy: according to the total number of various types of examples, arranging the target virtual machines in an order, deleting all target application examples in the M target virtual machines according to the arrangement order, wherein the deleted number is recorded as N-X, so that the number of the target application examples contained in the M +1 th target virtual machine in the order is larger than or equal to X, X is the residual deletion number of the target application examples, and M and X are integers larger than 0; deleting X instances of the target application in the M +1 th target virtual machine in the sequence.
Taking fig. 10 as an example, fig. 10 is a schematic diagram of a scheme for deleting an instance in a virtual machine in an embodiment of the present invention, a virtual machine including App1 is found in step S102 to include VM1, VM2, and VM3, where the total number of the various instances is 5, 3, and 2, so the order of deleting the virtual machine is arranged as VM3, VM2, and VM1 according to the total number of the instances, and assuming that a developer of App1 wants to delete 4 instances of App1, but there are only 1 instance of App1 in VM3, 1 instance of App1 in VM3 is deleted first; since 3 App1 instances are also deleted, deletion continues to be performed in the VM2 in sequence, and since the VM2 includes 2 apps 1 and less than 3 apps, 2 apps 1 in the VM2 are all deleted, and then the VM1 is used as a virtual machine to be subjected to a deletion instance next, and 1 App1 instance with the latest starting time in the VM1 is deleted.
In the above six capacity reduction policies, when the ordering is performed according to the number of instances from small to large, multiple virtual machines with the same instance distribution are often encountered, and in order to avoid conflict in the ordering, a priority policy is stored in the capacity reduction policy, for example, the following ordering priority rules may be set:
first order priority rule: if the total number of the instances contained in each of the plurality of target virtual machines is the same when the target virtual machines are arranged in the sequence, the target virtual machine containing the least instance type is prioritized when the target virtual machines are arranged in the sequence.
Second sort priority rule: if the total number of the instances contained in each of the target virtual machines is the same and the types of the instances contained in each of the target virtual machines are also the same in the arranging sequence, the target virtual machine containing the least number of the instances of the target application is prioritized in the arranging sequence.
The third sort priority rule: if the total number of the instances contained in each of the plurality of target virtual machines is the same, the types of the instances contained in each of the plurality of target virtual machines are also the same, and the number of the instances of the target application contained in each of the plurality of target virtual machines is also the same, the target virtual machine in which the instance of the target application with the latest starting time is located has priority in the arrangement sequence, or is deleted from the early and late sequence, or one of the target virtual machines is randomly selected for deletion, or is correspondingly deleted according to any personalized priority rule of a developer.
It is to be noted that, in each of the above deletion methods, when a plurality of instances of the same application are deleted in a single virtual machine, especially when the number of instances of the target application existing in the virtual machine is greater than the number that needs to be deleted, the deletion is performed in order of the start time of the instances of the target application from late to early.
In the specific implementation process, the example distribution conditions of each virtual machine are different, so that the condition of ensuring that the arrangement sequence is well ordered in the deletion process is a necessary condition for smoothly performing the capacity reduction process.
Taking fig. 11 as an example, fig. 11 is a diagram of an application scenario of a sort rule for deleting instances in a virtual machine in an embodiment of the present invention, where the scenario may occur in an application scenario of the fourth and sixth reduction policies, and assuming that the larger the number in "APP 1-number" indicates the later the start time, according to the total number of instances in the virtual machine, the preliminary ranking order priority is: VM2, VM3 are superior to VM4, VM5VM6 is superior to VM1, VM 7; since the first sort priority rule may result in VM2 being better than VM3, VM4, VM5 being better than VM 6; VM4 may be preferred over VM5 due to the second ordering precedence rule; VM7 may be preferred over VM1 due to the third ordering precedence rule. In summary, in the example in fig. 11, the virtual machines of the deletion examples are arranged in the order of VM2, VM3, VM4, VM5, VM6, VM7, and VM 1.
In addition to the 6 systematic capacity reduction policies, there is a complementary optimization scheme, after obtaining the instance distribution information included in each target virtual machine, or after undergoing a deletion operation in any of the 6 capacity reduction policies, selecting a suitable virtual machine as a main virtual machine according to the size of the remaining space, migrating all instances included in the target virtual machines with a small total number of various instances to the main virtual machine, and releasing those virtual machines which are idle after migration.
Taking fig. 12 as an example, fig. 12 is a schematic diagram of an example in a migration and integration virtual machine in an embodiment of the present invention, as shown in fig. 12, after a series of deletion operations is performed on example distribution information included in a virtual machine obtained in S103, VM1 includes App1-1, App1-2, and App1-3, VM2 only includes App2-3, and VM3 only includes App2-1, but VM2 and VM3 are very easy to release but cannot be released in time due to the existence of an example, at this time, according to a calculation function of a space size of a virtual machine by a cloud platform, VM1 with a large number of examples is selected as a main virtual machine, App2-3 in VM2 and App2-1 in VM3 are migrated and integrated into VM1, so that VM2 and VM3 are idle, and VM2 and VM3 can be released through a subsequent release operation.
In combination with the above discussed alternatives, the application developer can mix the above 6 capacity reduction schemes in stages according to the needs of the developer, so as to construct a personalized deletion scheme. For example, the 1 st or 2 nd capacity reduction method may be executed when the first-stage deletion is executed, and the 5 th or 6 th capacity reduction scheme may be executed after a longer time interval.
According to the technical scheme provided by the embodiment of the invention, when the capacity reduction is applied, the virtual machines are marked by using the application identification and the quantity identification carried by the deletion request of the example, and the example distribution information of each target virtual machine is obtained, and the virtual machines with few examples are preferentially selected to perform the example deletion operation by further adopting a capacity reduction strategy, or the virtual machines only containing the examples of the target application are preferentially selected to perform the example deletion operation in the same way, so that the virtual machines with few examples are easier to select during the capacity reduction, the probability of idle virtual machines after the capacity reduction is greatly improved, the examples are concentrated in a few virtual machines as much as possible, the utilization rate of virtual machine resources is improved, the energy consumption of a cloud platform is reduced, and energy conservation and emission reduction are realized.
Referring to fig. 13, fig. 13 is a schematic diagram of a cloud platform resource capacity reduction device according to an embodiment of the present invention. The apparatus 200 comprises:
a receiving module 201, configured to receive an instance deletion request for a target application on a cloud platform, where the instance deletion request carries a quantity identifier and an identifier of the target application; the number identifier indicates that the number of the instances which need to be deleted by the target application is N, and N is an integer greater than 0.
The application identifier in the deletion request of the instance is determined by the application developer, and the application developer can only delete the instance of the application and can determine the deletion number N.
The searching module 202 is configured to search a target virtual machine from the cloud platform according to the identifier of the target application received by the receiving module 401, where the target virtual machine is all virtual machines including the instance of the target application.
An obtaining module 203, configured to obtain the category of the application to which each instance in the target virtual machine belongs and the number of instances of each application, which are obtained by the searching module 202. The obtaining module 203 is specifically responsible for collecting the instance distribution conditions included in each virtual machine, including the instances of different apps and the VM where each instance is located, and obtaining a distribution view as shown in fig. 4, so as to know which kinds of instances, and the number of each kind of instances, are included in each virtual machine.
The policy module 204 is configured to delete, according to the type of the application to which each instance in the target virtual machine belongs and the number of the instances of each application, obtained by the obtaining module 203, N instances of the target application in the target virtual machine by using a preset capacity reduction policy.
In addition, the apparatus 200 further includes a detection module 205, configured to detect whether there is an idle virtual machine with zero instance number, where the detection time is flexible, and the detection may be performed in the process of executing the deletion operation by the policy module 204, or after the deletion operation is completed; a release module 206 is also included for releasing the idle virtual machine when it is detected. Here, the free virtual machine can be deleted by calling a command of the I layer of the cloud platform, for example, the api of openstack is/v 2/: tentjd/servers/: server _ id.
In a specific implementation process, the policy module 204 may include a screening unit 2041, a counting unit 2042, a sorting unit 2043, a deleting unit 2044, and a policy unit 2045; referring to fig. 14, fig. 14 is a schematic diagram of a policy module according to an embodiment of the invention.
The screening unit 2041 is configured to screen, according to the application identifier and the virtual machine instance distribution information, a virtual machine that only includes an instance of the target application from all target virtual machines as a special virtual machine. The first to fourth solutions of the above-mentioned capacity reduction strategy all involve this module; the counting unit 2042 determines the relationship between the total number of instances in all the special virtual machines screened by the screening unit 2041 and N, and if the counting unit 2042 determines that the total number of instances in all the special virtual machines is greater than or equal to N, the sorting unit 2043 sorts the special virtual machines in order according to the number of instances included from small to large; the deleting unit 2044 deletes N instances of the target application in the sorted target virtual machines according to the sorting order. If the counting unit 2042 determines that the total number of the instances in all the special virtual machines is less than N, the deleting unit 2044 first deletes all the instances in all the special virtual machines, and the sorting unit 2043 sorts the remaining target virtual machines in order according to the total number of the instances in all the special virtual machines; deleting unit 2044 deletes Y instances of the target application in the sorted target virtual machines according to the sorting order, where Y is the remaining deletion number of the instances of the target application, and Y is an integer greater than 0.
In the fifth and sixth solutions of the capacity reduction policy, the policy module 204 may only include the counting unit 2042, the sorting unit 2043, the deleting unit 2044, and the policy unit 2045. The sorting unit 2043 is configured to sort the target virtual machines according to the total number of the various types of instances from a few to many; the deleting unit 2044 is configured to delete N instances of the target application in the sorted target virtual machines according to the sorting order.
The capacity reduction apparatus 200 of the cloud platform further includes a migration module 207 for migrating all instances in the target virtual machine with a relatively small total number of various instances to another virtual machine with a relatively large total number of various instances. After obtaining the instance distribution information contained in each target virtual machine, or after undergoing any deletion operation in the 6 capacity reduction schemes, selecting a primary virtual machine according to the size of the available space or the number of the contained instances, migrating all the instances in the target virtual machines containing a small total number of various instances to another primary virtual machine, and releasing the virtual machines which are idle after migration.
In another specific implementation, a large number of policy rules are stored in the policy module 204, and the policy module 204 may at least include a counting unit 2042 and a deleting unit 2044, where the counting unit 2042 and the deleting unit 2044 may execute 6 complete capacity reduction policies in the embodiments corresponding to fig. 5 to 12. Specifically, the following 6 cases were used.
Case 1: the target virtual machine comprises at least one special virtual machine, and the special virtual machine only comprises the example of the target application; the counting unit 2042 is configured to determine a relationship between the total number of instances in all the special virtual machines and N; if counting unit 2042 determines that the total number of instances in all the special virtual machines is greater than or equal to N, counting unit 2042 further determines the relationship between the number of instances in the special virtual machine with the smallest number of instances and N, and if the number of instances in the special virtual machine with the smallest number of instances is greater than or equal to N, deleting unit 2044 is specifically configured to delete N instances in the special virtual machine with the smallest number of instances.
If only one special virtual machine exists, the technical unit can directly judge the relation between the number of instances in the special virtual machine and N, and if the number of instances in the special virtual machine is more than or equal to N, the N instances are directly deleted from the special virtual machine; if the number of instances in the particular virtual machine is less than N, the corresponding module performs as in case 3.
Case 2: the target virtual machine comprises at least one special virtual machine, and the special virtual machine only comprises the example of the target application; the counting unit 2042 is configured to determine a relationship between the total number of instances in all the special virtual machines and N; if counting unit 2042 determines that the total number of instances in all the special virtual machines is greater than or equal to N, counting unit 2042 determines the relationship between the number of instances in the special virtual machine with the smallest number of instances and N again, and if the number of instances in the special virtual machine with the smallest number of instances is less than N, deleting unit 2044 is specifically configured to delete all the instances in the first M special virtual machines according to the order of the total number of instances in each special virtual machine from small to large, where the deleted number is recorded as N-X, so that the number of instances included in the M +1 th special virtual machine in the order is greater than or equal to X, X is the remaining deleted number of instances of the target application, and M and X are both integers greater than 0; the deletion unit 2044 deletes X instances in the M +1 th special virtual machine in the order.
Case 3: the target virtual machine comprises at least one special virtual machine, and the special virtual machine only comprises the example of the target application; the counting unit 2042 is configured to determine a relationship between the total number of instances in all the special virtual machines and N; if the counting unit 2042 determines that the total number of instances in all the special virtual machines is less than N, the deleting unit 2044 is configured to delete all the instances in all the special virtual machines, and the deleted number is recorded as N-Y; counting unit 2042 is further configured to determine a relationship between the number of instances of the target application included in the remaining target virtual machine that includes the smallest number of instances and Y; if counting unit 2042 determines that the number of instances of the target application included in the remaining target virtual machine with the smallest number of instances is greater than or equal to Y, deleting unit 2044 is specifically configured to delete Y instances of the target application in the special virtual machine with the smallest number of instances.
Case 4: the target virtual machine comprises at least one special virtual machine, and the special virtual machine only comprises the example of the target application; the counting unit 2042 is configured to determine a relationship between the total number of instances in all the special virtual machines and N; if the counting unit 2042 determines that the total number of instances in all the special virtual machines is less than N, the deleting unit 2044 is configured to delete all the instances in all the special virtual machines, and the deleted number is recorded as N-Y; counting unit 2042 is further configured to determine a relationship between the number of instances of the target application included in the remaining target virtual machine that includes the smallest number of instances and Y; if the counting unit 2042 determines that the number of instances of the target application included in the remaining target virtual machines with the smallest number of instances is less than Y, the deleting unit 2044 is specifically configured to delete all the instances of the target application from the first M1 remaining target virtual machines in an order from a small number to a large number of the total number of instances included in each remaining target virtual machine, where the deleted number is recorded as Y-X1, the number of instances including the target application in the M1+1 th remaining target virtual machine in the order is greater than or equal to X1, X1 is the remaining deleted number of instances of the target application, and M1 and X1 are both integers greater than 0; deletion unit 2044 deletes the X1 instances of the target application in the M1+1 th remaining target virtual machine in the order.
Case 5: counting unit 2042 is configured to determine a relationship between the number of instances of the target application included in the target virtual machine with the smallest number of instances and N; if the counting unit 2042 determines that the number of instances of the target application included in the target virtual machine with the minimum total number of instances is greater than or equal to N, the deleting unit 2044 is specifically configured to delete N instances of the target application in the target virtual machine with the minimum total number of instances.
Case 6: counting unit 2042 is configured to determine a relationship between the number of instances of the target application included in the target virtual machine with the smallest number of instances and N; if the counting unit 2042 determines that the number of instances of the target application included in the target virtual machine with the smallest total number of instances is less than N, the deleting unit 2044 is specifically configured to delete all the instances of the target application from the first M2 target virtual machines according to the order from the smallest total number of instances included in each target virtual machine to the largest, the deleted number is recorded as N-X2, the number of the instances of the target application included in the M2+1 th target virtual machine in the order is greater than or equal to X2, X2 is the remaining deleted number of the instances of the target application, and M2 and X2 are both integers greater than 0; the deleting unit 2044 deletes X2 instances of the target application in the M2+1 th target virtual machine in the above order.
The policy unit 2045 may also include a priority policy, which provides a sorting basis for the sorting unit to avoid sorting conflict during sorting, and specifically may include 3 sorting priority rules mentioned in the previous embodiment. In addition, the policy module 204 may further include some sort rules and migration policies, and may further include that an application developer makes a personalized deletion scheme according to requirements, so that the deletion operation is performed orderly, and N instances are deleted in the target virtual machine; the deletion module provides an application capacity reduction API style command according to the application identification in the deletion request of the instance and the quantity of the deleted instances: DELETE/v2/apps/: guid/instance/: count) (where guid is the unique ID identifying the application and count is the number of instances that need to be pruned) and the fields of guid represent different and unique applications.
The embodiment of the invention provides a capacity reduction device of a cloud platform, when capacity reduction is applied, a searching module 202 can search a target virtual machine containing an example of a target application according to an application identifier received by a receiving module 201, can obtain example distribution information of each target virtual machine through an obtaining module 203, and under the guidance of a policy module 204, delete the example in the target virtual machine according to a certain capacity reduction policy, preferentially select a virtual machine with few examples to delete the example, or first select a virtual machine containing only the example of the target application and preferentially select a virtual machine with few examples to delete the example, so that the less the example is, the more the single virtual machine is, the more the example is easily selected, the more the virtual machine is easy to be idle, and thus the virtual machine is released by a releasing module 206, and the examples after capacity reduction are concentrated in a few virtual machines as much as possible, the resource utilization rate of the cloud platform virtual machine can be improved, the energy consumption of the cloud platform is reduced, and the expenditure is saved for application developers.
Referring to fig. 15, fig. 15 is a schematic diagram of a cloud platform resource capacity reduction system according to an embodiment of the present invention. The apparatus 300 comprises:
the user terminal 301 is configured to send a deletion request for an instance of the cloud platform.
Generally, an application developer has authority to hold a user terminal, and one request mechanism is that when the developer presets the capacity reduction, the number of the capacity reduction and how to reduce the capacity on a cloud platform through the user terminal, the automatic management setting of the capacity reduction is completed, and a user can complete the capacity reduction operation through an automatic scaling service management system without real-time operation.
Another request mechanism is that a user needs to perform personalized capacity reduction operation according to the actual use condition of the cloud platform under a special time and special scene, and at this time, what instance of deletion request is specifically sent can be determined, so that certain flexibility is achieved.
Under the above two request mechanisms, the user's instance deletion request includes an application identifier and a quantity identifier, the application identifier indicates which application instance needs to be deleted, and the quantity identifier indicates how many application instances need to be deleted.
A cloud platform 302 to:
receiving an instance deletion request sent by a user terminal; finding out a target virtual machine according to the identification of the target application, wherein the target virtual machine is all virtual machines containing the instances of the target application; obtaining the type of application to which each instance in the target virtual machine belongs and the number of the instances of each application; and deleting N instances of the target application in the target virtual machine by adopting a preset capacity reduction strategy according to the type of the application to which each instance in the target virtual machine belongs and the quantity of the instances of each application.
In a specific implementation process, if the cloud platform 302 detects an idle virtual machine after the deletion operation, the idle virtual machine is released.
The embodiment of the invention provides a capacity reduction system of a cloud platform, wherein the cloud platform can realize personalized capacity reduction operation according to a deletion request of an instance of a user terminal; when the instance deleting operation is carried out, the instance is deleted in the target virtual machine according to a certain capacity reduction strategy, the virtual machine with few instances is preferentially selected to carry out the instance deleting operation, or the virtual machine only containing the instance of the target application is preferentially selected to carry out the instance deleting operation in the same way, so that the instances are more easily selected when the instances are fewer and the virtual machine is more single, the virtual machine is more easily idle and is released, the instances are concentrated in a few virtual machines as much as possible after capacity reduction, the resource utilization rate of the cloud platform virtual machine can be improved, the energy consumption of the cloud platform is reduced, and the cost is saved for application developers.
Referring to fig. 16, fig. 16 is a schematic structural diagram of a capacity reduction device for cloud platform resources according to an embodiment of the present invention. The apparatus 400 comprises:
the processor 401 is configured to generate corresponding operation control signals, send the corresponding operation control signals to the corresponding components of the computing and processing device, and read and process data in software, in particular, read and process data and programs in the memory 402, so as to enable each functional module therein to perform a corresponding function, thereby controlling the corresponding components to perform actions according to the instruction.
The memory 402 is used for storing programs and various data, and mainly stores software elements such as an operating system, applications, and functional instructions, or a subset thereof, or an extended set thereof. The operating system includes various system programs such as windows family, etc. for implementing various basic services and processing hardware-based taskers, and may also include non-volatile random access memory (NVRAM) to provide processor 401 with functionality including managing hardware, software, and data resources in the computing processing device, supporting the inclusion of control software and applications.
A transceiver 403 for collecting, retrieving or transmitting information may be used to communicate information between modules.
The various hardware units described above may communicate via a bus connection.
As such, by calling the program or the instruction stored in the memory 402, the transceiver 403 can receive an instance deletion request for a target application on the cloud platform, and the processor 401 searches for a virtual machine including an instance of the target application, that is, a target virtual machine, according to an application identifier in the instance deletion request; the processor 401 obtains the instance distribution information of each target virtual machine, next, according to the instance deletion request, invokes N instances of the specific capacity reduction policy omitting deletion target application existing in the memory 402, detects whether there is a virtual machine with zero instance number after deletion, and when detecting an idle virtual machine with zero instance number, the processor 401 releases the idle virtual machine.
It will be apparent to those skilled in the art that all or a portion of the steps of the above methods may be performed by hardware associated with program instructions, and the program may be stored in a computer readable storage medium. From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by hardware, firmware, or a combination thereof.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (20)

1. A capacity reduction method for cloud platform resources, wherein the cloud platform resources are virtual machine resources on a cloud platform, and a virtual machine contains an application instance, and the method comprises the following steps:
receiving an instance deleting request for a target application on a cloud platform, wherein the instance deleting request carries a quantity identifier and an identifier of the target application; the number identification represents that the number of the instances needing to be deleted by the target application is N, and N is an integer greater than 0;
finding out a target virtual machine from the cloud platform according to the identification of the target application, wherein the target virtual machine is all virtual machines containing the instance of the target application;
obtaining the type of the application to which each instance belongs and the number of the instances of each application in the target virtual machine;
deleting N instances of the target application in the target virtual machine by adopting a preset capacity reduction strategy according to the application type of each instance in the target virtual machine and the quantity of the instances of each application;
the target virtual machine only includes one special virtual machine, the special virtual machine only includes the instance of the target application, the total number of the instances included in the special virtual machine is greater than or equal to N, and deleting the N instances of the target application in the target virtual machine by adopting a preset capacity reduction strategy includes:
deleting N instances in the special virtual machine;
or,
the target virtual machine comprises at least two special virtual machines, the special virtual machines only comprise the instances of the target application, and the total number of the instances contained in all the special virtual machines is greater than or equal to N;
the deleting the N instances of the target application in the target virtual machine by using the preset capacity reduction policy includes:
deleting N instances from at least one special virtual machine according to the sequence of the number of the instances contained in each special virtual machine from small to large;
or,
the target virtual machine comprises at least one special virtual machine, the special virtual machine only comprises the instances of the target application, and the total number of the instances in all the special virtual machines is less than N;
the deleting the N instances of the target application in the target virtual machine by using the preset capacity reduction policy includes:
deleting all the instances in all the special virtual machines, and recording the deleted number as N-Y;
deleting Y instances of the target application from at least one remaining target virtual machine according to the sequence of the total number of the instances contained in each remaining target virtual machine from less to more, wherein Y is the remaining deletion number of the instances of the target application, and Y is an integer greater than 0;
or,
the target virtual machine does not comprise a special virtual machine;
the deleting the N instances of the target application in the target virtual machine by using the preset capacity reduction policy includes:
and deleting the N instances of the target application from at least one target virtual machine according to the sequence of the total number of the instances contained in each target virtual machine from less to more.
2. The method of claim 1, wherein after deleting N instances of the target application in the target virtual machine using a preset capacity reduction policy, the method further comprises:
checking whether an idle virtual machine exists in the target virtual machine, wherein the number of instances contained in the idle virtual machine is zero;
and if the idle virtual machine appears in the target virtual machine, releasing the idle virtual machine.
3. The method according to claim 1, wherein said deleting N instances from said at least one special virtual machine in an order from a small number of instances to a large number of instances contained in each special virtual machine specifically comprises: and if the number of the instances contained in the special virtual machine with the minimum number of the instances is greater than or equal to N, deleting N instances in the special virtual machine with the minimum number of the instances.
4. The method according to claim 1, wherein said deleting N instances from said at least one special virtual machine in an order from a small number of instances to a large number of instances contained in each special virtual machine specifically comprises: if the number of the instances contained in the special virtual machine with the least number of the instances is less than N, deleting all the instances in the first M special virtual machines according to the sequence, wherein the deleted number is recorded as N-X, so that the number of the instances contained in the M + 1-th special virtual machine in the sequence is greater than or equal to X, X is the residual deletion number of the instances of the target application, and M and X are both integers greater than 0;
deleting X instances in the M +1 th special virtual machine in the sequence.
5. The method of claim 1, wherein the deleting Y instances of the target application from at least one of the remaining target virtual machines in the order of the total number of instances included in each of the remaining target virtual machines from a few to a large number specifically comprises:
and if the number of the instances of the target application in the remaining target virtual machines with the minimum total number of the instances is greater than or equal to Y, deleting Y instances of the target application in the remaining target virtual machines with the minimum total number of the instances.
6. The method of claim 1, wherein the deleting Y instances of the target application from at least one of the remaining target virtual machines in the order of the total number of instances included in each of the remaining target virtual machines from a few to a large number specifically comprises:
if the number of the instances containing the target application in the remaining target virtual machines with the smallest total number of the instances is smaller than Y, deleting all the instances of the target application from the first M1 remaining target virtual machines according to the sequence, wherein the deleted number is recorded as Y-X1, so that the number of the instances containing the target application in the M1+1 th remaining target virtual machine in the sequence is greater than or equal to X1, the X1 is the remaining deleted number of the instances of the target application, and the M1 and the X1 are both integers greater than 0;
deleting X1 instances of the target application in the M1+1 th remaining target virtual machine in the order.
7. The method according to claim 1, wherein said deleting N instances of said target application from at least one target virtual machine in an order from a few to a large total number of instances contained in each target virtual machine specifically comprises:
and if the number of the instances of the target application in the target virtual machine with the minimum total number of the instances is greater than or equal to N, deleting N instances of the target application in the target virtual machine with the minimum total number of the instances.
8. The method according to claim 1, wherein said deleting N instances of said target application from at least one target virtual machine in an order from a few to a large total number of instances contained in each target virtual machine specifically comprises:
if the number of the instances containing the target application in the target virtual machine with the minimum total number of the instances is smaller than N, deleting all the instances of the target application from the first M2 target virtual machines according to the sequence, wherein the deleted number is recorded as N-X2, so that the number of the instances containing the target application in the M2+1 th target virtual machine in the sequence is larger than or equal to X2, X2 is the remaining deleted number of the instances of the target application, and M2 and X2 are both integers larger than 0;
deleting X2 instances of the target application in the M2+1 th target virtual machine in the order.
9. The method according to any one of claims 1 to 8, wherein, when the total number of instances included in each of the plurality of target virtual machines is the same, the instances of the target applications included in the target virtual machine having the smallest number of application types are preferentially deleted.
10. The method according to any one of claims 1 to 8, wherein, when the total number of instances included in each of the plurality of target virtual machines is the same and the number of types of applications included in each of the plurality of target virtual machines is also the same, the instance of the target application included in the target virtual machine including the smallest number of instances of the target application is preferentially deleted.
11. The method according to any one of claims 1 to 8, wherein when the total number of instances included in each of the plurality of target virtual machines is the same, the number of types of applications included in each of the plurality of target virtual machines is also the same, and the number of instances including the target application is also the same, the instance of the target application included in the target virtual machine in which the instance having the latest or earliest starting time of the target application is located is preferentially deleted, or the instance of the target application is randomly selected to be deleted in any one of the plurality of target virtual machines.
12. An apparatus for scaling cloud platform resources, the apparatus comprising:
the device comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving an instance deleting request for a target application on a cloud platform, and the instance deleting request carries a quantity identifier and an identifier of the target application; the number identification represents that the number of the instances needing to be deleted by the target application is N, and N is an integer greater than 0;
the searching module is used for searching a target virtual machine from the cloud platform according to the identifier of the target application received by the receiving module, wherein the target virtual machine is all virtual machines containing the instance of the target application;
the obtaining module is used for obtaining the application type of each instance in the target virtual machine searched by the searching module and the quantity of each application instance;
the policy module is used for deleting the N instances of the target application in the target virtual machine by adopting a preset capacity reduction policy according to the type of the application to which each instance belongs and the quantity of the instances of each application in the target virtual machine, which are obtained by the obtaining module;
if the target virtual machine comprises a special virtual machine which only comprises the target application instance, the strategy module comprises a counting unit and a deleting unit;
only one special virtual machine is included in the target virtual machine;
the counting unit is used for judging the relation between the total number of the instances in the special virtual machine and N;
if the counting unit determines that the total number of instances in the special virtual machine is greater than or equal to N,
the deletion unit is configured to delete N instances from the special virtual machine;
or,
the target virtual machine comprises at least two special virtual machines;
the counting unit is used for judging the relation between the total number of the instances in all the special virtual machines and N;
if the counting unit determines that the total number of instances in all special virtual machines is greater than or equal to N,
the deleting unit is configured to delete N instances from at least one of the special virtual machines in an order from a small number of instances to a large number of instances included in each of the special virtual machines;
or,
the target virtual machine comprises at least one special virtual machine;
the counting unit is used for judging the relation between the total number of the instances in all the special virtual machines and N;
if the counting unit determines that the total number of the instances in all the special virtual machines is less than N, the deleting unit is configured to:
deleting all the instances in all the special virtual machines, and recording the deleted number as N-Y;
deleting Y instances of the target application from at least one remaining target virtual machine according to the sequence of the total number of the instances contained in each remaining target virtual machine from less to more, wherein Y is the remaining deletion number of the instances of the target application, and Y is an integer greater than 0;
if the target virtual machine does not comprise a special virtual machine;
the policy module is specifically configured to delete the N instances of the target application from the at least one target virtual machine in an order from a few to many of the total number of instances included in each target virtual machine.
13. The apparatus according to claim 12, wherein the apparatus further comprises a checking module and a releasing module, the checking module is configured to check whether a free virtual machine exists in the target virtual machine, and the number of instances included in the free virtual machine is zero;
and if the checking module checks that an idle virtual machine appears in the target virtual machine, the releasing module is used for releasing the idle virtual machine.
14. The apparatus of claim 12, wherein the counting unit is further configured to determine a relation between the number of instances in the special virtual machine containing the least number of instances and N;
if the counting unit determines that the number of instances in the special virtual machine with the minimum number of instances is greater than or equal to N, the deleting unit is specifically configured to delete N instances in the special virtual machine with the minimum number of instances.
15. The apparatus of claim 12, wherein the counting unit is further configured to determine a relation between the number of instances in the special virtual machine containing the least number of instances and N;
if the counting unit determines that the number of the instances in the special virtual machine with the minimum number of the instances is smaller than N, the deleting unit is specifically configured to:
deleting all the instances in the first M special virtual machines according to the sequence, wherein the deleted number is recorded as N-X, the number of the instances contained in the M + 1-th special virtual machine in the sequence is larger than or equal to X, X is the residual deletion number of the instances of the target application, and M and X are integers larger than 0;
deleting X instances in the M +1 th special virtual machine in the sequence.
16. The apparatus of claim 12, wherein the counting unit is further configured to determine a relationship between Y and the number of instances of the target application included in the remaining target virtual machine including the least number of instances;
if the counting unit determines that the number of the instances of the target application included in the remaining target virtual machine with the smallest number of the included instances is greater than or equal to Y, the deleting unit is specifically configured to delete Y instances of the target application in the special virtual machine with the smallest number of the included instances.
17. The apparatus of claim 12, wherein the counting unit is further configured to determine a relationship between Y and the number of instances of the target application included in the remaining target virtual machine including the least number of instances;
if the counting unit determines that the number of the instances of the target application included in the remaining target virtual machine with the smallest number of the instances included in the remaining target virtual machine is less than Y, the deleting unit is specifically configured to:
deleting all instances of the target application from the first M1 remaining target virtual machines according to the sequence, wherein the deleted number is recorded as Y-X1, so that the number of the instances containing the target application in the M1+1 th remaining target virtual machine in the sequence is greater than or equal to X1, X1 is the remaining deleted number of the instances of the target application, and M1 and X1 are both integers greater than 0;
deleting X1 instances of the target application in the M1+1 th remaining target virtual machine in the order.
18. The apparatus of claim 12, wherein the policy module comprises a counting unit and a deleting unit; the counting unit is used for judging the relation between the number of the instances of the target application contained in the target virtual machine with the least number of the instances and N;
if the counting unit determines that the number of instances including the target application in the target virtual machine with the minimum total number of instances included is greater than or equal to N, the deleting unit is specifically configured to delete N instances of the target application in the target virtual machine with the minimum total number of instances included.
19. The apparatus of claim 12, wherein the policy module comprises a counting unit and a deleting unit; the counting unit is used for judging the relation between the number of the instances of the target application contained in the target virtual machine with the least number of the instances and N;
if the counting unit determines that the number of the instances including the target application in the target virtual machine with the minimum total number of the included instances is less than N, the deleting unit is specifically configured to:
deleting all instances of the target application from the first M2 target virtual machines according to the sequence, wherein the deleted number is recorded as N-X2, so that the number of the instances containing the target application in the M2+1 th target virtual machine in the sequence is greater than or equal to X2, X2 is the residual deletion number of the instances of the target application, and M2 and X2 are both integers greater than 0; deleting X2 instances of the target application in the M2+1 th target virtual machine in the order.
20. A capacity reduction system for cloud platform resources, the system comprising:
the system comprises a user terminal and a cloud platform;
the user terminal is used for sending an instance deleting request for a target application on the cloud platform to the cloud platform, wherein the instance deleting request carries a quantity identifier and an identifier of the target application; the number identification represents that the number of the instances needing to be deleted by the target application is N, and N is an integer greater than 0;
the cloud platform is to:
receiving an instance deletion request sent by the user terminal;
finding out a target virtual machine according to the identification of the target application, wherein the target virtual machine is all virtual machines containing the instance of the target application;
obtaining the type of the application to which each instance belongs and the number of the instances of each application in the target virtual machine;
deleting N instances of the target application in the target virtual machine by adopting a preset capacity reduction strategy according to the application type of each instance in the target virtual machine and the quantity of the instances of each application;
the target virtual machine only includes one special virtual machine, the special virtual machine only includes the instance of the target application, the total number of the instances included in the special virtual machine is greater than or equal to N, and deleting the N instances of the target application in the target virtual machine by adopting a preset capacity reduction strategy includes:
deleting N instances in the special virtual machine;
or,
the target virtual machine comprises at least two special virtual machines, the special virtual machines only comprise the instances of the target application, and the total number of the instances contained in all the special virtual machines is greater than or equal to N;
the deleting the N instances of the target application in the target virtual machine by using the preset capacity reduction policy includes:
deleting N instances from at least one special virtual machine according to the sequence of the number of the instances contained in each special virtual machine from small to large;
or,
the target virtual machine comprises at least one special virtual machine, the special virtual machine only comprises the instances of the target application, and the total number of the instances in all the special virtual machines is less than N;
the deleting the N instances of the target application in the target virtual machine by using the preset capacity reduction policy includes:
deleting all the instances in all the special virtual machines, and recording the deleted number as N-Y;
deleting Y instances of the target application from at least one remaining target virtual machine according to the sequence of the total number of the instances contained in each remaining target virtual machine from less to more, wherein Y is the remaining deletion number of the instances of the target application, and Y is an integer greater than 0;
or,
the target virtual machine does not comprise a special virtual machine;
the deleting the N instances of the target application in the target virtual machine by using the preset capacity reduction policy includes:
and deleting the N instances of the target application from at least one target virtual machine according to the sequence of the total number of the instances contained in each target virtual machine from less to more.
CN201410848185.1A 2014-12-29 2014-12-29 A kind of capacity reduction method, device and the system of cloud platform resource Expired - Fee Related CN104539708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410848185.1A CN104539708B (en) 2014-12-29 2014-12-29 A kind of capacity reduction method, device and the system of cloud platform resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410848185.1A CN104539708B (en) 2014-12-29 2014-12-29 A kind of capacity reduction method, device and the system of cloud platform resource

Publications (2)

Publication Number Publication Date
CN104539708A CN104539708A (en) 2015-04-22
CN104539708B true CN104539708B (en) 2018-01-23

Family

ID=52855175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410848185.1A Expired - Fee Related CN104539708B (en) 2014-12-29 2014-12-29 A kind of capacity reduction method, device and the system of cloud platform resource

Country Status (1)

Country Link
CN (1) CN104539708B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293868A (en) * 2015-05-15 2017-01-04 苏宁云商集团股份有限公司 In a kind of cloud computing environment, virtual machine expands capacity reduction method and scalable appearance system
CN104954463B (en) 2015-06-12 2018-05-18 华为技术有限公司 A kind of method, equipment and the system of the subscriber information management of application
CN110806920B (en) * 2015-09-10 2022-12-13 华为云计算技术有限公司 Mirror image deployment method and device
CN105740054A (en) * 2016-02-01 2016-07-06 浪潮软件股份有限公司 Virtual machine management method and device
CN107968810B (en) * 2016-10-20 2021-07-27 阿里巴巴集团控股有限公司 Resource scheduling method, device and system for server cluster
CN109521943B (en) * 2017-09-19 2022-09-20 腾讯科技(深圳)有限公司 Cloud database instance distribution method and related product
CN109032755B (en) * 2018-06-29 2020-12-01 优刻得科技股份有限公司 Container service hosting system and method for providing container service
CN110825703B (en) * 2019-11-01 2023-04-11 浪潮云信息技术股份公司 Method for realizing elastic expansion and contraction of file system based on timing task
CN113918093B (en) * 2021-09-26 2023-11-03 福建天泉教育科技有限公司 Capacity reduction optimization method and terminal
CN113961147A (en) * 2021-10-26 2022-01-21 江苏安超云软件有限公司 Method and application for recycling space from deleted blocks on cloud platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236603A (en) * 2010-04-29 2011-11-09 国际商业机器公司 Garbage recycling method and system in virtual environment
CN103605575A (en) * 2013-11-18 2014-02-26 深圳市远行科技有限公司 Cloud Foundry platform application scheduling system and Cloud Foundry platform application scheduling method
US8706852B2 (en) * 2011-08-23 2014-04-22 Red Hat, Inc. Automated scaling of an application and its support components
CN103916396A (en) * 2014-04-10 2014-07-09 电子科技大学 Method for automatic expansion of application examples of cloud platform based on load self-adaption

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9357034B2 (en) * 2012-09-07 2016-05-31 Oracle International Corporation System and method for orchestration of services for use with a cloud computing environment
US9383986B2 (en) * 2013-06-18 2016-07-05 Disney Enterprises, Inc. Safe low cost web services software deployments

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236603A (en) * 2010-04-29 2011-11-09 国际商业机器公司 Garbage recycling method and system in virtual environment
US8706852B2 (en) * 2011-08-23 2014-04-22 Red Hat, Inc. Automated scaling of an application and its support components
CN103605575A (en) * 2013-11-18 2014-02-26 深圳市远行科技有限公司 Cloud Foundry platform application scheduling system and Cloud Foundry platform application scheduling method
CN103916396A (en) * 2014-04-10 2014-07-09 电子科技大学 Method for automatic expansion of application examples of cloud platform based on load self-adaption

Also Published As

Publication number Publication date
CN104539708A (en) 2015-04-22

Similar Documents

Publication Publication Date Title
CN104539708B (en) A kind of capacity reduction method, device and the system of cloud platform resource
CN113243005B (en) Performance-based hardware emulation in an on-demand network code execution system
US9760396B2 (en) Managing a server template
US8930957B2 (en) System, method and program product for cost-aware selection of stored virtual machine images for subsequent use
CN108319496B (en) Resource access method, service server, distributed system and storage medium
CN109417488B (en) Method and equipment for managing virtual network function resources
CN113010265A (en) Pod scheduling method, scheduler, memory plug-in and system
CN113448743A (en) Method, electronic device and computer program product for task processing
Bok et al. An efficient MapReduce scheduling scheme for processing large multimedia data
WO2014040424A1 (en) Method and apparatus for patching
CN113687779B (en) Data migration method, device, electronic equipment and readable storage medium
CN110162396A (en) Method for recovering internal storage, device, system and storage medium
CN111885184A (en) Method and device for processing hot spot access keywords in high concurrency scene
Tchana et al. Software consolidation as an efficient energy and cost saving solution for a SaaS/PaaS cloud model
CN107977275B (en) Task processing method based on message queue and related equipment
CN104391736B (en) The park mode method to set up and device of virtual machine
CN104679575A (en) Control system and control method for input and output flow
CN105677481A (en) Method and system for processing data and electronic equipment
CN108733536B (en) Monitoring management system and method
CN115136133A (en) Single use execution environment for on-demand code execution
CN112231053A (en) Load balancing service distribution method and device
CN107045452B (en) Virtual machine scheduling method and device
Liu et al. Scheduling parallel jobs using migration and consolidation in the cloud
CN106325972B (en) Virtual machine management method and network equipment
CN110618946A (en) Stack memory allocation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180123

Termination date: 20181229