Azure Web Apps 是否在多个实例之间共享磁盘? [英] Does Azure Web Apps share disk between multiple instances?

查看:11
本文介绍了Azure Web Apps 是否在多个实例之间共享磁盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 David Ebbo 在 Azure 运行时环境 /a> 文章,当您启动 2 个或更多实例时,文件系统中的文件将移动到 Azure 存储(Azure Blob 或文件),并在同一 Web 应用程序的所有实例之间共享.这意味着当 Web App Instance #1 在文件系统中创建 Reamem.txt 文件时,Web App Instance #2 可以修改,删除等这个文件.

According to what David Ebbo said in the Azure runtime environment article, when you spin up 2 or more instances the files in the file system are moved to Azure Storage (Azure Blobs or Files) and are shared between all instances of the same Web Apps. Which means when a Web App Instance #1 create a Reamem.txt file in the file system, a Web App Instance #2 can modify, remove etc. this file.

  1. Azure Web Apps 真的在多个实例之间共享磁盘吗?
  2. 如果是,有什么办法可以改变这种行为?

推荐答案

  1. 是的.网站内容存储在 blob 中,然后由实例挂载.如果有多个实例,它们由同一个文件系统支持.
  2. 默认情况下您无法更改此设置.但是,您可以使用多个站点,但您必须自己配置负载平衡.您可以使用流量管理器来执行此操作.

这篇关于Azure Web Apps 是否在多个实例之间共享磁盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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