GCE 使用云存储桶作为挂载驱动器 [英] GCE Use Cloud Storage Bucket as Mounted Drive
本文介绍了GCE 使用云存储桶作为挂载驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法将存储桶挂载到实例上,以便网络服务器可以将其用作存储?如果没有,如何在不添加另一个具有操作系统的永久磁盘的情况下向实例添加更多存储?
Is there a way to mount a storage bucket to an instance so it can be used by the webserver as storage? If not, how can I add more storage to the instance without adding another persistent disk with an OS?
推荐答案
您当然可以创建一个新的(更大的)永久磁盘并将其作为数据磁盘附加到您的实例.这是一个非常好的选择,因为它可以将您的网站数据与操作系统分开.有关所有选项的详细信息,请参阅 Persistent Disk 文档.
You can certainly create a new (larger) Persistent Disk and attach it to your instance as a data disk. This is a very good option, since it keeps your website data separate from your operating system. See the Persistent Disk docs for details on all the options.
在你的情况下:
- 为数据创建一个新的永久磁盘.为您的数据选择一个足够大的大小,并且足够大以获得您想要的 I/O 吞吐量.(有关详细信息,请参阅此图表)
- 将磁盘附加到您的实例.
- Create a new Persistent Disk for the data. Pick a size large enough for your data and large enough to get the I/O throughput you want. (See this chart for details)
- Attach the disk to your instance.
这篇关于GCE 使用云存储桶作为挂载驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文