1. A non-transitory computer-readable storage medium storing a program that causes a computer to execute a process, the process comprising: obtaining information on a state of a certain virtual machine that has been deployed on a first information processing apparatus in advance and does not execute a first processing that is performed in response to a request; first determining whether a first virtual machine, from among a first plurality of virtual machines executed on the first information processing apparatus, is executing the first processing by comparing information on a state of the first virtual machine with the obtained information on the state of the certain virtual machine; second determining whether a second virtual machine, from among a second plurality of virtual machines executed on a second information processing apparatus, is executing the first processing by comparing information on a state of the second virtual machine with the obtained information on the state of the certain virtual machine; first migrating, from the second information processing apparatus to the first information processing apparatus, the second virtual machine which is determined not to be executing the first processing; and second migrating, from the first information processing apparatus to the second information processing apparatus, the first virtual machine which is determined not to be executing the first processing.