Hi Giuseppe,
Migrations are transparent events that appear in the operations logs as “compute.instances.migrateOnHostMaintenance”. You can find details on how live migration works on
this blog. The instance maintenance behavior can be configured in the
availability policies.
A different event happens when there is a host error. Those appear in the operation logs as “
compute.instances.hostError”. In that case the VM will be restarted in a different host. This is not configurable, since if the host is down all the guests will also be. If the instance was having issues after restarting, it is possible that a problem at the application layer could have happened. A good place to have a look is the
serial console as well as the application logs. You can find information on the different instance status
here and on this one how to
design robust systems.