Google Compute Engine: what is the difference between disk snapshot and disk image?

前端 未结 6 1187
旧时难觅i
旧时难觅i 2021-02-01 13:26

I\'ve been using both for my startup and to me, the functionality is the same. Until now, the instances I\'ve been creating are only for computation. I\'m wondering how GCE dis

6条回答
  •  猫巷女王i
    2021-02-01 13:56

    A snapshot reflects the contents of a persistent disk in a concrete instant in time. An image is the same thing, but includes an operating system and boot loader and can be used to boot an instance.

    Images and snapshots can be public or private. In the case of images, public can mean official public images provided by Google or not.

    Snapshots are stored as diffs (a snapshot is stored relative to the previous one, though that is transparent to you) while images are not. They are also cheaper ($0.03 per GB/month vs $0.085 for images).

    These days the two concepts are quite similar. It's now possible to start an instance using a snapshot instead of an image, which is an easy way of resizing your boot partition. Using snapshots may be simpler for most cases.

提交回复
热议问题