Does Azure Web Apps share disk between multiple instances?

馋奶兔 提交于 2020-01-12 14:58:31

问题


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. Does Azure Web Apps really share disk between multiple instances?
  2. If yes, is there any way to change this behavior?

回答1:


  1. Yes. The website content is stored in a blob, which is then mounted by the instance. If there are multiple instances, they are backed by the same file system.
  2. You can't change this by default. You could however use multiple sites, but you would have to configure load balancing yourself. You could use traffic manager to do this.


来源:https://stackoverflow.com/questions/34889929/does-azure-web-apps-share-disk-between-multiple-instances

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!