Azure 服务定义 localstorage 元素
在 Azure 上创建了一个 Web 角色项目。查看服务定义文件,我发现它添加了一个 LocalResources 部分 -
<LocalResources>
<LocalStorage name="ProjName.svclog" sizeInMB="1000" cleanOnRoleRecycle="false" />
</LocalResources>
它似乎使用它来写入日志文件。每个 Azure 计算实例还附带一些内存。我假设这个 LocalStorage 将使用我们通过该实例获得的内存,而不是创建存储帐户。这个假设正确吗?
Created a web role project on Azure. Looking at the service definition file I see that it adds a LocalResources section -
<LocalResources>
<LocalStorage name="ProjName.svclog" sizeInMB="1000" cleanOnRoleRecycle="false" />
</LocalResources>
It seems to be using this for writing the log files. Each Azure compute instance also comes with some memory. I am assuming that this LocalStorage would use the memory we get with that instance and not create a storage account. Is that assumption correct?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本地存储是每个实例可用的临时硬盘空间。它被配置为托管实例的虚拟机的一部分。
这与表存储、blob 存储或 SQL Azure 无关,并且作为 Web 角色或辅助角色的一部分。但是,它是临时的,当您的实例被回收或重新启动时,它就会消失。
有一篇很棒的文章介绍了它是什么、它如何工作以及如何从代码中使用它:http://vkreynin.wordpress.com/2010/01/10/learning-azure-local-storage-with-me/。
Local storage is temporary hard disk space available for each instance. It's configured as part of the virtual machine where your instance is hosted.
This is unrelated to table storage, blob storage or SQL Azure, and comes as part of the Web role or worker role. However, it's temporary, and will go away when your instance is recycled or rebooted.
There's a great article on what it is, how it works and how to use it from code here: http://vkreynin.wordpress.com/2010/01/10/learning-azure-local-storage-with-me/.