The invention discloses an energy-optimized
virtual machine deployment method and
system. The method comprises the following steps: step 1, determining a
virtual machine deployment target and constraint conditions thereof; 2, determining deployment solution calculation initialization parameters; step 3,
population initialization is carried out, so that the dolio-
sea squirt individuals are in one-to-one correspondence with deployment solutions of the virtual machines; 4, according to the
virtual machine deployment target and the constraint conditions of the virtual
machine deployment target, calculating the fitness of each
scabbard individual in the initialized
population; 5, determining a food source, a leader and a follower to obtain an updated
population; 6, calculating and updating thefitness of each
scabbard individual in the population, and determining a food source; and 7, repeating the steps 5-6, and outputting the food source position in the current population as a final virtual
machine deployment optimal solution. According to the method, exploration behaviors and development behaviors in the
iteration process are balanced through the group optimization model of the Sashimi, and the virtual
machine deployment effect of energy optimization is achieved while the globality and diversity are guaranteed.