Managing vms in home project

This section describes Money Saver VM to autostart the preemptible vms which are running in the same project.
The VM will run a script every two minutes to restart stopped preemptible vms only and not regular vms.
By default it will start all preemptible vms in the project where it is running.

Follow below steps to use Money Saver VM with your GCP preemptible vms:

  1. Create Preemptible VMs for your computing needs
  2. Preemptiblity on

    Preemptible vm

  3. If this preemptible vm is stopped by GCP,money-saver vm will autostart it.
  4. preemptible-vm-stopped

  5. money-saver vm logs shows the autostart of preemptible vms
  6. money saver logs

  7. Now your preemptible vm is up and running
  8. Preemptible vm

  9. If you don't want to autostart preemptible vms with money-saver vm ,set metadata of that vm as
    autostart = no
  10. /img/gcp/money-saver-vm/money-saver-autostart-no.png

    /img/gcp/money-saver-vm/preemptible-vm-autostart-no.png

  11. Now this vm will not autostart with money-saver vm.
  • Also see how money-saver vm works in other project