Azure 上的多个工作进程
Azure 上是否可以有多个工作进程,或者我是否需要为每个进程创建一个单独的线程才能获得该行为?
如果 Azure 目前不支持此功能,将来是否有计划添加此功能?
Is it possible to have multiple worker processes on Azure or do I need to create a separate thread for each to get that behavior?
If Azure currently does not support this, are there plans to add this in the future?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
让我们在这里澄清一下:有角色,也有角色实例。 我相信 Zippy 指出,在 CTP 期间,每个角色最多可以有两个实例。 但是,您最多可以扮演五个不同的角色。 (这是从 7 月 CTP 开始的更改。)请参阅 Jim Nakashima 关于多个 Web 和辅助角色的博客文章:http://blogs.msdn.com/jnak/archive/2009/07/20/working-with-multiple-web- and-worker-roles.aspx。
Let's clarify here: there are roles, and there are role instances. I believe Zippy's pointing out that during the CTP, you can have at most two INSTANCES of each role. However, you can have up to five different roles. (This is a change starting at the July CTP.) See Jim Nakashima's blog post on multiple web and worker roles: http://blogs.msdn.com/jnak/archive/2009/07/20/working-with-multiple-web-and-worker-roles.aspx.
Azure 允许您在测试期间拥有 2 个工作进程。 您可以在配置文件中指定金额。 当 Azure 成为付费服务时,如果您愿意付费,您可能可以设置更高的数字。
如果将相同的代码和配置部署到生产和登台环境,则最多可以获得 4 个进程。
Azure allows you to have 2 worker processes during the beta. You can specify the amount in the configuration file. When Azure becomes a paying service you will probably be able to set a higher number, if you are willing to pay for it.
If you deploy the same code and configuration to both the production and the staging environment you can get up to 4 processes.