Abstract:
A virtual machine (VM) scaling method and device is provided. The method includes determining a VM resource pool corresponding to an application when a new VM needs to be added for the application; searching, according to a parameter of the new VM that needs to be added for the application, the determined VM resource pool for a VM that conforms to the parameter; registering the conforming VM with a load balancer (LB); and starting the VM to provide a service for the application. A VM that conforms to a requirement of the application is selected from a pre-created VM resource pool, and the VM is registered to provide a service for the application when a new VM is to be added for an application.
Abstract:
A method and an apparatus for controlling virtual machine migration is presented, where the method includes obtaining information about an application running on a first virtual machine, where the first virtual machine runs on a first host; determining, according to the information about the application, whether an application associated with the application running on the first virtual machine runs on a second virtual machine, where the second virtual machine is any virtual machine running on a second host; and if no application associated with the application running on the first virtual machine runs on the second virtual machine, migrating the first virtual machine to the second host. The embodiments of the present disclosure can ensure that reliability of an application is not affected during a virtual machine migration process.