The invention discloses a method and a
system for implementing the bidirectional auto scaling service of virtual machines. According to the method, the bidirectional auto scaling service requests
monitoring data from a monitoring service, the monitoring service monitors application service
virtual machine clusters and feeds the
monitoring data back, and meanwhile, a load balancing service loads application requests on different application service virtual machines; according to configuration parameters and the feedback
monitoring data, the bidirectional auto scaling service determines whether to perform
virtual machine cluster scaling and determines to perform the
virtual machine cluster scaling in a
transverse mode or a
longitudinal mode; when required, the virtual
machine cluster scaling is performed by calling
virtualization service interfaces, the
transverse mode comprises start-stop control of the virtual machines, and the
longitudinal mode comprises sequentially and dynamically adjusting computing resources and storage resources of the virtual machines according to the serial number of the virtual machines. By means of bidirectional auto scaling, the method and the
system for implementing the bidirectional auto scaling service of the virtual machines can automatically adjust the resources of the virtual machines as well as the number of the virtual machines, thereby being more flexible to serve for applications and support application running in all directions.