Azure 有多长? web角色可以保持活跃吗?

发布于 2024-10-09 07:42:56 字数 152 浏览 0 评论 0原文

我的云应用程序(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

故乡的云 2024-10-16 07:42:56

您的网络角色不会超时。

SQL Azure 可能会超时,并且您的连接也可能被终止。

连接终止的一些原因:

  • 消耗超过一百万个锁的会话被终止。
  • 日志文件大小 > 的事务1 GB 已终止。
  • 从第一个或最旧的活动事务日志序列号 (LSN) 到日志尾部(当前 LSN)的距离不能超过日志文件大小的 20%。
  • 如果事务锁定底层系统操作所需的资源超过 20 秒,则会终止。
  • 当会话使用超过 5 GB 的 tempdb 空间(= 655,360 页)时,会话将终止。
  • 当存在内存争用时,消耗超过 16 兆字节 (MB) 且持续时间超过 20 秒的会话将按照资源占用时间的降序顺序终止,例如最旧的会话首先终止。
  • 当数据库达到最大数据库大小时,它将变为只读。发生这种情况时,尝试更新或插入的事务将被终止。

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:

  • Sessions consuming greater than one million locks are terminated.
  • Transactions with a log file size > 1 GB are terminated.
  • The distance from the first or oldest active transaction log sequence number (LSN) to the tail of the log (current LSN) cannot exceed 20% of the size of the log file.
  • If a transaction locks a resource required by an underlying system operation for more than 20 seconds, it is terminated.
  • When a session uses more than 5 GB of tempdb space (= 655,360 pages), the session is terminated.
  • When there is memory contention, sessions consuming greater than 16-megabyte (MB) for more than 20 seconds are terminated in the descending order of time the resource has been held, such as the oldest session is terminated first.
  • A database will be read-only when it reaches its maximum database size. Transactions attempting to updates or inserts will be terminated when this happens.

http://social.technet.microsoft.com/wiki/contents/articles/sql-azure-connection-management-in-sql-azure.aspx#Reasons

浮光之海 2024-10-16 07:42:56

我可以建议您分页上传吗?即使只是在内存中构建记录集(缓存/队列/表/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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文