GCP 计算磁盘 - 了解克隆限制

GCP Compute Disks - Understanding the clone limit

我对磁盘克隆的这种限制感到困惑。早些时候,它说 You can also delete the source disk without any risk of deleting the clone. The ability to clone disks is useful for duplicating production data to debug without disturbing production 这让我觉得它们是隔离和安全的。

但再往下,它说 You can create at most 1000 total disk clones of a given source disk.

如果我克隆了一个克隆体,这是否计入原始来源,还是仅计入克隆体 1 的限制?还有其他方式可以让它们相互纠缠吗?

https://cloud.google.com/compute/docs/disks/create-disk-from-source

为什么需要克隆磁盘克隆? 您是否已经使用了 1000 个克隆的限制?

根据文档中的信息,我们可以认为一个克隆只是一个新磁盘和另外 1000 个克隆。

不,它不算原始来源,您也可以使用 1000 个限制再次克隆新克隆的磁盘,因为它将被视为原始。

与原始图像相关的是 Snapshot,它及时反映了永久磁盘在具体时刻的内容。

快照也比克隆更便宜,因为它使用更少的磁盘space并且有利于快速备份和恢复。在大多数情况下使用快照可能更简单。