【问题标题】:Azure Files are Very SlowAzure 文件非常慢
【发布时间】:2022-10-06 13:03:00
【问题描述】:

我正在通过 Portal 生成的脚本将 Azure Files SMB 共享安装到 Windows 10 计算机:

$connectTestResult = Test-NetConnection -ComputerName storageaccountname.file.core.windows.net -Port 445
if ($connectTestResult.TcpTestSucceeded) {
    # Save the password so the drive will persist on reboot
    cmd.exe /C \"cmdkey /add:`\"storageaccountname.file.core.windows.net`\" /user:`\"localhost\\storageaccountname`\" /pass:`\"q/Password==`\"\"
    # Mount the drive
    New-PSDrive -Name R -PSProvider FileSystem -Root \"\\\\storageaccountname.file.core.windows.net\\database\" -Persist
} else {
    Write-Error -Message \"Unable to reach the Azure storage account via port 445. Check to make sure your organization or ISP is not blocking port 445, or use Azure P2S VPN, Azure S2S VPN, or Express Route to tunnel SMB traffic over a different port.\"
}

当我将文件从该文件共享复制到本地计算机时,我的复制速度非常低 1-3 MB/秒。

为什么它这么慢,我该如何增加它?

    标签: azure-storage-account azure-files


    【解决方案1】:

    由于多种原因,可能会出现性能问题。我们需要检查真正导致问题的原因。您是否使用 azure speed.com 检查过您的速度:http://www.azurespeed.com/Azure/Upload

    类似的东西在这里讨论了很好的人工制品:请看。 https://docs.microsoft.com/en-us/answers/questions/621022/slow-upload-speed-azure-file-share-network-drive.html

    这个article lists some common problems related to Azure file shares. 它提供了当您遇到这些问题时的潜在原因和解决方法。

    附加信息:

    • 如果您没有特定的最小 I/O 大小要求,我们建议您使用 1 MiB 作为 I/O 大小以获得最佳性能。
    • 如果您知道要通过写入扩展的文件的最终大小,并且当文件上未写入的尾部包含零时,您的软件没有兼容性问题,则提前设置文件大小而不是每次写入扩展写入。

    出于测试目的,您可以使用Azcopy tools并检查速度并让我知道状态。对于传输文件,我建议对任何传输文件(上传和下载)使用 AzCopy 和文件存储。在 Azcopy 中,单个实例的吞吐量将至少扩展 20Gbps

    有时您的代理/虚拟机或在同一个数据中心运行的任何东西,网络请求不会离开本地网络,然后速度取决于基础设施。 (路由器、防火墙、电缆等)。我确信他们不会限制他们自己的基础设施之间的速度,因此托管在同一网络上的服务可以全速运行。

    Scalability and performance targets for standard storage accounts

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-28
      • 1970-01-01
      • 2020-05-28
      • 2021-07-20
      • 1970-01-01
      • 2021-01-07
      • 1970-01-01
      • 2021-10-12
      相关资源
      最近更新 更多