Why do my google cloud compute instances always unexpectedly restart?

后端 未结 2 417
闹比i
闹比i 2021-01-02 04:59

Help! Help! Help!

It is really annoying and I almost cannot bear it anymore! I\'m using google cloud compute engine instances but they often unexpectedly restart wit

2条回答
  •  半阙折子戏
    2021-01-02 05:11

    This sounds like Preemptible VM instance.

    Preemptible instances function like normal instances, but have the following limitations:

    • Compute Engine might terminate preemptible instances at any time due to system events. The probability that Compute Engine will terminate a preemptible instance for a system event is generally low, but might vary from day to day and from zone to zone depending on current conditions.
    • Compute Engine always terminates preemptible instances after they run for 24 hours.

    To check if your instance is preemptible using gcloud cli, just run

    gcloud compute instances describe instance-name --format="(scheduling.preemptible)"
    

    Result

    scheduling:
      preemptible: false
    

    change "instance-name" to real name.

    Or simply via UI, click on compute instance and scroll down:

    To check for system operations performed on your instance, you can review it using following command:

    gcloud compute operations list 
    

提交回复
热议问题