Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Azure Web Apps share disk between multiple instances?

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?
like image 207
Oleg Burov Avatar asked Jan 20 '16 01:01

Oleg Burov


1 Answers

  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.
like image 186
theadriangreen Avatar answered Nov 09 '22 16:11

theadriangreen