CN107562510A - The management method and management equipment of a kind of application example - Google Patents

The management method and management equipment of a kind of application example Download PDF

Info

Publication number
CN107562510A
CN107562510A CN201610505659.1A CN201610505659A CN107562510A CN 107562510 A CN107562510 A CN 107562510A CN 201610505659 A CN201610505659 A CN 201610505659A CN 107562510 A CN107562510 A CN 107562510A
Authority
CN
China
Prior art keywords
application example
migrated
usage amount
resource usage
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.)
Granted
Application number
CN201610505659.1A
Other languages
Chinese (zh)
Other versions
CN107562510B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610505659.1A priority Critical patent/CN107562510B/en
Publication of CN107562510A publication Critical patent/CN107562510A/en
Application granted granted Critical
Publication of CN107562510B publication Critical patent/CN107562510B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present invention discloses the management method and management equipment of a kind of application example, and wherein method includes:Obtain the resource usage amount of the first VM application example to be migrated in more VM, application example to be migrated is the application example in an example cluster, wherein, example cluster is the application example set of same application, example cluster includes at least two application examples, resource usage amount is used for the stock number for representing that application example initial deployment is allocated when a VM, or the stock number used for representing application example within a period of time;According to the resource usage amount of application example to be migrated, by application example to be migrated from the first VM migrate at most platform VM in the 2nd VM, application example in the non-deployment examples clusters of 2nd VM, stock number idle the 2nd VM are more than or equal to the resource usage amount of application example to be migrated.Using the present invention, can improve that migration application example brings reduces the problem of applying the reliability of operation in VM.

Description

The management method and management equipment of a kind of application example
Technical field
The present invention relates to the management method and management equipment of technical field of data transmission, more particularly to a kind of application example.
Background technology
With the extensive application become increasingly popular with cloud computing of cloud computing technology, the High Availabitity of service is being realized in cloud computing The advantage of property, the scalability of disposal ability etc. is more and more approved by industry.Wherein, cloud computing can will apply journey The operation of sequence and development environment service as a kind of, and operation and development environment are required when referring to provide application program operation The cloud platform of the resources such as the central processing unit (Central Processing Unit, CPU) wanted, internal memory, disk.Usual cloud is put down Platform includes multiple virtual machines (Virtual Machine, VM), and VM be by caused by after being virtualized to hardware resource, this In hardware resource can include one or more physical machine for being used as storage device, network server device etc.;Pass through void Planization technology can virtually dissolve more mutually isolated VM in one or more physical machine, that is, allow processor, interior Deposit, the physical resource such as disk and input/output end port (input/output, I/O) becomes the resource pool that can dynamically manage, The resource in the resource pool is provided to virtual machine again to use.For example, the application program that deployment one is applied in VM, and should to this Certain resource is distributed with program, the application program being usually deployed can be referred to as the application example of the application.In practice, dispose The user of application example or enterprise can dispose one or more application example of this application in cloud platform.
Well imagine, the application example of types of applications is contained in each VM of cloud platform, and be deployed on these VM Application example is often needed from a virtual machine (vm) migration to another virtual machine due to reasons such as resource allocations, but existing Migration application example method, can cause migration after application example deployment reduce the application example corresponding to applying in cloud Reliability of operation in the VM of platform.
The content of the invention
The embodiment of the present invention provides a kind of management method and management equipment of application example, can improve because migration application is real Example and that brings reduce the problem of applying the reliability of operation in VM.
In a first aspect, the embodiments of the invention provide a kind of management method of application example, the management applied to cloud platform Equipment, in the cloud platform operation have more virtual machine VM, this method includes:Obtain the to be migrated of the first VM in the more VM The resource usage amount of application example, the application example to be migrated are the application examples in an example cluster, wait to move according to described The resource usage amount of application example is moved, the application example to be migrated is migrated from the first VM to the into the more VM Two VM, the application example that the 2nd VM is not disposed in the example cluster, stock number idle the 2nd VM are more than or waited In the resource usage amount of the application example to be migrated.Same application has been disposed by the way that the application example after migration is not deployed in Application example VM in, realize the decentralized deployment to the application example of same application, will not thus make to meet same The VM of multiple this condition of application example of identical quantity increase is deployed in platform VM, that is to say, that will not increase due to a VM Failure and lead to not operation same application application example quantity, enter without increase application operation failure probability, That is can improve because what migration application example was brought reduces the problem of applying the reliability of operation in VM.
It should be noted is that the example cluster is the application example set of same application, the example cluster bag Include at least two application examples, it is to be understood that if one applies an application example is only deployed in cloud platform, no In the presence of the example cluster of the application;If one applies two or more application example is deployed in cloud platform, In the presence of the example cluster of the application, the example cluster of the application includes whole application examples of the application.
Need to illustrate on the other hand, the resource usage amount is used to represent application example initial deployment in the first VM When allocated stock number, for application example to be migrated, the resource usage amount of the application example to be migrated can be The application example initial deployment to be migrated processor check figure allocated when a VM, allocated memory headroom, quilt It is at least one in the stock numbers such as the disk space of distribution;Or the resource usage amount is used to represent application example at one section The interior stock number used, for application example to be migrated, the resource usage amount of the application example to be migrated can be The application example to be migrated is deployed in the processor check figure used during a VM in the range of a period of time, the internal memory used It is at least one in the stock numbers such as space, the disk space used, I/O number of requests.It is understood that in resource usage amount Foregoing description in, the parameter that stock number includes is merely illustrative, and stock number can also be included into parameters such as numbers of passes.
With reference in a first aspect, in the first implementation of first aspect, determined from the more virtual machine VM First VM, the first VM resources occupation rate are less than preset value, the resources occupation rate by following parameter extremely Few one is calculated:The memory space occupancy of the processor occupancy of first VM, memory usage and disk.
With reference to the first of first aspect or first aspect implementation, in second of implementation of first aspect, The resource usage amount according to the application example to be migrated, by the application example to be migrated from the first VM migrate to The 2nd VM in the more VM, including:It is true from the more VM according to the resource usage amount of the application example to be migrated The 2nd VM is made, wherein, the 2nd VM meets first condition, and the first condition is that the 2nd VM does not dispose the example Application example in cluster, the resource that stock number idle the 2nd VM is more than or equal to the application example to be migrated use Amount, the resources occupation rate of the 2nd VM are more than the resources occupation rate of the first VM;Or the 2nd VM meets Article 2 Part, the second condition are the application example that the 2nd VM is not disposed in the example cluster, the money of the 2nd VM free time Source amount is more than or equal to the resource usage amount of the application example to be migrated, and the resources occupation rate of the 2nd VM is more than described pre- If value;The application example to be migrated is migrated to the 2nd VM from the first VM.
In feasible scheme, by the way that whole application examples in the relatively low VM of resources occupation rate are moved into resources occupation rate In higher VM, and in the VM that resources occupation rate is relatively low whole application examples migration after, by the resources occupation rate compared with Low VM is closed, and can save the consumption of electric power etc., and can also improve resources occupation rate in the VM after migration.If treat Migration application example is not the application example of any instance cluster, i.e., the example to be migrated is by the only one of an application deployment During application example, the resource usage amount of application example to be migrated is obtained, according to the resource usage amount of the application example to be migrated, The application example to be migrated is migrated to the 3rd VM in the more VM, money idle the 3rd VM from the first VM Resource usage amount of the source amount more than or equal to the application example to be migrated.
With reference to the first of first aspect or first aspect implementation, in the third implementation of first aspect, The resource usage amount according to the application example to be migrated, by the application example to be migrated from the first VM migrate to The 2nd VM in the more VM, including:
In the resource usage amount according to the application example to be migrated, determine at least two mesh in the more VM be present In the case of marking VM, the 2nd VM is determined from least two target VM, wherein, at least two target VM's is every Individual target VM meets third condition, and the third condition is the application example that the target VM is not disposed in the example cluster, And the idle stock number of the target VM is more than or equal to the resource usage amount of the application example to be migrated, the 2nd VM The idle stock number that the condition of satisfaction is the 2nd VM and the resource usage amount gap of the application example to be migrated are minimum;
The application example to be migrated is migrated to the 2nd VM from the first VM.
Second aspect, the embodiments of the invention provide a kind of management equipment, it is characterised in that including:Acquiring unit and move Move unit.Wherein, acquiring unit, for obtaining the resource usage amount of the first VM application example to be migrated in the more VM, The application example to be migrated is the application example in an example cluster;Migration units, for real according to the application to be migrated The resource usage amount of example, the application example to be migrated is migrated to the 2nd VM in the more VM, institute from the first VM The application example that the 2nd VM is not disposed in the example cluster is stated, stock number idle the 2nd VM is more than or equal to described treat Migrate the resource usage amount of application example.The application that same application has been disposed by the way that the application example after migration is not deployed in is real In the VM of example, realize the decentralized deployment to the application example of same application, will not thus increase due to a VM failures and Lead to not the quantity of the application example of the same application of operation, the probability entered without increasing application operation failure, that is, Saying can improve because what migration application example was brought reduces the problem of applying the reliability of operation in VM.
It should be noted is that the example cluster is the application example set of same application, the example cluster bag Include at least two application examples, it is to be understood that if one applies an application example is only deployed in cloud platform, no In the presence of the example cluster of the application;If one applies two or more application example is deployed in cloud platform, In the presence of the example cluster of the application, the example cluster of the application includes whole application examples of the application.
Need to illustrate on the other hand, the resource usage amount is used to represent application example initial deployment in the first VM When allocated stock number, for application example to be migrated, the resource usage amount of the application example to be migrated can be The application example initial deployment to be migrated processor check figure allocated when a VM, allocated memory headroom, quilt It is at least one in the stock numbers such as the disk space of distribution;Or the resource usage amount is used to represent application example at one section The interior stock number used, for application example to be migrated, the resource usage amount of the application example to be migrated can be The application example to be migrated is deployed in the processor check figure used during a VM in the range of a period of time, the internal memory used It is at least one in the stock numbers such as space, the disk space used, I/O number of requests.It is understood that in resource usage amount Foregoing description in, the parameter that stock number includes is merely illustrative, and stock number can also be included into parameters such as numbers of passes.
With reference to second aspect, in the first implementation of second aspect, the management equipment also includes determining unit. Determining unit, for determining the first VM from the more virtual machine VM, the resources occupation rate of the first VM is less than Preset value, the resources occupation rate are calculated by least one in following parameter:The processor of first VM takes The memory space occupancy of rate, memory usage and disk.
With reference to the first of second aspect or second aspect implementation, in second of implementation of second aspect, In the resource usage amount according to the application example to be migrated, the application example to be migrated is migrated to institute from the first VM The aspect of the 2nd VM in more VM is stated, the migration units are specifically used for using according to the resource of the application example to be migrated Amount, the 2nd VM is determined from the more VM, wherein, the 2nd VM meets first condition, and the first condition is described The application example that 2nd VM is not disposed in the example cluster, stock number idle the 2nd VM are waited to move more than or equal to described The resource usage amount of application example is moved, the resources occupation rate of the 2nd VM is more than the resources occupation rate of the first VM;Or 2nd VM meets second condition, and the second condition is that the application that the 2nd VM is not disposed in the example cluster is real Example, stock number idle the 2nd VM are more than or equal to the resource usage amount of the application example to be migrated, the 2nd VM Resources occupation rate be more than the preset value;And the application example to be migrated is migrated to described second from the first VM VM。
In feasible scheme, by the way that whole application examples in the relatively low VM of resources occupation rate are moved into resources occupation rate In higher VM, and in the VM that resources occupation rate is relatively low whole application examples migration after, by the resources occupation rate compared with Low VM is closed, and can save the consumption of electric power etc., and can also improve resources occupation rate in the VM after migration.If treat Migration application example is not the application example of any instance cluster, i.e., the example to be migrated is by the only one of an application deployment During application example, the resource usage amount of application example to be migrated is obtained, according to the resource usage amount of the application example to be migrated, The application example to be migrated is migrated to the 3rd VM in the more VM, money idle the 3rd VM from the first VM Resource usage amount of the source amount more than or equal to the application example to be migrated.
With reference to the first of second aspect or second aspect implementation, in the third implementation of second aspect, In the resource usage amount according to the application example to be migrated, the application example to be migrated is migrated to institute from the first VM The aspect of the 2nd VM in more VM is stated, the migration units are specifically used for making according to the resource of the application example to be migrated Dosage, determine in the case of at least two target VM being present in the more VM, determined from least two target VM 2nd VM, wherein, each target VM of at least two target VM meets third condition, and the third condition is described The application example that target VM is not disposed in the example cluster, and the idle stock number of the target VM is more than or equal to described The resource usage amount of application example to be migrated;Idle stock number and institute of the condition that 2nd VM meets for the 2nd VM The resource usage amount gap for stating application example to be migrated is minimum;And by the application example to be migrated from the first VM migrate to 2nd VM.
The third aspect, the embodiments of the invention provide a kind of management equipment, the management equipment includes processor and storage Device;Wherein, the memory is used for store program codes, and the processor is used for the program code for calling the memory storage Perform following steps:The resource that the processor is used to obtain the first VM application example to be migrated in the more VM uses Amount, the application example to be migrated is the application example in an example cluster;The processor be used for according to it is described it is to be migrated should With the resource usage amount of example, the application example to be migrated is migrated to second in the more VM from the first VM VM, the application example that the 2nd VM is not disposed in the example cluster, stock number idle the 2nd VM are more than or equal to The resource usage amount of the application example to be migrated.Same application has been disposed by the way that the application example after migration is not deployed in In the VM of application example, the decentralized deployment to the application example of same application is realized, will not thus be increased due to a VM Failure and lead to not operation same application application example quantity, enter without increase application operation failure probability, That is can improve because what migration application example was brought reduces the problem of applying the reliability of operation in VM.
It should be noted is that the example cluster is the application example set of same application, the example cluster bag Include at least two application examples, it is to be understood that if one applies an application example is only deployed in cloud platform, no In the presence of the example cluster of the application;If one applies two or more application example is deployed in cloud platform, In the presence of the example cluster of the application, the example cluster of the application includes whole application examples of the application.
Need to illustrate on the other hand, the resource usage amount is used to represent application example initial deployment in the first VM When allocated stock number, for application example to be migrated, the resource usage amount of the application example to be migrated can be The application example initial deployment to be migrated processor check figure allocated when a VM, allocated memory headroom, quilt It is at least one in the stock numbers such as the disk space of distribution;Or the resource usage amount is used to represent application example at one section The interior stock number used, for application example to be migrated, the resource usage amount of the application example to be migrated can be The application example to be migrated is deployed in the processor check figure used during a VM in the range of a period of time, the internal memory used It is at least one in the stock numbers such as space, the disk space used, I/O number of requests.It is understood that in resource usage amount Foregoing description in, the parameter that stock number includes is merely illustrative, and stock number can also be included into parameters such as numbers of passes.
With reference to the third aspect, in the first implementation of the third aspect, the processor is additionally operable to from described more The first VM is determined in virtual machine VM, the resources occupation rate of the first VM is less than preset value, and the resources occupation rate is led to That crosses in following parameter at least one is calculated:The processor occupancy of first VM, memory usage and disk are deposited Store up space occupancy rate.
With reference to the first of the third aspect or the third aspect implementation, in second of implementation of the third aspect, The processor is used for according to the resource usage amount of the application example to be migrated, by the application example to be migrated from described the One VM is migrated to the 2nd VM in the more VM, is specially:The processor is used for according to the application example to be migrated Resource usage amount, the 2nd VM is determined from the more VM, wherein, the 2nd VM meets first condition, described first Part is the application example that the 2nd VM is not disposed in the example cluster, and stock number idle the 2nd VM is more than or equal to The resource usage amount of the application example to be migrated, the resources occupation rate of the 2nd VM are more than the resource occupation of the first VM Rate;Or the 2nd VM meets second condition, the second condition is that the 2nd VM is not disposed in the example cluster Application example, stock number idle the 2nd VM is more than or equal to the resource usage amount of the application example to be migrated, described 2nd VM resources occupation rate is more than the preset value;The processor is used for the application example to be migrated from described first VM is migrated to the 2nd VM.
With reference to the first of the third aspect or the third aspect implementation, in the third implementation of the third aspect, The processor is used for according to the resource usage amount of the application example to be migrated, by the application example to be migrated from described the One VM is migrated to the 2nd VM in the more VM, is specially:The processor is used for according to the application example to be migrated Resource usage amount, determine in the more VM exist at least two target VM in the case of, from least two targets The 2nd VM is determined in VM, wherein, each target VM of at least two target VM meets third condition, the Article 3 Part is the application examples do not disposed in the example cluster of the target VM, and the idle stock number of the target VM be more than or Equal to the resource usage amount of the application example to be migrated;The condition that 2nd VM meets is the idle money of the 2nd VM Measure minimum with the resource usage amount gap of the application example to be migrated in source;The processor is used for the application to be migrated is real Example is migrated to the 2nd VM from the first VM.
Fourth aspect of the embodiment of the present invention provides a kind of computer-readable storage medium, for saving as first aspect and second The computer software instructions used in management equipment in aspect, it, which is included, is used to perform the program designed by management equipment.
More VM in terms of the aforementioned four are by virtually being dissolved on virtualization technology to one or more physical machine , more VM are used for application deployment example;Management equipment in terms of the aforementioned four can be the physics individually set up Machine, in feasible scheme, physical machine can be not used in application deployment example corresponding to the management equipment.Or management equipment Management function can be realized in the VM for virtualizing to obtain by a physical machine, in feasible scheme, for realize manage work( The VM of energy can be with the VM for application deployment example in same physical machine.Whether which kind of mode, management equipment With to being managed for the VM of application deployment example.
In the embodiment of the present invention, the name of management equipment does not form restriction in itself to equipment, and in practical implementations, these set It is standby to occur with other titles.As long as the function of each equipment is similar with the present invention, belongs to the claims in the present invention and its wait Within the scope of technology.
In embodiments of the present invention, the process that some application example in the example cluster to same application is migrated In, application example to be migrated is migrated and is more than or equal to the resource usage amount of application example to be migrated to resource free quantity and does not wrap Containing in the VM of any application example in this example cluster, identical answer has been disposed by the way that the application example after migration is not deployed in In the VM of application example, realize the decentralized deployment to the application example of same application, will not thus increase due to One VM failures and lead to not operation same application application example quantity, enter without increase application operation failure it is general Rate, that is to say, that can improve because what migration application example was brought reduces the problem of applying the reliability of operation in VM.
The aspects of the invention or other aspects can more straightforwards in the following description.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of possible cloud platform Organization Chart of the embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of the management method of application example provided in an embodiment of the present invention;
Fig. 3 is a kind of exemplary plot of cloud platform provided in an embodiment of the present invention;
Fig. 4 a are a kind of structural representation of management equipment provided in an embodiment of the present invention;
Fig. 4 b are the structural representation of another management equipment provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another management equipment provided in an embodiment of the present invention.
Embodiment
The network architecture and business scenario of description of the embodiment of the present invention are in order to which more clearly the explanation present invention is implemented The technical scheme of example, does not form the restriction for technical scheme provided in an embodiment of the present invention, those of ordinary skill in the art Understand, with the differentiation of the network architecture and the appearance of new business scene, technical scheme provided in an embodiment of the present invention is for similar Technical problem, it is equally applicable.It should be noted that the term used in embodiments of the present invention is only specific merely for describing The purpose of embodiment, and it is not intended to be limiting the present invention.Odd number used in the embodiment of the present invention and appended claims " one kind " of form, " described " and "the" are also intended to including most forms, unless context clearly shows that other implications.Should also Work as understanding, term "and/or" used herein refers to and comprising the associated list items purposes of one or more are any or institute It is possible to combine.In addition, term " first ", " second ", " the 3rd " in description and claims of this specification and accompanying drawing " 4th " etc. is to be used to distinguish different objects, rather than for describing particular order.In addition, term " comprising " and " having " with And their any deformations, it is intended that cover non-exclusive include.Such as contain the process of series of steps or unit, side The step of method, system, product or equipment are not limited to list or unit, but alternatively also including the step of not listing Or unit, or alternatively also include for the intrinsic other steps of these processes, method, product or equipment or unit.
For the ease of understanding the present invention, a kind of applicable possible Organization Chart of the lower embodiment of the present invention is first introduced below.Fig. 1 Shown Organization Chart is cloud platform Organization Chart, wherein also schematically depict using the cloud platform user of the cloud platform and with pipe Manage the cloud platform management user of authority.Wherein, cloud platform includes more VM, such as VM1, VM2 ... VMn etc., and VM is to pass through Caused by after being virtualized to hardware resource, hardware resource here can include making as storage device, network server device etc. One or more physical machine;More can be virtually dissolved in one or more physical machine mutually by virtualization technology The VM of isolation, that is, allow the physical resources such as processor, internal memory, disk, I/O ports to become the resource pool that can dynamically manage, The resource in the resource pool is provided to virtual machine again to use, for example, multiple application examples are run in more VM, the plurality of application Example can correspond to one or more applications.As described in Figure 1, cloud platform user can be disposed in VM1 application example APPx and APPy;Application example APPm and APPn are disposed in VM2;Application example APPi is disposed in VMn;Wherein APPx and APPi is same The application example of one application, it should be understood that the application example that each VM is disposed in Fig. 1 is by way of example only.Cloud platform user is also The running situation for the application example oneself disposed can be understood from cloud platform.And cloud platform management user can be responsible for cloud Physical machine or VM real time execution situation in platform user, concern cloud platform (such as, if break down etc.), and it is comprehensive Consider cloud platform load capacity and formulate corresponding O&M strategy etc..
In practical application, more VM of cloud platform can be managed by configuring the management equipment in cloud platform.Wherein, manage Equipment can be the physical machine individually set up, and be not intended to application deployment example in the physical machine;Or management is set Standby management function can be realized in the VM for virtualizing to obtain by a physical machine, in feasible scheme, be managed for realizing The VM of function can be with the VM for application deployment example in same physical machine.Management equipment can be to for application deployment Application example in the VM of example is managed, for example, application example is moved into another VM from a VM.Existing migration application The method of example, the VM applied in cloud platform corresponding to the deployment reduction of the application example after the migration application example can be caused Middle reliability of operation.In embodiments of the present invention, some application example in the example cluster to same application moves During shifting, application example to be migrated is migrated to resource free quantity to the resource use for being more than or equal to application example to be migrated Measure and in the VM not comprising any application example in this example cluster, by the way that the application example after migration is not deployed in into portion In the VM for affixing one's name to the application example of same application, the decentralized deployment to the application example of same application is realized, thus will not Increase leads to not the quantity of the application example of the same application of operation due to a VM failures, enters without increasing application operation The probability of failure, that is to say, that can improve because reducing of bringing of migration application example applies the reliability of operation in VM Problem.
Fig. 2 is referred to, for the embodiments of the invention provide a kind of schematic flow sheet of the management method of application example.Such as figure Shown in 2, the methods described of the embodiment of the present invention may comprise steps of 201- steps 203.The manager of the application example Method is performed by management equipment.
201, the first VM is determined from more virtual machine VM, the resources occupation rate of the first VM, which is less than, to be preset Value, the resources occupation rate are calculated by least one in following parameter:It is the processor occupancy of first VM, interior Deposit occupancy and the memory space occupancy of disk.
Specifically, the management equipment determines that resources occupation rate is less than the first of preset value from more VM of cloud platform VM.Wherein, the resources occupation rate is calculated by least one in following parameter:The processor of first VM takes The memory space occupancy of rate, memory usage and disk, for example, the resources occupation rate can be according to processor occupancy With memory usage and processor occupancy corresponding to weight corresponding to weight and memory usage pass through weighted average calculation Obtain.
In optional scheme, if the resources occupation rate in the presence of two or more VM in the more VM is less than Preset value, resources occupation rate minimum is selected from the VM less than preset value is defined as the first VM;Or from less than preset value The quantity of application example is selected to dispose the minimum VM of determination the first in VM.Citing is these are only, the embodiment of the present invention is not done to this Limit.
It should be noted that the present embodiments relate to more VM in every VM refer to run one or more The VM of application example, for going back the VM of any application example of off-duty not in the VM of management of the embodiment of the present invention.
202, obtain the resource usage amount of the first VM application example to be migrated in the more VM, the application to be migrated Example is the application example in an example cluster.
Specifically, the resource that the management equipment obtains the first VM application example to be migrated in the more VM uses Amount, the application example to be migrated is the application example in an example cluster.Wherein, the example cluster is answering for same application With example collection, the example cluster includes at least two application examples, it is to be understood that if one applies in cloud platform An application example is only deployed, then in the absence of the example cluster of the application;If one applies two is deployed in cloud platform Or more than two application examples, then include the application in the presence of the example cluster of the application, the example cluster of the application Whole application examples.
Further, the resource usage amount is used for the money for representing that application example initial deployment is allocated when a VM Source is measured, and for application example to be migrated, the resource usage amount of the application example to be migrated can be the application to be migrated Example initial deployment processor check figure allocated when a VM, allocated memory headroom, allocated disk are empty Between etc. it is at least one in stock number;Or the resource usage amount is used to represent the money that application example uses within a period of time Source is measured, and for application example to be migrated, the resource usage amount of the application example to be migrated can be the application to be migrated Processor check figure that example deployment uses when a VM in the range of a period of time, the memory headroom that uses, use It is at least one in the stock numbers such as disk space, I/O number of requests.It is understood that in the foregoing description of resource usage amount In, the parameter that stock number includes is merely illustrative, and stock number can also be included into the parameters such as number of passes, the embodiment of the present invention pair Parameter included by stock number does not limit.
203, according to the resource usage amount of the application example to be migrated, by the application example to be migrated from described first VM is migrated to the 2nd VM in the more VM, the application example that the 2nd VM is not disposed in the example cluster, and described Stock number idle two VM is more than or equal to the resource usage amount of the application example to be migrated.
Specifically, resource usage amount of the management equipment according to the application example to be migrated, by it is described it is to be migrated should Migrated with example from the first VM to the 2nd VM in the more VM.Also, the 2nd VM will meet condition A and condition B:Condition A is the idle stock numbers of the 2nd VM more than or equal to the resource usage amount of the application example to be migrated, condition B It is the application example do not disposed in the example cluster in the 2nd VM.Pass through condition A satisfaction, it is possible to achieve to be migrated to answer With example can be after migration the 2nd VM in normal operation, further, pass through condition B satisfaction so that the application after migration Example is not deployed in the VM for the application example for having disposed same application, multiple due to that will not increase deployment identical after migration The VM of application example quantity, it would not also increase the probability to fail caused by VM failures using operation, therefore, it is possible to Improve because what migration application example was brought reduces the problem of applying the reliability of operation in VM.
Optionally, in the first feasible scheme, step 203 can also be accomplished by the following way:Wait to move according to described The resource usage amount of application example is moved, the 2nd VM is determined from the more VM.Specifically, the management equipment is determined The 2nd VM meet first condition, the first condition is that the application that the 2nd VM is not disposed in the example cluster is real Example, stock number idle the 2nd VM are more than or equal to the resource usage amount of the application example to be migrated, the 2nd VM Resources occupation rate be more than the first VM resources occupation rate;Or the 2nd VM meets second condition, the Article 2 Part is the application example that the 2nd VM is not disposed in the example cluster, and stock number idle the 2nd VM is more than or equal to The resource usage amount of the application example to be migrated, the resources occupation rate of the 2nd VM are more than the preset value.Management equipment In the case where more VM in cloud platform carry out resource arrangement, by by whole application examples in the low VM of resources occupation rate Move to respectively in the high VM of resources occupation rate, the centralized management to application example can be realized.It is determined that the 2nd VM it Afterwards, the application example to be migrated is migrated to the 2nd VM from the first VM.
Optionally, in second of feasible scheme, step 203 can also be accomplished by the following way:Treated according to The resource usage amount of application example is migrated, is determined in the case of at least two target VM being present in the more VM, from described The 2nd VM is determined at least two target VM.Specifically, each target VM of at least two target VM meets the 3rd Condition, the application example that the third condition is not disposed in the example cluster for the target VM, and the sky of the target VM Not busy stock number is more than or equal to the resource usage amount of the application example to be migrated;The management equipment determine described Resource usage amount gap of the idle stock number with the application example to be migrated that the condition that two VM meet is the 2nd VM It is minimum.It is determined that after the 2nd VM, the application example to be migrated is migrated to the 2nd VM from the first VM.
Further, the condition that at least two target VM meet described in second of feasible scheme is third condition, feasible Scheme in, can also be screened by the first condition or second condition of the first feasible scheme, if described more When the quantity that the target VM for meeting the second condition in VM be present is at least two, determined from least two target VM 2nd VM;Or if when the quantity that the target VM for meeting the third condition in the more VM be present is at least two, The 2nd VM is determined from least two target VM.
It should be noted that the free time that the condition of the 2nd VM determined by second of feasible scheme is the 2nd VM Stock number and the application example to be migrated resource usage amount gap it is minimum, and in feasible scheme, the 2nd VM expires The condition of foot can also be the idle stock numbers of the 2nd VM with the resource usage amount gap of the application example to be migrated most Greatly;Or the management equipment can randomly choose one from least two target VM and be defined as the 2nd VM.The present invention Embodiment to from least two target VM determine the 2nd VM used by determination mode do not limit.
In a kind of possible embodiment, according to centralized management strategy the resource in cloud platform is arranged when, Whole application examples in the relatively low VM of resources occupation rate can be moved in the higher VM of resources occupation rate, and by resource After whole application examples migration in the relatively low VM of occupancy, the relatively low VM of the resources occupation rate is closed, Neng Goujie The consumption of electric power saving etc., and can also improve resources occupation rate in the VM after migration.Wherein, the management equipment can also lead to Cross step 201 and determine that resources occupation rate is less than the first VM of preset value from more virtual machine VM, and to complete in the first VM Portion's application example is migrated, if application example to be migrated is the application example in an example cluster, by performing step 202 Complete to migrate with step 203, detailed process refers to the detailed description of step 202 and step 203, will not be repeated here;If treat Migration application example is not the application example of any instance cluster, i.e., the example to be migrated is by the only one of an application deployment During application example, the resource usage amount of application example to be migrated is obtained, according to the resource usage amount of the application example to be migrated, The application example to be migrated is migrated to the 3rd VM in the more VM, money idle the 3rd VM from the first VM Resource usage amount of the source amount more than or equal to the application example to be migrated.Wherein, the 3rd VM meets this condition, It can guarantee that application example to be migrated normal operation in the 3rd VM.Resource usage amount may be referred to the specific descriptions in step 202, It will not be repeated here.In feasible scheme, the 3rd VM is except meeting that it is described to be migrated that idle stock number is more than or equal to Outside the condition of the resource usage amount of application example, then meet another condition:Another condition is the resource occupation of the 3rd VM Rate is more than the resources occupation rate of the first VM, or another condition be the 3rd VM resources occupation rate be more than it is described default Value, so can move to the 3rd higher VM of resource utilization by the application example in the first relatively low VM of resources occupation rate In, further, optionally, the first VM can be the minimum VM of resources occupation rate.
Further, it is real if meeting that idle stock number is more than or equal to the application to be migrated in the presence of at least two target VM The condition of the resource usage amount of example;It is or described if meeting that idle stock number is more than or equal in the presence of at least two target VM The condition of the resource usage amount of application example to be migrated and meet resources occupation rate of the resources occupation rate more than the first VM Condition;Or if meet that idle stock number is more than or equal to the application example to be migrated in the presence of at least two target VM The condition of resource usage amount and meet that resources occupation rate is more than the condition of the preset value, the management equipment is from described at least two The 3rd VM is determined in platform target VM.In a kind of feasible scheme, the idle stock number of the 3rd VM determined with The resource usage amount gap of the application example to be migrated is minimum;In another feasible scheme, the 3rd VM determined is empty Not busy stock number and the resource usage amount of the application example to be migrated are with the biggest gap;In another feasible scheme, the pipe Reason equipment can randomly choose one from least two target VM and be defined as the 3rd VM.The embodiment of the present invention is to from least Determination mode does not limit used by determining the 3rd VM in two target VM.
In a kind of possible embodiment, the management equipment can perform step 201 to step according to prefixed time interval Rapid 203;Or the management equipment can perform in the case where receiving the resource on the more VM and arranging request Step 201 is to step 203;Or the management equipment can be in the situation for receiving the migration request to a certain application example Under, step 202 is performed to step 203.
Further, more VM in the embodiment of the present invention are one or more physical machine to be passed through on virtualization technology virtually Dissolve, more VM are used for application deployment example;Involved management equipment can be the physical machine individually set up, and pass through This physical machine performs the method described in step 201 to the step 203 in the embodiment of the present invention, in feasible scheme, Physical machine can be not used in application deployment example corresponding to the management equipment.Or the management function of management equipment can be Realized in the VM for virtualizing to obtain by a physical machine, in feasible scheme, for realize management function VM can with for The VM of application deployment example is in same physical machine, for example, have can by the first VM or the 2nd VM involved by the embodiment of the present invention Can be with realizing managing functions of equipment VM in same physical machine, the embodiment of the present invention is not limited this.Whether which kind of side Formula, management equipment can be to being managed for the VM of application deployment example.
Further, please also refer to Fig. 3, Fig. 3 more completely illustrates method shown in Fig. 2 from the angle of function logic may Other aspects being related to, to help reader to further understand the technical scheme of the application record, Fig. 3 carries for the embodiment of the present invention A kind of exemplary plot of the cloud platform supplied.As shown in figure 3, management module, monitoring resource module can be included in the cloud platform, answered With example deployment module, scheduling of resource module.These modules can perform the module to each VM in cloud platform respectively to be possessed Function.Wherein, monitoring resource module is used for the resource usage amount for monitoring each VM that the cloud platform is included and idle money Source is measured, and every VM resource usage amount can include the VM stock numbers dispensed or be used in the range of a period of time Stock number, stock number here can include at least one of following parameter:Processor check figure, internal memory Space and disk space.Further, monitoring resource module can also know the resource for each application example disposed in each VM Usage amount.Scheduling of resource module is used to determine the application example that needs are disposed deployment positional information, in feasible scheme, resource Scheduler module determines to dispose the VM of the application example according to the demand resource information of application example, and the deployed position of determination is believed Breath feeds back to application example deployment module, and application example deployment module completes the portion to application example according to this positional information Administration.Management module can know each VM resource usage amount and idle stock number from monitoring resource module, can also know The resource usage amount of each application example, for example, management module can be included by monitoring resource module from cloud platform it is more The first minimum VM of resources occupation rate is chosen in platform VM, is further migrated the first VM whole application examples included, is had Body transition process is:The resource usage amount of each application example to be migrated in the first VM is obtained, if application example to be migrated is one Application example in example cluster, the application example to be migrated is migrated to second in the more VM from the first VM VM, the application example that the 2nd VM is not disposed in the example cluster, stock number idle the 2nd VM are more than or equal to The resource usage amount of the application example to be migrated;If application example to be migrated is not the application example in any instance cluster, The application example to be migrated is migrated to the 3rd VM in the more VM, money idle the 3rd VM from the first VM Resource usage amount of the source amount more than or equal to the application example to be migrated.
It should be noted that the management module, monitoring resource module, application example deployment module and resource shown in Fig. 3 are adjusted Degree module is functional description in logic.The management equipment being related in embodiment illustrated in fig. 2 can pass through the management shown in Fig. 3 Module performs corresponding method and step.In feasible scheme, above-mentioned monitoring resource module, application example deployment module, resource are adjusted Degree module can be deployed in same physical machine with management module, can also be deployed in other physical machines, and the present invention is implemented Example is not limited this.
In embodiments of the present invention, by the way that whole application examples in the low VM of resources occupation rate are migrated to the utilization of resources In the higher VM of rate, it is possible to increase the resources occupation rate in the VM that application example moves to, and the no longer deployment closed after migration There is the VM of application example operation, the cost overhead of electric power equal energy source can be reduced, further, in the example set to same application During some application example in group is migrated, application example to be migrated is migrated to resource free quantity and is more than or equal to In the resource usage amount of application example to be migrated and VM not comprising any application example in this example cluster, by will migration Application example afterwards is not deployed in the VM for the application example for having disposed same application, realizes the application example to same application Decentralized deployment, will not thus increase due to a VM failures and lead to not the number of the application example of the same application of operation Amount, the probability entered without increasing application operation failure, that is to say, that can improve because what migration application example was brought reduces The problem of applying the reliability of operation in VM.
Fig. 4 a and Fig. 4 b are referred to, are the structural representation of management equipment provided in an embodiment of the present invention.Such as Fig. 4 a and figure Shown in 4b, the management equipment 4a and management equipment 4b are to include bus 402, communication interface 404, memory 403 and at least one The computer equipment of individual processor 401.
Processor 401 can be a general central processor (Central Processing Unit, CPU), microprocessor Device, ASIC (application-specific integrated circuit, ASIC), or one or more The individual integrated circuit for being used to control the present invention program program to perform.
Bus 402 may include a path, and information is transmitted between said modules.Bus 402 can be Peripheral Component Interconnect Standard (Peripheral Component Interconnect, PCI) bus or EISA (Extended Industry Standard Architecture, EISA) bus etc..It is total that the bus 402 can be divided into address bus, data Line, controlling bus etc..For ease of representing, only represented in Fig. 4 a and Fig. 4 b with a thick line, it is not intended that an only bus Or a type of bus.
Memory 403 can be read-only storage (read-only memory, ROM) or can store static information and instruction Other kinds of static storage device, random access memory (random access memory, RAM) or letter can be stored Breath and other kinds of dynamic memory or the EEPROM (Electrically of instruction Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storages, laser disc storage (including compression laser disc, laser disc, laser disc, digital universal Laser disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store with referring to The desired program code of order or data structure form simultaneously can be by any other medium of computer access, but not limited to this. Memory 403 can be individually present, and be connected by bus 402 with processor 401.Memory 403 can also and processor 401 integrate.Memory 403 provides instruction and data to processor 402.
It should be understood that communication interface 404 includes at least one of input equipment and output equipment, such as network interface card, antenna.
Optionally, the memory 403 is used to store the application code for performing the present invention program, and by processor 401 perform to control.The processor 401 is used to perform the application code stored in the memory 403.
The processor 401 can perform the management method that Fig. 2 of the present invention corresponds to a kind of application example of embodiment offer, bag The resource usage amount for obtaining the first VM application example to be migrated in the more VM is included, the application example to be migrated is one real Application example in example cluster, wherein, the example cluster is the application example set of same application, and the example cluster includes At least two application examples, the resource usage amount are used to represent what application example initial deployment was allocated when a VM Stock number, or the stock number used for representing application example within a period of time, the stock number are included in following parameter At least one:Processor check figure, memory headroom and disk space;According to the resource usage amount of the application example to be migrated, The application example to be migrated is migrated to the 2nd VM in the more VM, the 2nd VM from the first VM and does not dispose institute The application example in example cluster is stated, stock number idle the 2nd VM is more than or equal to the money of the application example to be migrated Source usage amount.
Specific implementation refers to embodiment corresponding to the application Fig. 2, and here is omitted.
In the specific implementation, as a kind of embodiment, management equipment can include multiple processors.In these processors Each can be monokaryon (single-CPU) processor or multinuclear (multi-CPU) processor.Here Processor can refer to one or more equipment, circuit, and/or the processing for processing data (such as computer program instructions) Core.
In some embodiments, the management equipment involved by Fig. 2 embodiments can be with the computer equipment of foregoing description Mode realize, and be not used in application deployment example in the computer equipment.The management equipment of the embodiment of the present invention can be real Now the VM for being used for application deployment example in other computer equipments is managed, communication interface 404 and other calculating can be passed through Machine equipment is communicated.
In some embodiments, the memory 403 included by Fig. 4 b computer equipment store virtual machine 4031 and/ Or host 4032, virtual machine 4031 and the executable module of host 4032 or data structure.It can be wrapped in computer equipment Include more virtual machines 4031.
Virtual machine 4031 is can to simulate one or more on a computing device virtually by software virtual machine Computer, and these virtual machines are operated just as real computer, with installation operation system and can be answered on virtual machine With program, virtual machine may also access Internet resources.For the application program run in virtual machine, virtual machine be like It is operated in real computer.
Host 4032 to complete the management of hardware resource, distribution;Virtual hardware platform is presented for virtual machine 4031;It is real The scheduling and isolation of existing virtual machine 4031.Wherein, host 4032 is probably monitor of virtual machine (Virtual Machine Monitor, VMM);In addition, VMM and 1 privileged virtual machine coordinates sometimes, both combine composition host 4032.Wherein, virtually Hardware platform provides various hardware resources to each virtual machine run thereon, such as provides virtual processor, internal memory, virtual magnetic Disk, Microsoft Loopback Adapter etc..Wherein, the virtual disk can correspond to the file or a logic block device of host 4032. Virtual machine is then operated on virtual hardware platform of the host 4032 for its preparation, is run on host 4032 one or more empty Plan machine.
In this embodiment, the management function of the management equipment involved by Fig. 2 embodiments can be with host 4052 Mode realize that optionally, virtual machine 4031 can be used for application deployment example.Or the management function can be with one Virtual machine 4031 realizes that the virtual machine for realizing management function is not used in application deployment example.In feasible scheme, if should Virtual machine 4031 in computer equipment is used for application deployment example, then the management equipment can be to being used in the computer equipment Application deployment example virtual machine 4031 is managed, and can also be answered by communication interface 404 being used to dispose in other computing devices It is managed with the VM of example.
Fig. 5 is referred to, for the embodiments of the invention provide the structural representation of another management equipment.As shown in figure 5, this The management equipment 5 of inventive embodiments can include:Acquiring unit 501 and migration units 502.Optionally, the management is set Standby 5 can also include determining unit 503.
Acquiring unit 501, for obtaining the resource usage amount of the first VM application example to be migrated in the more VM, institute It is the application example in an example cluster to state application example to be migrated, wherein, the example cluster is that the application of same application is real Example set, the example cluster include at least two application examples, and the resource usage amount is used to represent application example initial portion Stock number allocated during a VM, or the stock number used for representing application example within a period of time are deployed on, The stock number includes at least one of following parameter:Processor check figure, memory headroom and disk space.
Migration units 502, it is for the resource usage amount according to the application example to be migrated, the application to be migrated is real Example migrates the application do not disposed in the example cluster to the 2nd VM in the more VM, the 2nd VM from the first VM Example, stock number idle the 2nd VM are more than or equal to the resource usage amount of the application example to be migrated.
In a kind of possible embodiment, the resource usage amount is used to represent what application example used within a period of time Stock number, the resource usage amount also include input/output I/O number of requests.
In a kind of possible embodiment, the management equipment 5 also includes determining unit 503.The determining unit 503, For determining the first VM from the more virtual machine VM, the resources occupation rate of the first VM is less than preset value, institute Resources occupation rate is stated to be calculated by least one in following parameter:The processor occupancy of first VM, internal memory account for With rate and the memory space occupancy of disk.
In a kind of possible embodiment, the migration units are specifically used for:
According to the resource usage amount of the application example to be migrated, the 2nd VM is determined from the more VM, wherein, institute To state the 2nd VM and meet first condition, the first condition is the application example that the 2nd VM is not disposed in the example cluster, Stock number idle 2nd VM is more than or equal to the resource usage amount of the application example to be migrated, the money of the 2nd VM Source occupancy is more than the resources occupation rate of the first VM;Or the 2nd VM meets second condition, the second condition is The application example that 2nd VM is not disposed in the example cluster, stock number idle the 2nd VM are more than or equal to described The resource usage amount of application example to be migrated, the resources occupation rate of the 2nd VM are more than the preset value;
The application example to be migrated is migrated to the 2nd VM from the first VM.
In a kind of possible embodiment, the migration units are specifically used for:
In the resource usage amount according to the application example to be migrated, determine at least two mesh in the more VM be present In the case of marking VM, the 2nd VM is determined from least two target VM, wherein, at least two target VM's is every Individual target VM meets third condition, and the third condition is the application example that the target VM is not disposed in the example cluster, And the idle stock number of the target VM is more than or equal to the resource usage amount of the application example to be migrated, the 2nd VM The idle stock number that the condition of satisfaction is the 2nd VM and the resource usage amount gap of the application example to be migrated are minimum;
The application example to be migrated is migrated to the 2nd VM from the first VM.
It should be noted that the function of each functional unit can be according to upper in management equipment 5 described by the embodiment of the present invention The method specific implementation in embodiment of the method shown in accompanying drawing 2 is stated, here is omitted.In feasible scheme, embodiment illustrated in fig. 3 In management module can be realized by the unit that management equipment in the embodiment of the present invention 5 includes.
In embodiments of the present invention, the process that some application example in the example cluster to same application is migrated In, application example to be migrated is migrated and is more than or equal to the resource usage amount of application example to be migrated to resource free quantity and does not wrap Containing in the VM of any application example in this example cluster, identical answer has been disposed by the way that the application example after migration is not deployed in In the VM of application example, realize the decentralized deployment to the application example of same application, will not thus increase due to One VM failures and lead to not operation same application application example quantity, enter without increase application operation failure it is general Rate, that is to say, that can improve because what migration application example was brought reduces the problem of applying the reliability of operation in VM.
In the present embodiment, management equipment 5 is presented in the form of functional unit.Here " unit " can refer to specific Application integrated circuit (application-specific integrated circuit, ASIC), circuit, perform one or more The processor and memory of individual software or firmware program, integrated logic circuit, and/or other can provide the device of above-mentioned function Part.In a simple embodiment, those skilled in the art is contemplated that management equipment 5 can use Fig. 4 a or Fig. 4 b institutes Show that the form of computer equipment is realized, in the case of virtual machine and host are not present in computer equipment, in memory 403 By storing program code corresponding to the unit of management equipment 5 in the embodiment of the present invention, and called and deposited by processor 401 Program code in reservoir is to realize the function of management;For virtual machine 4301 and host 4302 in computer equipment be present Situation, the unit in management equipment 5 can be realized by host 4032.
A kind of computer-readable storage medium is additionally provided in embodiments of the present invention, for saving as the pipe shown in above-mentioned Fig. 5 The computer software instructions used in equipment 5 are managed, it, which is included, is used to perform program of the above-mentioned aspect designed by management equipment 5.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps may can use other orders or carry out simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily this hair Necessary to bright.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way Realize.For example, device embodiment described above is only schematical, such as the division of said units, it is only one kind Division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.Another, shown or discussed is mutual Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in various embodiments of the present invention can be integrated in a processing unit or Unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated unit Both it can be realized, can also be realized in the form of SFU software functional unit in the form of hardware.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server or management equipment etc., can be specifically the processor in computer equipment) is held The all or part of step of each embodiment above method of the row present invention.Wherein, foregoing storage medium may include:USB flash disk, shifting Dynamic hard disk, magnetic disc, CD, ROM or RAM etc. are various can be with the medium of store program codes.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (15)

1. a kind of management method of application example, methods described is applied to the management equipment of cloud platform, is run in the cloud platform There are more virtual machine VM, it is characterised in that including:
The resource usage amount of the first VM application example to be migrated in the more VM is obtained, the application example to be migrated is one Application example in example cluster, wherein, the example cluster is the application example set of same application, the example cluster bag At least two application examples are included, the resource usage amount is used to represent that application example initial deployment is allocated when a VM Stock number, or the stock number used for representing application example within a period of time, the stock number include following parameter At least one of:Processor check figure, memory headroom and disk space;
According to the resource usage amount of the application example to be migrated, by the application example to be migrated from the first VM migrate to The 2nd VM in the more VM, the application example that the 2nd VM is not disposed in the example cluster, the 2nd VM are idle Stock number be more than or equal to the application example to be migrated resource usage amount.
2. according to the method for claim 1, it is characterised in that the resource usage amount is used to represent application example at one section The stock number used in time, the resource usage amount also include input/output I/O number of requests.
3. method according to claim 1 or 2, it is characterised in that also include:
The first VM is determined from the more VM, the resources occupation rate of the first VM is less than preset value, the resource Occupancy is calculated by least one in following parameter:The processor occupancy of first VM, memory usage and The memory space occupancy of disk.
4. according to the method for claim 3, it is characterised in that described to be used according to the resource of the application example to be migrated Amount, the application example to be migrated is migrated to the 2nd VM in the more VM from the first VM, including:
According to the resource usage amount of the application example to be migrated, the 2nd VM is determined from the more VM, wherein, described Two VM meet first condition, and the first condition is the application example that the 2nd VM is not disposed in the example cluster, described Stock number idle 2nd VM is more than or equal to the resource usage amount of the application example to be migrated, and the resource of the 2nd VM accounts for It is more than the resources occupation rate of the first VM with rate;Or the 2nd VM meets second condition, the second condition is described The application example that 2nd VM is not disposed in the example cluster, stock number idle the 2nd VM are waited to move more than or equal to described The resource usage amount of application example is moved, the resources occupation rate of the 2nd VM is more than the preset value;
The application example to be migrated is migrated to the 2nd VM from the first VM.
5. according to the method described in claim any one of 1-3, it is characterised in that described according to the application example to be migrated Resource usage amount, the application example to be migrated is migrated to the 2nd VM in the more VM from the first VM, including:
In the resource usage amount according to the application example to be migrated, determine at least two target VM in the more VM be present In the case of, the 2nd VM is determined from least two target VM, wherein, each mesh of at least two target VM Mark VM meets third condition, the application example that the third condition is not disposed in the example cluster for the target VM, and institute The idle stock number for stating target VM is more than or equal to the resource usage amount of the application example to be migrated, and the 2nd VM meets Condition be the 2nd VM idle stock number and the application example to be migrated resource usage amount gap it is minimum;
The application example to be migrated is migrated to the 2nd VM from the first VM.
6. a kind of management equipment, the management equipment serves cloud platform, and being run in the cloud platform has more virtual machine VM, its It is characterised by, including:
Acquiring unit, it is described to wait to move for obtaining the resource usage amount of the first VM application example to be migrated in the more VM It is the application example in an example cluster to move application example, wherein, the example cluster is the application example set of same application, The example cluster includes at least two application examples, and the resource usage amount is used to represent application example initial deployment in described The stock number being allocated during one VM, or the stock number used for representing application example within a period of time, the resource Amount includes at least one of following parameter:Processor check figure, memory headroom and disk space;
Migration units, for the resource usage amount according to the application example to be migrated, by the application example to be migrated from institute State the first VM and migrate the application example do not disposed in the example cluster to the 2nd VM in the more VM, the 2nd VM, Stock number idle 2nd VM is more than or equal to the resource usage amount of the application example to be migrated.
7. management equipment according to claim 6, it is characterised in that the resource usage amount is used to represent that application example exists The stock number used in a period of time, the resource usage amount also include input/output I/O number of requests.
8. the management equipment according to claim 6 or 7, it is characterised in that also include:
Determining unit, for determining the first VM, the resources occupation rate of the first VM from the more virtual machine VM Less than preset value, the resources occupation rate is calculated by least one in following parameter:The processor of first VM The memory space occupancy of occupancy, memory usage and disk.
9. management equipment according to claim 8, it is characterised in that make according to the resource of the application example to be migrated Dosage, it is described to move by the application example to be migrated in terms of the first VM is migrated to the 2nd VM in the more VM Unit is moved to be specifically used for:
According to the resource usage amount of the application example to be migrated, the 2nd VM is determined from the more VM, wherein, described Two VM meet first condition, and the first condition is the application example that the 2nd VM is not disposed in the example cluster, described Stock number idle 2nd VM is more than or equal to the resource usage amount of the application example to be migrated, and the resource of the 2nd VM accounts for It is more than the resources occupation rate of the first VM with rate;Or the 2nd VM meets second condition, the second condition is described The application example that 2nd VM is not disposed in the example cluster, stock number idle the 2nd VM are waited to move more than or equal to described The resource usage amount of application example is moved, the resources occupation rate of the 2nd VM is more than the preset value;
The application example to be migrated is migrated to the 2nd VM from the first VM.
10. according to the management equipment described in claim any one of 6-8, it is characterised in that real according to the application to be migrated The resource usage amount of example, the application example to be migrated is migrated to the side of the 2nd VM in the more VM from the first VM Face, the migration units are specifically used for:
In the resource usage amount according to the application example to be migrated, determine at least two target VM in the more VM be present In the case of, the 2nd VM is determined from least two target VM, wherein, each mesh of at least two target VM Mark VM meets third condition, the application example that the third condition is not disposed in the example cluster for the target VM, and institute The idle stock number for stating target VM is more than or equal to the resource usage amount of the application example to be migrated, and the 2nd VM meets Condition be the 2nd VM idle stock number and the application example to be migrated resource usage amount gap it is minimum;
The application example to be migrated is migrated to the 2nd VM from the first VM.
11. a kind of management equipment, the management equipment serves cloud platform, and being run in the cloud platform has more virtual machine VM, Characterized in that, the management equipment includes processor and memory;
Wherein, the memory is used for store program codes, and the processor is used to call the program stored in the memory Code performs following steps:
The processor is used for the resource usage amount for obtaining the first VM application example to be migrated in the more VM, described to wait to move It is the application example in an example cluster to move application example, wherein, the example cluster is the application example set of same application, The example cluster includes at least two application examples, and the resource usage amount is used to represent application example initial deployment in described The stock number being allocated during one VM, or the stock number used for representing application example within a period of time, the resource Amount includes at least one of following parameter:Processor check figure, memory headroom and disk space;
The processor is used for according to the resource usage amount of the application example to be migrated, by the application example to be migrated from institute State the first VM and migrate the application example do not disposed in the example cluster to the 2nd VM in the more VM, the 2nd VM, Stock number idle 2nd VM is more than or equal to the resource usage amount of the application example to be migrated.
12. management equipment according to claim 11, it is characterised in that the resource usage amount is used to represent application example The stock number used within a period of time, the resource usage amount also include input/output I/O number of requests.
13. the management equipment according to claim 11 or 12, it is characterised in that the processor is additionally operable to from described more The first VM is determined in virtual machine VM, the resources occupation rate of the first VM is less than preset value, and the resources occupation rate is led to That crosses in following parameter at least one is calculated:The processor occupancy of first VM, memory usage and disk are deposited Store up space occupancy rate.
14. management equipment according to claim 13, it is characterised in that the processor be used for according to it is described it is to be migrated should With the resource usage amount of example, the application example to be migrated is migrated to second in the more VM from the first VM VM, it is specially:
The processor is used for the resource usage amount according to the application example to be migrated, and second is determined from the more VM VM, wherein, the 2nd VM meets first condition, and the first condition is that the 2nd VM is not disposed in the example cluster Application example, stock number idle the 2nd VM is more than or equal to the resource usage amount of the application example to be migrated, described 2nd VM resources occupation rate is more than the resources occupation rate of the first VM;It is described or the 2nd VM meets second condition Second condition is the application example that the 2nd VM is not disposed in the example cluster, and stock number idle the 2nd VM is more than Or the resource usage amount equal to the application example to be migrated, the resources occupation rate of the 2nd VM are more than the preset value;
The processor is used to from the first VM migrate the application example to be migrated to the 2nd VM.
15. according to the management equipment described in claim any one of 11-13, it is characterised in that the processor is used for according to institute The resource usage amount of application example to be migrated is stated, the application example to be migrated is migrated to the more VM from the first VM In the 2nd VM, be specially:
The processor is used to, in the resource usage amount according to the application example to be migrated, determine exist in the more VM In the case of at least two target VM, the 2nd VM is determined from least two target VM, wherein, described at least two Target VM each target VM meets third condition, and the third condition is that the target VM is not disposed in the example cluster Application example, and the idle stock number of the target VM is more than or equal to the resource usage amount of the application example to be migrated, The idle stock number that the condition that 2nd VM meets is the 2nd VM and the resource of the application example to be migrated use It is minimum to measure gap;
The processor is used to from the first VM migrate the application example to be migrated to the 2nd VM.
CN201610505659.1A 2016-06-30 2016-06-30 Management method and management equipment for application instances Active CN107562510B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610505659.1A CN107562510B (en) 2016-06-30 2016-06-30 Management method and management equipment for application instances

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610505659.1A CN107562510B (en) 2016-06-30 2016-06-30 Management method and management equipment for application instances

Publications (2)

Publication Number Publication Date
CN107562510A true CN107562510A (en) 2018-01-09
CN107562510B CN107562510B (en) 2021-09-21

Family

ID=60969343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610505659.1A Active CN107562510B (en) 2016-06-30 2016-06-30 Management method and management equipment for application instances

Country Status (1)

Country Link
CN (1) CN107562510B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617811A (en) * 2019-01-29 2019-04-12 电子科技大学 The quick migration method of mobile application in a kind of cloud network
CN110457114A (en) * 2019-07-24 2019-11-15 杭州数梦工场科技有限公司 Application cluster dispositions method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1947096A (en) * 2004-05-08 2007-04-11 国际商业机器公司 Dynamic migration of virtual machine computer programs
US20120054731A1 (en) * 2010-08-24 2012-03-01 International Business Machines Corporation Method, System and Computer Programs to Assist Migration to a Cloud Computing Environment
CN102629941A (en) * 2012-03-20 2012-08-08 武汉邮电科学研究院 Caching method of a virtual machine mirror image in cloud computing system
CN102681895A (en) * 2011-03-11 2012-09-19 北京市国路安信息技术有限公司 Dynamic self-migrating cloud service method
US20130290468A1 (en) * 2010-08-24 2013-10-31 University Of Massachusetts Methods and Apparatus to Migrate Virtual Machines Between Distributive Computing Networks Across a Wide Area Network
CN104335182A (en) * 2012-06-04 2015-02-04 阿尔卡特朗讯公司 Method and apparatus for single point of failure elimination for cloud-based applications
US20150378766A1 (en) * 2014-06-28 2015-12-31 Vmware, Inc. Live migration of virtual machines with memory state sharing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1947096A (en) * 2004-05-08 2007-04-11 国际商业机器公司 Dynamic migration of virtual machine computer programs
US20120054731A1 (en) * 2010-08-24 2012-03-01 International Business Machines Corporation Method, System and Computer Programs to Assist Migration to a Cloud Computing Environment
US20130290468A1 (en) * 2010-08-24 2013-10-31 University Of Massachusetts Methods and Apparatus to Migrate Virtual Machines Between Distributive Computing Networks Across a Wide Area Network
CN102681895A (en) * 2011-03-11 2012-09-19 北京市国路安信息技术有限公司 Dynamic self-migrating cloud service method
CN102629941A (en) * 2012-03-20 2012-08-08 武汉邮电科学研究院 Caching method of a virtual machine mirror image in cloud computing system
CN104335182A (en) * 2012-06-04 2015-02-04 阿尔卡特朗讯公司 Method and apparatus for single point of failure elimination for cloud-based applications
US20150378766A1 (en) * 2014-06-28 2015-12-31 Vmware, Inc. Live migration of virtual machines with memory state sharing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LEI CUI: "VMScatter: Migrate Virtual Machines to Many Hosts", 《PROCEEDINGS OF THE 9TH ACM SIGPLAN/SIGOPS INTERNATIONAL CONFERENCE ON VIRTUAL EXECUTION ENVIRONMENTS》 *
王光波: "云计算环境下虚拟机迁移机制研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617811A (en) * 2019-01-29 2019-04-12 电子科技大学 The quick migration method of mobile application in a kind of cloud network
CN109617811B (en) * 2019-01-29 2020-06-30 电子科技大学 Rapid migration method for mobile application in cloud network
CN110457114A (en) * 2019-07-24 2019-11-15 杭州数梦工场科技有限公司 Application cluster dispositions method and device

Also Published As

Publication number Publication date
CN107562510B (en) 2021-09-21

Similar Documents

Publication Publication Date Title
JP5510556B2 (en) Method and system for managing virtual machine storage space and physical hosts
CN108701059B (en) Multi-tenant resource allocation method and system
US7945913B2 (en) Method, system and computer program product for optimizing allocation of resources on partitions of a data processing system
CN103067293B (en) Method and system for multiplex and connection management of a load balancer
US10693806B2 (en) Network bandwidth reservations for system traffic and virtual computing instances
CN104468803B (en) A kind of virtual data center method for mapping resource and equipment
CN103180830A (en) Cpu resource distribution method and calculating node
CN110162388A (en) A kind of method for scheduling task, system and terminal device
CN105429776A (en) Method and system for virtual network function management
CN109960575B (en) Computing capacity sharing method, system and related equipment
US20100042723A1 (en) Method and system for managing load in a network
CN109726005A (en) For managing method, server system and the computer program product of resource
US9218198B2 (en) Method and system for specifying the layout of computer system resources
US20220291970A1 (en) Core to resource mapping and resource to core mapping
CN109976907A (en) Method for allocating tasks and system, electronic equipment, computer-readable medium
CN117480494A (en) Coordinated container scheduling for improved resource allocation in virtual computing environments
CN109712060A (en) A kind of cloud desktop video card sharing method and system based on GPU container technique
CN109471725A (en) Resource allocation methods, device and server
CN104598304B (en) Method and apparatus for the scheduling in Job execution
CN111104219A (en) Binding method, device, equipment and storage medium of virtual core and physical core
CN109840139A (en) Method, apparatus, electronic equipment and the storage medium of resource management
CN106325999A (en) Method and device for distributing resources of host machine
CN104518897A (en) Resource management optimization processing method and resource management optimization processing device for virtual firewalls
CN105677481B (en) A kind of data processing method, system and electronic equipment
CN107562510A (en) The management method and management equipment of a kind of application example

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant