Hi Gandalf,
Every GCE instance must have at least one root disk. This disk will contain the OS that allows the VM to boot. You can choose to add additional disks to the same VM. Most VMs types will allow you to have up to 16 PDs and 64 TB of total space. It is your choice whether to have you data and OS in different disks, you must configure your application to write/read from the appropiate disk.
Traffic to your PD counts only against the egress throughput cap. You will be billed for the cost of your PD but not for the traffic that goes or comes from it. To attach a PD to your VM, both resources must be in the same zone. Egress to the same zone using the internal IP (which is the case of PD attached to a VM) is not charged.
Hi Gandalf,
In a very simplistic way you can think of your VM as a regular computer. It will have RAM which is a form of volatile storage. Information in RAM will be lost when your VM is stopped. Therefore applications that have information in RAM need to write it to a hard drive (in your VM will be the Persistent Disk) when shutting down. In that way the application state and data is preserved after your VM is stopped or rebooted.
Your VM, as a regular computer, will always have RAM and at least one PD containing the operating system (also called root disk). This is not an option instead is a must have. One of the big differences in the Cloud Environment is that the PD might not be physically connected to the VM . The fact that the PD is not physically attached to the hardware is transparent to the server. The logic in the cloud infrastructure will take care of it. The disk just need to be attached in order to be recognized by the server. The VM does not know that it is not physically connected to a disk.
As a summary, PD will preserve your data when the VM is stopped. There are other durable options to preserve your data like Google Cloud Storage. In that case, you must configure your applications to access their data from a bucket. Now, even if you decide to use GCS, you will always need to have root PD on your VM. Finally, traffic to the PD is never billed. Traffic from GCE VMs to Cloud Storage might be charged.
I hope this helps.
Since your root disk is a persistent disk, information stored on it is durable. That means root disks and in general PD will keep your data even after you have stopped the VM. The size of your root disk is defined when you create the VM, but you can always resize it. Persistent disks have built-in redundancy to protect your data against equipment failure. In any case, it is very important that you define a backup policy that serves your business needs.
--
© 2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-discussion@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to gce-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/575800e8-9df1-4ad7-a721-b5b04e1c68b0%40googlegroups.com.
Gandalf, you may have heard that a PD can be *deleted* IF the instance itself is DELETED. This is not the same as simply stopping it. Since we're doing analogies here, it's like the difference between powering down a real computer and throwing it in the landfill. :)By default in our API, a PD is deleted when the Instance is deleted, because otherwise people tend to forget they have those disks there and they go on paying to store them, whether they needed that data or not. When the instance is just shutdown ("stopped" in our terminology) the PD is still there.
--
© 2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-discussion@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to gce-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/e37e78fa-0a75-4d57-97cc-a35da8a1b18d%40googlegroups.com.
Boot/root disks are always either PD HDD or PD SSD and thus persist across stop/start, VM/host crashes, etc.