jeudi 10 avril 2014

moteur de calcul de Google - Auto supprimer une Instance de GCE même après que J'éteins mon portable - Stack Overflow


I would like to start a job on Compute engine instance, turn off my laptop and have the instance automatically deleted once the remote job is complete (without my laptop running)


Currently I have a script which runs on my laptop which has a delete instance command in the end. But I wish to turn off my laptop, since the remote job can even run for >24hours.


Is it possible to do this? Maybe I can poweroff or delete the instance at the end of the remote job FROM the remote instance itself?




Your assumption is correct you just need to trigger the shutdown command from within your GCE instance when the script has finished and not calling it from your laptop



I would like to start a job on Compute engine instance, turn off my laptop and have the instance automatically deleted once the remote job is complete (without my laptop running)


Currently I have a script which runs on my laptop which has a delete instance command in the end. But I wish to turn off my laptop, since the remote job can even run for >24hours.


Is it possible to do this? Maybe I can poweroff or delete the instance at the end of the remote job FROM the remote instance itself?



Your assumption is correct you just need to trigger the shutdown command from within your GCE instance when the script has finished and not calling it from your laptop


0 commentaires:

Enregistrer un commentaire