Azure实例和Web角色 [英] Azure instances and web role

查看:61
本文介绍了Azure实例和Web角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

顺便问一下,Azure实例是什么?它是同一Azure云服务的多个副本吗?因此,例如,如果我部署具有2个实例的WCF应用程序,Azure将创建同一WCF的2个副本,并且所有请求均在两个实例之间进行负载平衡和分配?与实例有关的Web角色是什么?1个实例可以具有2个网络角色"吗?那是负载平衡吗?

What is Azure instance by the way? Is it a multiple copy of the same Azure cloud service? So for instance if I deploy a WCF application with 2 instances, the Azure creates a 2 copies of the same WCF and any requests are load balanced and distributed among the 2 instances? What is a web role in relation to an instance? Can 1 instance have 2 "web role"? Is that load balancing?

我的问题基本上是WCF调用可能会做很多处理以返回用户请求的数据.减少处理WCF Web函数调用时间的理想情况是什么?1个实例中的2个Web角色会更快还是2个实例中的1个Web角色会更快?我需要加快时间来处理来自该网页的每个WCF Web服务调用.如果将WCF呼叫设置为1个实例需要30秒,那么如果有2个实例,WCF呼叫可以减少到15秒吗?还是总共30秒将在2个实例中的1个实例中发生,因为实例全部与负载平衡有关?

My question is basically a WCF call might do a lot of processing to return the data that user requested. What is the ideal situation to decrease the time to process a WCF web function call? Would 2 web roles in 1 instance be faster or 2 instances and 1 web role would be faster? I need to speed up the time to process each WCF web service call from the webpage. If a WCF call takes 30 seconds when set to 1 instance, would that be decreased to 15 seconds if there was 2 instances? or the 30 seconds in total will occur in 1 of the 2 instances because instance is all about load balancing?

推荐答案

简单地说,实例是您的应用程序的虚拟机.因此,如果您有一个带有2个实例的WCF应用程序,则意味着有2个VM部署了您的应用程序,并且这2个VM进行了负载均衡.

Simply put, an instance is a Virtual Machine for your application. So if you have a WCF application with 2 instances, that means there are 2 VMs on which your application is deployed and these 2 VMs are load balanced.

您可能可以在一个Web角色中部署两个Web应用程序.但是关于您的问题:

You could potentially deploy two web applications in a single web role. But regarding your question:

1个实例可以具有2个网络角色"吗?

是负载均衡吗?

1个实例中的2个Web角色会更快吗?更快是一个相对的术语.从高可用性的角度考虑在多个实例中进行部署.如果您的应用程序部署了2个实例,即使1个实例出现故障,您的第2个实例也将能够为您的客户提供服务.同样,每个实例都具有有限的资源(CPU/内存等),这具有相同应用程序的多个实例,因为请求分散在多个实例上,因此您可以处理更多请求.

Would 2 web roles in 1 instance be faster? Faster is rather a relative term. Think of deploying in multiple instances from high availability point of view. If you have an application deployed with 2 instances, even if 1 instance goes down, your 2nd instance will be able to serve your clients. Again each instance has limited resources (CPU/Memory etc.) this having multiple instances of the same application would allow you to process more requests as the requests are spread over multiple instances.

这篇关于Azure实例和Web角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆