问题描述
Q1:您认为在 Azure 中放置 SQLite 数据库文件 (database.sqlite) 的合适位置Web App 文件系统?例如:
D:homedatadatabase.sqliteD:homesitedatabase.sqliteD:homesitewwwrootdatabase.sqlite- 其他?
Q2:为了确保公共用户无法访问数据库文件以及在部署期间或应用程序运行时不会被意外覆盖,还应该考虑什么放大/缩小?(Web 应用程序配置为从本地 Git 存储库进行部署)
Q3:从哪里可以详细了解 Azure 应用服务中使用的文件系统,官方源 URL?例如.它如何在单个 Web 应用程序中的多个 VM 之间共享,当应用程序向上/向下扩展时它如何工作,D:home(持久性)与 D: 之间的区别是什么本地(非持久)...
请注意,SQLite 在 Azure Blob 存储 中不起作用,因此它不是一种选择.请不要建议其他存储解决方案,这个问题专门针对 SQLite.
参考资料
此文件区域在您的 Web 应用程序实例之间共享.类似于 SMB 文件共享,但特定于 Web 应用(与 Azure 的文件服务不同).
wwwroot下的内容是持久的,除非您删除您的应用服务.向上/向下扩展会影响可用空间量.(我不知道如果您按比例缩小并且较小的尺寸比您已经消耗的磁盘空间少会发生什么.Q1: Where do you think is the right place to put a SQLite database file (
database.sqlite) in Azure Web App file system? For example:D:homedatadatabase.sqliteD:homesitedatabase.sqliteD:homesitewwwrootdatabase.sqlite- other?
Q2: What else should be taken into consideration in order to make sure that the database file won't be accessible to public users as well as not being accidentally overwritten during deployments or when the app is scaled up/down? (The Web App is configured for deployments from a Local Git Repository)
Q3: Where to learn more about the file system used in Azure App Service, the official source URL? E.g. how it's shared between multiple VMs within a single Web App, how does it work when the App is scaled up/down, what's the difference between
D:home(persistent) vsD:local(non-persistent)...Note that SQLite does not work in Azure Blob Storage, so that one is not an option. Please, don't suggest alternative storage solutions, this question is specifically about SQLite.
References
- Appropriate Uses For SQLite
解决方案In a Web App, your app is deployed to
d:homesitewwwroot. This is the area where you may write files. As an example, theghostdeployment writes its SQLite database tod:homesitewwwrootcontentdataghost.db.(easy to see this, if you open up the kudu console viayourapp.scm.azurewebsites.net):This file area is shared amongst your web app instances. Similar to an SMB file share, but specific to web apps (and different than Azure's File Service).
The content under
wwwrootis durable, unless you delete your app service. Scaling up/down impacts the amount of space available. (I have no idea what happens if you scale down and the smaller size has less disk space than what you're consuming already).这篇关于将 SQLite 数据库文件放在 Azure 应用服务中的何处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
The End


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)