Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why my google cloud instance often shut down automatically by itself

my google cloud instance(compute engine) was shut down automatically with unknown reason

there is the event log for the instance

{"shutdownEvent":{},"bootCounter":"6","@type":"type.googleapis.com/cloud_integrity.IntegrityEvent"}

{
 insertId:  "0"  
 jsonPayload: {
  @type:  "type.googleapis.com/cloud_integrity.IntegrityEvent"   
  bootCounter:  "6"   
  shutdownEvent: {
  }
 }
 logName:  "projects/<xxxx>/logs/compute.googleapis.com%2Fshielded_vm_integrity"  
 receiveTimestamp:  "2019-05-09T10:14:29.112673979Z"  
 resource: {
  labels: {
   instance_id:  "<xxxx>"    
   project_id:  "<xxxx>"    
   zone:  "us-west1-b"    
  }
  type:  "gce_instance"   
 }
 severity:  "NOTICE"  
 timestamp:  "2019-05-09T10:14:26.928978844Z"  
}
like image 541
supra Avatar asked May 12 '19 14:05

supra


People also ask

Is Google Cloud shutting down?

The announcement appeared at the top of its IoT Core website, and as TechCrunch noted, it came amid little fanfare. The service is being retired on August 16, 2023.

Does Google charge for stopped instances?

A stopped instance does not incur charges, but all of the resources that are attached to the instance will still be charged. For example, you are charged for persistent disks and external IP addresses according to the price sheet, even if an instance is stopped.

Why should you stop your VM instance when you're done?

Stopping a VM You might want to stop a VM for several reasons: You no longer need the VM but want the resources that are attached to the VM—such as its internal IPs, MAC address, and persistent disk. You don't need to preserve the guest OS memory, device state, or application state.

Does stopping Google Cloud instance stop all charges?

You can only use the Google Cloud CLI or the Compute Engine API to suspend an instance. If you don't care about restoring an instance's memory and device state when you resume the instance later, you can stop the instance instead, which does not incur additional storage charges.


1 Answers

gcloud compute instances update INSTANCE_NAME --shielded-learn-integrity-policy

Instance must be running and have Integrity Monitoring enabled.

I don't know if this is secure though. Read more:

https://cloud.google.com/compute/docs/instances/integrity-monitoring#updating-baseline

like image 121
Voy Avatar answered Sep 17 '22 12:09

Voy