Azure Web app save temporary files limit

只谈情不闲聊 提交于 2020-01-14 10:13:31

问题


I have need to store files temporary on my Azure web app (app service). I don't have to share these files between web app instances.

I have read (in the kudu wiki) that I can use the d:\local for such storage, but what limitations exists regarding the amount of data that can be stored there?

I have also read that it depends on the selected level (sku) of the web app (Basic, standard, premium) but I have not found any exact size limitations.

Is there any way to determine this in runtime using code?

UPDATE:
When I check the the Environment tab in Kudo on my Basic web app it lists

D:\home usage: 10,240 MB total; 10,072 MB free 
d:\local usage: 230,397 MB total; 198,341 MB free 

But if I do a check using System.IO.DriveInfo.GetDrives() the D drive lists as

d:\ usage: 32,768 MB total;  12,083 MB free

(Kudo shows a lot more than that for the d:\local drive.)
Another peculiar thing is that you can navigate the filesystem in the Kudo console but the files I create on the web app can not be found there.


回答1:


This Kudu wiki page has more info about it. Copying from there in the Temporary Files section:

For Free and Shared sites, there is a 500MB limit for all these locations together (i.e. not per-folder). For Standard and Basic sites, the limit is very high (over 100GB).

Also, if you go to the Environment tab in Kudu, it tells you how much space is available (you care about d:\local), e.g.

D:\home usage: 1,024 MB total; 616 MB free d:\local usage: 500 MB total; 499 MB free




回答2:


You can find the disk space available to you for your Web Apps on their pricing page here: https://azure.microsoft.com/en-us/pricing/details/app-service/.

Yes, the disk size varies by the app service plan you opt for. Currently it goes from 1GB of disk space (Free & Basic Plans) to 500 GB of disk space (for Premium Plan).



来源:https://stackoverflow.com/questions/36892031/azure-web-app-save-temporary-files-limit

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