处理Azure vmss中数据的最佳方法 [英] Best way to handle data in Azure vmss

查看:139
本文介绍了处理Azure vmss中数据的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Azure vmss进行自动缩放。我将在vmss中部署一个API,它将上传文件并将其保存在磁盘中。我们需要一些关于
数据存储的建议。我们的理解是: - 当我们使用vmss添加托管磁盘时,每个VM都会获得应该安装的相同大小的磁盘。例如:如果我们向vmss添加50 GB磁盘,则每个vm将获得50 GB未安装的磁盘。 - 如果特定的vm由于自动缩放而被解除分配,我们会将文件保存在vm的磁盘中,然后保存在
。我们会从vm的磁盘中丢失数据吗?如果是,那么保留数据的最佳方法是什么。如果没有我们如何从解除分配的vm中检索文件?

推荐答案

VMSS适用于无状态应用,因为机器可以随时出入。我想我们无法拍摄附加到VMSS的数据磁盘的快照。我将与团队核实。

VMSS is suitable for stateless applications because the machines can come and go any time. I think we cant take snapshot of data disks attached to the VMSS. I will check with the team.

一种选择是使用Azure文件。您可以运行自定义脚本扩展以将Azure文件共享安装到VMSS中的VM。显然,与磁盘相比,Azure文件的性能会更低。它基于您的用例。

One option is to use Azure Files . You can run a custom script extension to mount an azure file share to the VM in VMSS. Obviously the performance of the Azure files will be less when compared with Disks. Its based on your usecase.

我们可以根据存储在数据磁盘上的实际内容来决定。 

We can decide based on the actual content which is stored on the data disk. 




另外,请告诉我们您的用例,以便我们建议更好的解决方案。

Also let us know your use case so that we can suggest a better solution.


这篇关于处理Azure vmss中数据的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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