有没有办法减少 Azure 部署开始和调用角色 OnStart() 代码之间的时间?

编程入门 行业动态 更新时间:2024-10-17 17:24:23
本文介绍了有没有办法减少 Azure 部署开始和调用角色 OnStart() 代码之间的时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,当我使用 Windows Azure 管理门户创建部署时,我的角色 OnStart() 中的代码需要大约 9(九!)分钟才能运行.我觉得那里有些不对劲 - 九分钟太长了.

Currently when I create a deployment using Windows Azure Management Portal it takes about 9 (nine!) minutes to have the code in my role OnStart() being run. I feel something is wrong there - nine minutes is ridiculously long.

我有一个小的启动任务,我希望在几秒钟内完成(并且在 Compute Emulator 下运行时它在几秒钟内完成),所以看起来 Azure 基础架构正在做一些大事一直以来.

I have a small startup task that I expect to finish in few seconds (and it finishes in few seconds when run under Compute Emulator), so looks like the Azure infrastructure is doing something big in there all that time.

有没有办法加快进程?

推荐答案

Windows Azure 通常需要 5-15 分钟来部署.它正在做的是启动服务器、虚拟机、启动 Windows 等.随着时间的推移,它变得越来越快,但 9 分钟肯定不是不寻常的.

Windows Azure generally takes 5-15 minutes to deploy. What it's doing is spinning up servers, VMs, booting Windows, etc. It's getting faster over time, but nine minutes is certainly not out of the ordinary.

这篇关于有没有办法减少 Azure 部署开始和调用角色 OnStart() 代码之间的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-03-31 03:02:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/794954.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:没有办法   角色   代码   时间   Azure

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!