[英]Writing in /tmp in Azure app service linux with django
We have an Azure linux app service running django.我们有一个运行 django 的 Azure linux 应用服务。 When we upload a file to it that is greater than 2.5MB it written by default in the /tmp.当我们上传一个大于 2.5MB 的文件时,它默认写入 /tmp. When this happens we notice increase in response time from the app service before it eventually crash.发生这种情况时,我们注意到应用服务在最终崩溃之前的响应时间会增加。 Is there a restriction on writing in the /tmp for a linux web app?在 linux web 应用程序的 /tmp 中写入是否有限制? If so where can we write our temporary file?如果是这样,我们在哪里可以写我们的临时文件? How could I make sure that the /tmp is in fact the issue?我如何确保 /tmp 确实是问题所在? We don't want to increase FILE_UPLOAD_MAX_MEMORY_SIZE value of django.我们不想增加 django 的 FILE_UPLOAD_MAX_MEMORY_SIZE 值。 We looked at this documentation but it doesn't talk of any issue on the tmp for linux.我们查看了这个文档,但它没有谈到 linux 的 tmp 上的任何问题。
Are you using a App Service Linux in "Code" mode or "Container" mode?您是在“代码”模式还是“容器”模式下使用应用服务 Linux? That will help frame the answer.这将有助于构建答案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.