azure - Azure VM 临时存储的临时性如何?

标签 azure azure-vm-role

当您创建 Azure VM 时,它会创建一个名为“临时存储”的 D: 驱动器。但我不清楚这有多暂时。它是在重新启动、启动/停止之间重置还是仅在重新创建镜像时重置?还是任意?另外,这个临时存储有哪些用例?

最佳答案

重置、重新启动、故障转移等都可以删除它。它仅用于交换文件等。

Performance Best Practices for SQL Server in Azure Virtual Machines

Temporary Disk

标记为D: 驱动器的临时存储驱动器不会保留,也不会保存在Windows Azure Blob 存储中。它主要用于页面文件,并且不能保证其性能是可预测的。管理任务(例如更改虚拟机大小)会重置 D: 驱动器。此外,当虚拟机进行故障转移时,Windows Azure 会删除临时存储驱动器上的数据。不建议在 D: 盘存储任何用户或系统数据库文件,包括 tempdb

编辑:有趣的是,上面的内容现已更新为下面的内容,其中表示如果您使用的是 D 系列虚拟机,则可以存储 tempdb。

The temporary storage drive, labeled as the D: drive, is not persisted to Azure blob storage. Do not store your data or log files on the D: drive. Only store tempdb and/or Buffer Pool Extensions on the D drive when using the D-Series Virtual Machines (VMs). Unlike the other VM series, the D drive in the D-Series VMs is SSD-based. This can improve the performance of workloads that heavily use temporary objects or that have working sets which don't fit in memory. For more information, see Using SSDs in Azure VMs to store SQL Server TempDB and Buffer Pool Extensions.

Some Azure Virtual Machine Basics Please

The Temporary storage drive is a local drive on the physical box that should only serve as scratch space. For example, we put the paging file onto this drive to save on transaction costs for each Windows page-in but nothing else. I would recommend you don’t put anything that you need persisted on this drive as it will be deleted upon any hardware failure the system sees whereas the OS disk and any data disks attached will remain persisted in storage even on hardware failures.

关于azure - Azure VM 临时存储的临时性如何?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18476408/

相关文章:

azure - 如何启用 Azure 防火墙策略的 TLS 检查和 IDPS 高级功能

java - TrustManagerFactory - 忽略证书检查

azure - 无法使用 Powershell 脚本启动 Azure VM。我们得到 Parameter set无法使用指定的命名参数来解析

asp.net - Azure 云服务与现有 Asp.Net 网站的 VM

azure - 质疑 Azure VM 的计算一致性

azure - Linux 计划需要 WEBSITE_CONTENTAZUREFILECONNECTIONSTRING 和 WEBSITE_CONTENTOVERVNET 吗?

azure - 无法加载文件或程序集 ServiceRuntime 2.4.0.0

windows - 为什么 GetEnvironmentVariable() 在 Windows Azure 中为我的 RoleRoot 返回错误的目录?

dns - Windows Azure VM 无法访问 microsoft.com

powershell - 如何将 msi 从 Visual Studio Online 部署到 azure vm?