Google Compute Engine:磁盘快照和磁盘映像有什么区别? [英] Google Compute Engine: what is the difference between disk snapshot and disk image?

查看:122
本文介绍了Google Compute Engine:磁盘快照和磁盘映像有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用启动软件,对我来说,功能是相同的.到目前为止,我一直在创建的实例仅用于计算.我想知道GCE磁盘映像和快照在技术上有何不同,在哪种情况下最好使用一种.

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 disk images and snapshots are different in terms of technology, and in which situation it is better to use one over the other.

推荐答案

快照在特定的具体时刻反映了永久性磁盘的内容.映像是一回事,但包含操作系统和引导加载程序,可用于引导实例.

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.

图像和快照可以是公共的或私有的.对于图片,公开"可以表示是否由Google提供的官方公开图片.

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

快照存储为差异(快照相对于前一个存储,尽管对您而言是透明的),而图像不存储.它们也更便宜($ 0.03/GB/月,图像$ 0.085).

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.

这篇关于Google Compute Engine:磁盘快照和磁盘映像有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆