Azure 有多长? web角色可以保持活跃吗?
我的云应用程序(Web 角色)将 5000 多条记录上传到 SQL Azure。 在我的开发机器上,此过程的总时间大约需要 15-19 分钟。 有一次,我部署到云端并重试,10 - 12 分钟后失败,没有任何错误消息。
我的猜测是网络角色在一段时间后超时。有这方面的设置吗?
My cloud application (web role) uploads over 5000 records into SQL Azure.
The total time for this process takes about 15-19 minutes on my development machine.
Once, I deploy to the Cloud and try again, it fails after 10 - 12 minutes without any error message.
My guess is that the web role times out after certain period of time. Is there a setting for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的网络角色不会超时。
SQL Azure 可能会超时,并且您的连接也可能被终止。
连接终止的一些原因:
http:// /social.technet.microsoft.com/wiki/contents/articles/sql-azure-connection-management-in-sql-azure.aspx#原因
Your webrole doesn't time out.
SQL Azure can time out and also your connection can be killed.
Some reasons for Connection Termination:
http://social.technet.microsoft.com/wiki/contents/articles/sql-azure-connection-management-in-sql-azure.aspx#Reasons
我可以建议您分页上传吗?即使只是在内存中构建记录集(缓存/队列/表/blob 存储),然后针对 SQL 执行。
至少它可以让您找出问题所在。
May I suggest you page your upload? Even if it's just to build the record set in memory (cache/queue/table/blob store rather) and then execute against SQL.
At the very least it'll allow you to isolate where the issue is.